1 rhalevy Aug 24, 2005 17:06
3 personman Aug 24, 2005 17:18
These might be good features for a plugin. What b2evolution can do now is to show you the most recent posts by any given author. Just add ?author=1 onto the end of your blog url. Of course, the 1 can be replaced with the id number of the author you want to look for. That would at least take care of number two in your list, because it would show the author's most recent post.
4 rhalevy Aug 24, 2005 17:26
I realize a new release is around the corner but this seems like something that should be easily done. Its not like the new release is a complete rewrite ive downloaded the newest version and it keeps most of the structure.
Im imagining that if adding "?author=7" to the end of a url it only shows the posts from that author. That means that B2evo already has the ability to filter by author so whats stopping anybody from just making 10-15 lines of code that just count how many posts return per author and then set it in a for loop to run from "?author=1" until "?author=~"
I would be glad to write this but i need to find where b2evo is pulling the "?author=1" code from?
anybody have any ideas?
5 personman Aug 24, 2005 17:31
You might start with b2evocore/_functions_users.php
6 rhalevy Aug 24, 2005 18:47
This is just a basic hack if you want the number of posts to show up in a column on the users page of the backoffice
open up the _users_list.php file in the admin folder
on line 34 enter the line
<th><?php echo T_('Posts') ?></th>
This creates a header column
next on line 58 change
<td colspan="7">
to
<td colspan="8">
so that the column is spanned by the group
then on line 156 after
echo "</td>\n";
insert the code:
echo '<td>', get_usernumposts( $loop_User->get('ID')), "</td>\n";
You will now have another column in the backoffice users page that shows the amount of posts each user has.
Moderators you might want to throw this in the Hacks area
Thanks for the tip "personman"
7 rhalevy Aug 24, 2005 18:52
Does anybody know where the function is that allows you to choose posts by date ranges or months. This way i can call up the posts that have been posted in the last month to see if the blogger has posted anything recently?
You guys are the best
it is not in there for the moment, and to write new stuff knowing that a brand new version of b2e is comming in the next month, is not smart.
After Phoenix has been released, plugins like this will be very easy to make.