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)

griffinzx10 03-02-2008 03:09 AM

Quote:

Originally Posted by griffinzx10 (Post 1452204)
actually I do have a question.. I have this working when my Site Contributors group is the Primary group. Now can I leave that set up the way it is, but also incorporate the fix for haveing this work as a secondary group? So I can have it work both ways?


Bump, can anyone answer this?

griffinzx10 03-07-2008 01:59 PM

bump bump I could really use some help with this.. Anyone?

Sothside40 03-12-2008 12:40 AM

damn, i guess I dont have a chance in getting this question answered, nor the guy before me...smh

TCE Killa 03-12-2008 06:14 PM

Is their away to get this to show up in memberinfo as well? Thanks.

MiahBeSmokin420 03-12-2008 06:43 PM

Quote:

Originally Posted by TCE Killa (Post 1463207)
Is their away to get this to show up in memberinfo as well? Thanks.

ya you put the code in your member info template where you want it

TCE Killa 03-12-2008 07:14 PM

Quote:

Originally Posted by MiahBeSmokin420 (Post 1463221)
ya you put the code in your member info template where you want it


Nah I know that, but their isn't away to make it show up under location or anything. Where ever you put it, it just shows up under the templates etc...

griffinzx10 03-12-2008 10:01 PM

Quote:

Originally Posted by griffinzx10 (Post 1452204)
actually I do have a question.. I have this working when my Site Contributors group is the Primary group. Now can I leave that set up the way it is, but also incorporate the fix for haveing this work as a secondary group? So I can have it work both ways?


seriously can anyone answer this?????

Please I need it answered????

Can this be done for 2 groups.
Set up as the primary group, and it works, but I want to set this up so I can have my site supporter group as a secondary group, and still have the image show.. I need this for my mods and admins, who's primary groups are mods/admins and their effective rights are based on that..

PLEASE???

MiahBeSmokin420 03-13-2008 12:11 AM

im not going to give support on this cause its not my modification

but here is my code that i use in the post bit and member info

so if you can figure it out then have a ball

if not then ooh well then let the creator help you

HTML Code:


<!-- Site Supporter Code -->
<if condition="$post[usergroupid] == 5 and is_member_of($post, 17)"><img src="images/misc/supporter.gif"><BR></if>
<if condition="$post[usergroupid] == 6 and is_member_of($post, 17)"><img src="images/misc/supporter.gif"><BR></if>
<if condition="$post[usergroupid] == 7 and is_member_of($post, 17)"><img src="images/misc/supporter.gif"><BR></if>
<if condition="$post[usergroupid] == 9 and is_member_of($post, 17)"><img src="images/misc/supporter.gif"><BR></if>
<if condition="$post[usergroupid] == 16 and is_member_of($post, 17)"><img src="images/misc/supporter.gif"><BR></if>
<!-- / Site Supporter Code -->

thats just how i did it for the secondary user groups

Sothside40 03-13-2008 01:12 AM

is this correct for more than one usergroup, bcuz when i use this...... the usergroup that is on the bottom has their image all the way on the bottom of their profile and it stretches the page...

Quote:

<!-- 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 04:32 AM

Quote:

Originally Posted by Sothside40 (Post 1463446)
is this correct for more than one usergroup, bcuz when i use this...... the usergroup that is on the bottom has their image all the way on the bottom of their profile and it stretches the page...

look for the setting in the <div tag before </div>

thats probally whats messing that up

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 07:06 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.01918 seconds
  • Memory Usage 1,787KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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