These files are intended for WordPressMU (WPMU) admins.
Current version: 0.1.2
- Fixed the problem of not visible widget even after activation
- No warning message if only one blog
- Added option to choose post or page listing
- Fixed blank display of summary
- Fixed the permalink problem
- Fixed and enhanced few minor things
old version 0.1.0 – First release
Description:
Adds a sidebar widget to let you display recent posts from updated blogs in WordPressMU. The posts from blogs marked as spam, mature, or deleted will not be listed.
Instruction:
If you place files in your mu-plugins directory, the widget is active and available to all blogs.
If you place files in your plugins directory, the widget needs activation by a blog admin. Only after activation, the widget is available.
Upgrade: Just replace the old files with this.
Configurables:
file: ada_wpmu_recent_posts.php
$widget_title
This is the name of the widget that will appear in the Sidebar Widgets screen under Presentation, when activated.
$configure_word_limit
Number of words to display in a post. Default is 0. So the widget only displays list of titles.
file: ada_list-all-posts.php
$db_prefix
Installed DB prefix for your WPMU
$show_posts_id_greater_than
only show posts that has IDs greater than this
1 is Hello World
2 is About page
$blank_limit
Default number of titles to list, if the option was left blank
$blank_word_limit
Default number of words in a post to display, if the option was left blank or 0 [zero].
Hello.
First of all, thank you very much for your plugin. The idea is awesome and something I could really use at this moment.
However, I can’t get it to work. What am I doing wrong ?
I wrote:
$ArrayName = ada_list_all_wpmu_posts(LIMIT, WORD_LIMIT, BEGIN_WRAP, END_WRAP, TITLE_BEGIN_WRAP, TITLE_END_WRAP, READ_MORE,SHOW_AUTHOR,SHOW_BLOG);
in index.php file – but there is no output.
Could you please help out ?
Please add me in MSN: [email protected]
– Thanks !
No Reply Yet, Hoping for one soon 🙂
Hello Ehab,
That syntax is just a way to show how to do it. If you simply copy and paste that syntax, it won’t work. You need to put your own values into each of the parameters.
for examble, use
$ArrayName = ada_list_all_wpmu_posts(5, 100, ”, ”, ”, ”,’show’,’show’,’show’, ‘post’);
The above code limites the return array to 5 recent posts and 100 words from each post.
This just populates entries into $ArrayName. Then you need to loop through the array and display where ever you want. Simply populating into a variable doesn’t show on the page.
If you install the widget into mu-plugin directory you can see how the plugin works. Well, after installing into mu-plugin directory you’ll see it in Presentation ==> Sidebar Widgets area. You’ll need to drag and drop the Ada WPMU Recent Posts Widget in and save and refresh your blog.
hopefully, this helps.
pl tell me how to add this to my index.php page ( I want to dispaly as center content… pl help)