The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#7
|
|||
|
|||
![]()
I think the problem is that nobody really understands what you are trying to say. Posting a chunk of code from a completely different forum system isn't going to help either.
I've just implemented this on my forum. Follow these steps. Edit your postbit (or postbit legacy) template. Locate the following line: Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> Code:
<if condition="can_moderate($forum[forumid], '', $post[userid])"><div class="smallfont">Moderator</div></if> To summarise the requirement for anyone else reading this and figuring out what it is - aveon wanted the posters in a thread to show up as moderators, but only if they were the moderator in a certain forum. So if a given user is a moderator in a forum everyone can see that when he posts the posts are coming from a moderator. But if the user goes to a forum where he is not the moderator he appears as normal - with no moderator title. The hack as I posted it above is tested to work. It's not very sophisticated, I would prefer it not to display for admins, in which case it would look like this: Code:
<if condition="can_moderate($forum[forumid], '', $post[userid]) AND !($post[usergroupid]==5)"><div class="smallfont">Moderator</div></if> Hope that helps. I've added more functionality. I've now set it up as follows:
In the example in the earlier post we located the following line: Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> Code:
<if condition="can_moderate($forum[forumid], '', $post[userid]) AND !($post[usergroupid]==6 OR IS_MEMBER_OF($post, 5))"><div class="smallfont">Moderator</div><else /><if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if></if> <if condition="IS_MEMBER_OF($post, 5)"><div class="smallfont">Super Moderator</div></if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|