Log in

View Full Version : Postbit info not correct in PMs


Bryan Ex
11-13-2011, 06:04 PM
I've added a small mod that includes the number of photos and classified ads a user has posted and made it a link to their galleries and that part is working fine. What I have noticed is that while the info is correct in a forum post the stats and link change to my own user ID stats instead of the sender in PMs. Is there a way to change that depending on whether it's a post or PM? I would be fine with adding a conditional not to show the stats at all unless it is a post to the message board if that's easier. I'm just not familiar enough with vb condition statements to figure out how to switch between PM and message postbit data.

The code I have used is as follows;
<if condition="$show['profile']"><if condition="$trackpadspppbit > 0">
<div class="smallfont">Photos posted: <a href="/gallery/showgallery.php?cat=500&amp;ppuser=$post[userid]" title="View my photos"><b>$trackpadspppbit</b></a>&

Screen cap attached...

- Bryan

Bryan Ex
11-25-2011, 11:08 PM
The script is calling the user id like this;
if ($this->post['userid'])
I need it to call the correct user id for post bit info in both message board posts and PMs. Currently it is correct on the message boards but it displays my own stats in a message I am reading from another member in PMs.