vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How can I add Moderator status in postbit (https://vborg.vbsupport.ru/showthread.php?t=221511)

IKShadow 08-22-2009 09:57 PM

How can I add Moderator status in postbit
 
Under
Quote:

<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:
Quote:

<if condition="can_moderate()"></if>
need something like:
Quote:

<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:
Quote:

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.

IKShadow 08-25-2009 03:22 PM

Quote:

Originally Posted by Lynne (Post 1874126)
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

Quote:

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

Quote:

Originally Posted by IKShadow (Post 1874130)
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:
Quote:

I want to add text Moderator if member (who posted not viewing) is moderator of any forum.

IKShadow 08-25-2009 05:33 PM

Quote:

Originally Posted by Lynne (Post 1874213)
I suggest you change what you are asking for in the first post then, cuz you said:

Mea culpa :)


All times are GMT. The time now is 01:10 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01647 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete