vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   3.6 - Image in Postbit! (https://vborg.vbsupport.ru/showthread.php?t=132946)

Tommm 12-01-2006 01:17 PM

3.6 - Image in Postbit!
 
Hey

If a member is part of an additional usergroup, I would like to display a small image in the postbit underneath the reputation count.

How could I do this? I know the basics of template editing, but if statements confuse me somewhat

Thankyou!

Darat 12-01-2006 01:42 PM

Think this is what you need: https://vborg.vbsupport.ru/showpost....09&postcount=4

Tommm 12-01-2006 02:20 PM

I tried
Code:

<if condition="is_member_of($bbuserinfo, 93)"><img src="http://habbos.net/imagehosting/2654560b9444efbb.gif" alt="Duck Clan Supporter" /></if>

<if condition="is_member_of($bbuserinfo, 90)"><img src="http://habbos.net/imagehosting/2654560b9445b1c0.gif" alt="Pink Clan Supporter" /></if>

<if condition="is_member_of($bbuserinfo, 92)"><img src="http://habbos.net/imagehosting/2654560b9446016c.gif" alt="Purple Clan Supporter" /></if>

<if condition="is_member_of($bbuserinfo, 91)"><img src="http://habbos.net/imagehosting/2654560b94464f9e.gif" alt="Red Clan Supporter" /></if>

but didn't have any joy :(

It worked when I replaced bbuserinfo with post.. my bad!

Darat 12-01-2006 02:24 PM

Try something like:

<if condition="$bbuserinfo['usergroupid'] == '7'">
<img code></img>
</if>

Replace 7 with the usergroup number you want to check for.


All times are GMT. The time now is 11:03 PM.

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.01541 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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