vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   IF part of a usergroup - icon in postbit (https://vborg.vbsupport.ru/showthread.php?t=134388)

Smooth Adam 12-19-2006 10:01 PM

IF part of a usergroup - icon in postbit
 
I want to know how to insert an icon into postbit, or anywhere for that matter, when a user is part of a certain usergroup.

I'm guessing its the same theory as this modification, but a little help would be nice.

Thanks for any help received!

paul41598 12-19-2006 10:09 PM

Code:

<if condition="is_member_of($bbuserinfo, x,x,x)">
Icon Here
</if>

Replax "x" with usergroup number

Smooth Adam 12-19-2006 10:23 PM

Quote:

Originally Posted by paul41598 (Post 1141884)
Code:

<if condition="is_member_of($bbuserinfo, x,x,x)">
Icon Here
</if>

Replax "x" with usergroup number

Thanks for the quick reply. I have the code inserted below, but it doesn't seem to be working. It puts it on everyone's postbit even if they are not part of that group. The usergroup id is 12.

Code:

<if condition="is_member_of($bbuserinfo, 12)"><img src="link to image"></if>

SaN-DeeP 12-19-2006 10:26 PM

I have a premium members usergroup (usergroup id = 27), I would like to display premium user rank or icon or html markup for this usergroup which should be visible only to premium members, moderators, super-moderators and administrators.

Can someone guide how this can be done ?

Thanks.

paul41598 12-19-2006 11:31 PM

Quote:

Originally Posted by Smooth Adam (Post 1141892)
Thanks for the quick reply. I have the code inserted below, but it doesn't seem to be working. It puts it on everyone's postbit even if they are not part of that group. The usergroup id is 12.

Code:

<if condition="is_member_of($bbuserinfo, 12)"><img src="link to image"></if>

Sorry try this:

Code:

<if condition="$post[usergroupid]==6">Code Here</if>

Smooth Adam 12-20-2006 12:58 AM

I'm sorry that doesn't seem to work either...

I found the solution in the 3.5 forums:
Code:

<if condition="is_member_of($post,USERGROUPID)">Image Code</if>
Replace USERGROUPID with your usergroup's id number. My usergroup's number is 12:
Code:

<if condition="is_member_of($post,12)"><img src="URL"></if>
Thanks for the help Paul!


All times are GMT. The time now is 06:39 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.01130 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
  • (7)bbcode_code_printable
  • (2)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