vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - Site Supporter Button in Postbit - Primary/Additional Usergroups supported (https://vborg.vbsupport.ru/showthread.php?t=148629)

Sothside40 03-13-2008 04:41 AM

this is exactly how i have it ....

Quote:

<div><center>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</center></div>
<!-- Rank -->
<br /><if condition="$post[usergroupid] == 17"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --><!-- Rank -->
<br /><if condition="$post[usergroupid] == 11"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --><!-- Rank -->
<br /><if condition="$post[usergroupid] == 6"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --><!-- Rank -->
<br /><if condition="$post[usergroupid] == 7"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --><!-- Rank -->
<br /><if condition="$post[usergroupid] == 5"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --><!-- Rank -->
<br /><if condition="$post[usergroupid] == 18"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --><!-- Rank -->
<br /><if condition="$post[usergroupid] == 15"><center><img src="images/misc/vip3-1.gif"></center></if>
<!-- / Rank --></div>

MiahBeSmokin420 03-13-2008 05:29 AM

Quote:

Originally Posted by Sothside40 (Post 1463530)
this is exactly how i have it ....

can i see a live demo or somthing

Sothside40 03-13-2008 03:29 PM

https://vborg.vbsupport.ru/external/2008/03/18.gif ......Original Image

Usergroup ID: #5
https://vborg.vbsupport.ru/external/2008/03/7.png

Usergroup ID: #6
https://vborg.vbsupport.ru/external/2008/03/8.png

Usergroup ID: #7
https://vborg.vbsupport.ru/external/2008/03/9.png

Usergroup ID: #11
https://vborg.vbsupport.ru/external/2008/03/10.png

Usergroup ID: #15
https://vborg.vbsupport.ru/external/2008/03/11.png

Usergroup ID: #18
https://vborg.vbsupport.ru/external/2008/03/12.png

griffinzx10 03-13-2008 04:27 PM

so how would i make that work for me? Just use taht one line of code and edit it for my user groups? And where does it go?

griffinzx10 03-17-2008 04:52 PM

????????

griffinzx10 03-20-2008 02:18 PM

bump... HELP< and bump

Joey Link 09-23-2008 02:21 PM

Is this mod no longer supported?

I have different levels of supporting members with different primary groups. Can this display different images depending on the users primary group?

SVTCobraLTD 09-28-2008 12:48 PM

Quote:

Originally Posted by Joey Link (Post 1628597)
Is this mod no longer supported?

I have different levels of supporting members with different primary groups. Can this display different images depending on the users primary group?

Yes and its pretty simple

Big-K 02-22-2011 04:31 PM

Does anyone know what the right conditional for this would be in VB4?

Code:

<if condition="$post[usergroupid] == X"><img src="images/misc/supporter.gif"></if>
<!-- / Site Supporter Code -->

I tried the following but it inserts the image for everyone
Code:

<vb:if condition="is_member_of($bbuserinfo,X)"><img src="images/misc/supporter.gif"></vb:if>

RedPoint 03-23-2011 10:29 PM

Quote:

Originally Posted by Big-K (Post 2165497)
Does anyone know what the right conditional for this would be in VB4?

Code:

<if condition="$post[usergroupid] == X"><img src="images/misc/supporter.gif"></if>
<!-- / Site Supporter Code -->

I tried the following but it inserts the image for everyone
Code:

<vb:if condition="is_member_of($bbuserinfo,X)"><img src="images/misc/supporter.gif"></vb:if>

Hi, i use this and is run ;)

PHP Code:

<vb:if condition="$post[usergroupid] == 2 and is_member_of($post, 34)"><img src="images/ranks/ranksupporter.gif"></vb:if>
<
vb:if condition="$post[usergroupid] == 19 and is_member_of($post, 34)"><img src="images/ranks/ranksupporter.gif"></vb:if>
<
vb:if condition="$post[usergroupid] == 29 and is_member_of($post, 34)"><img src="images/ranks/ranksupporter.gif"></vb:if>
<
vb:if condition="$post[usergroupid] == 30 and is_member_of($post, 34)"><img src="images/ranks/ranksupporter.gif"></vb:if> 

I save my picture in ranks/picturename.gif - you must change this with your way to picture.


All times are GMT. The time now is 04:24 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.01104 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete