2012-10-16, 12:03 PM
Hi,
I'm building up my own newthread/newreply/editpost and I need to show poster avatar. In newthread/newreply cases this is really easy just because the poster is the currently logged in user and I can use {$mybb->user['avatar']} variable, but in editpost I need to fetch the "attached-to-post poster avatar": for normal users this is not a problem because they are able to edit only their own posts and so {$mybb->user['avatar']} is ok. But what if a moderator or admin edit an user's post?
How can I achieve this? I took a look at showthread.php {$post['useravatar']} variable and tried to replicate it in editpost.php but didn't succeeded.
REgards,
Shade
Also, I would like to know why my threads are always being visited ab. 4000 times in few hours when others only 60 or 70 times. There might be a bug in the visit counter.
I'm building up my own newthread/newreply/editpost and I need to show poster avatar. In newthread/newreply cases this is really easy just because the poster is the currently logged in user and I can use {$mybb->user['avatar']} variable, but in editpost I need to fetch the "attached-to-post poster avatar": for normal users this is not a problem because they are able to edit only their own posts and so {$mybb->user['avatar']} is ok. But what if a moderator or admin edit an user's post?
How can I achieve this? I took a look at showthread.php {$post['useravatar']} variable and tried to replicate it in editpost.php but didn't succeeded.
REgards,
Shade
Also, I would like to know why my threads are always being visited ab. 4000 times in few hours when others only 60 or 70 times. There might be a bug in the visit counter.