View Full Version : How can I add Moderator status in postbit
IKShadow
08-22-2009, 09:57 PM
Under <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
I want to add text Moderator if member (who posted not viewing) is moderator of any forum.
I know this one is for the member that is viewing forum:
<if condition="can_moderate()"></if>
need something like:
<if condition="$post['can_moderate()']"><div class="smallfont">Moderator</div></if>
p.s. I dont wanna change display group
IKShadow
08-25-2009, 06:18 AM
Can anyone help me with this.
Thanks in advance.
Lynne
08-25-2009, 03:12 PM
From the API (http://members.vbulletin.com/api/):
can_moderate (line 4518) Returns whether or not the given user can perform a specific moderation action in the specified forum
boolean can_moderate ([integer $forumid = 0], [string $do = ''], [integer $userid = -1], [string $usergroupids = ''])
integer $forumid: Forum ID
string $do: If you want to check a particular moderation permission, name it here
integer $userid: User ID
string $usergroupids: Comma separated list of usergroups to which the user belongsSo, maybe try <if condition="can_moderate(,,$post['userid'])"> Not tested.
IKShadow
08-25-2009, 03:22 PM
From the API (http://members.vbulletin.com/api/):
So, maybe try <if condition="can_moderate(,,$post['userid'])"> Not tested.
Hmm dont think thats what I need.
I wanna show additional usergroup.
Like
postbit
Username
title
usergroup
usergroup2
Its not just for can moderate but some other groups too.
p.s. thanks for reply
Lynne
08-25-2009, 05:24 PM
Hmm dont think thats what I need.
I wanna show additional usergroup.
I suggest you change what you are asking for in the first post then, cuz you said:
I want to add text Moderator if member (who posted not viewing) is moderator of any forum.
IKShadow
08-25-2009, 05:33 PM
I suggest you change what you are asking for in the first post then, cuz you said:
Mea culpa :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.