View Full Version : Add # of comments below blog entries?
ThreeD
Sun 2nd Sep '07, 7:04am
Right now per default the blog user info looks like this:
Join Date
Location
Posts
Blog Entries
Comments <- Add this line?
Is there any way we can add the total # of comments made by a user below "Blog entries" in blog_sidebar_user?
I tried
<li class="smallfont"><span class="shade">$vbphrase[blog_comments]:</span> $userinfo[comments]</li>
but that didn't work.
thanks :)
Freddie Bingham
Tue 4th Sep '07, 8:48pm
Comments refers to the number of comments that their blog has received. We don't track the number of comments that a user has made. If that is what you want then you need to edit all of the blog plugins that begin with "Postbit: Fetch blog information". Change $hook_query_fields .= ",blog_user.entries"; to $hook_query_fields .= ",blog_user.entries, blog_user.comments AS blog_comments";
ThreeD
Wed 5th Sep '07, 2:41am
thanks Freddie :) Do I only have to edit the postbit_ plugins if I want the info to show up in the blog as well?
Freddie Bingham
Wed 5th Sep '07, 5:31pm
No, it depends on what page(s) that you are referring to.
ThreeD
Thu 6th Sep '07, 5:12pm
I want it to show in the "user sidebar" on the blog along with the location, post and blog entries information. I also want to display the # of comments made on the "member information page" on the main forum.
Is it possible to also add the last blog entry to the forums "member info page"? I alread found the info about "blog entries", and the option to search for all blog posts, but not the last blog entry posted.
thanks Freddie, appreciate your help.
Freddie Bingham
Fri 7th Sep '07, 1:00pm
For the sidebar try $userinfo[comments] or $bloginfo[comments]. Try $userinfo[comments] on the profile page.
Showing the latest entry in the profile requires more changes than I can list here but you'll see it in the next maintenance release (1.0.1).
ThreeD
Fri 7th Sep '07, 4:53pm
Thanks again Freddie, $userinfo[comments] and $bloginfo[comments] didn't work in the blog sidebar so it beats me how I can show the number of comments a user has made.
I assume I would have to edit other plugins than the postbit_* plugins to calculate the total number of comments a user has made. If you have any idea what plugins I have to edit I'd be happy :)
Will the total # comments made by a user also be in the 1.0.1 version update? :)
Freddie Bingham
Fri 7th Sep '07, 5:10pm
As I said, we only track the number of a comments per blog, not made per user. I don't forsee tracking comments made at this time.
ThreeD
Fri 7th Sep '07, 5:42pm
ok thanks Freddie
Powered by vBulletin™ Version 4.0.0 Beta 4 Copyright © 2009 vBulletin Solutions, Inc. All rights