Which forum do you have on your site? Or are you talking about the buddypress group forums?
The buddypress group forums.
I tried a few things I think we are on the right track. It’s still only showing the persons logged in points for me.
yes, same here.At least I’m not getting any php error messages so the codes make sense. I only know very basic php. I think the issue is:
$user = bp_get_the_topic_post_poster_name($user->id);
$user->id , I think this is the part that needs to be changed because this one references the id for comments or regular wp, I just don’t know what bp uses to reference the id. Does this make sense? Again, I’m just a beginner so if what I’m saying makes no sense at all please do let me know.
http://svn.buddypress.org/trunk/bp-forums/bp-forums-templatetags.php
I think what we need might be in there. But the way BuddyPress finds the ID’s or at least than I have found is these pretty much:
$bp->displayed_user->id
$bp->loggedin_user->id
http://codex.buddypress.org/developer-docs/the-bp-global/
any luck with this? I’ve honestly spent hours using different combinations but still without success. It seems so straightforward but I wonder why it is not recognizing the ID in the forums.
I haven’t had any luck either …
@r-a-y @hnla Do you have any ideas?
@xberserker @sheryll – You need to find the forum poster ID, so the appropriate template tag you’re looking for is this:
`bp_get_the_topic_poster_id()`
@r-a-y Tried this but it only displays the points of the logged in user.
`$cp_pointsuser = bp_get_the_topic_poster_id();
if(function_exists(‘cp_displayPoints’)){
cp_displayPoints($cp_pointsuser);
} `
@xberserker – You can only use bp_get_the_topic_poster_id() within /groups/single/forum/topic.php or within the forum topics loop.
yes, I’ve been using bp_get_the_topic_poster_id() but it still doesn’t work.