Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 22 Aug 2009, 23:57
IKShadow IKShadow is offline
 
Join Date: Aug 2009
How can I add Moderator status in postbit

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
Reply With Quote
  #2  
Old 25 Aug 2009, 08:18
IKShadow IKShadow is offline
 
Join Date: Aug 2009
Can anyone help me with this.

Thanks in advance.
Reply With Quote
  #3  
Old 25 Aug 2009, 17:12
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
From the 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 belongs
So, maybe try <if condition="can_moderate(,,$post['userid'])"> Not tested.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #4  
Old 25 Aug 2009, 17:22
IKShadow IKShadow is offline
 
Join Date: Aug 2009
Originally Posted by Lynne View Post
From the 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
Reply With Quote
  #5  
Old 25 Aug 2009, 19:24
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by IKShadow View Post
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.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #6  
Old 25 Aug 2009, 19:33
IKShadow IKShadow is offline
 
Join Date: Aug 2009
Originally Posted by Lynne View Post
I suggest you change what you are asking for in the first post then, cuz you said:
Mea culpa
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
xFire Status in Postbit Kru vBulletin 3.5 Template Modifications 17 23 Sep 2008 08:00
[postbit] User Status on Top Dark Vincent vBulletin 2.x Template Modifications 8 18 Jan 2003 19:55



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 11:01.

Layout Options | Width: Wide Color: