vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Miscellaneous Hacks - Simple Staff Shield (https://vborg.vbsupport.ru/showthread.php?t=203019)

GeorgeB85 06-13-2009 01:27 AM

HTML Code:

<if condition="is_member_of($post, 6) OR is_member_of($post, 7) OR is_member_of($post, 19)"><table cellpadding="0" cellspacing="0" border="0"><tr><td><a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
&nbsp;&nbsp;</td><td valign="bottom"><img src="images/icons/shield.png" alt="User is a EB.NET staff member" border="0" /></a>

<if condition="is_member_of($post, 6) OR is_member_of($post, 19)"><a href="staff.php"><img src="images/icons/shield_c.png" alt="Site supporter &amp; contributor" border="0" /></a></if>
</td></tr></table><else />

<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a></if>

                                <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                <else />
                                $post[musername]
                                </if>
                        </div>

Use the code in this post and it should give you what you want. This is how I have mine set up, and it works.

GeorgeB85 06-13-2009 01:30 AM

Quote:

Originally Posted by rrudeboy (Post 1828716)
sorry, not understanding this.... you know i want (for now) a shield for admin/mod (which works) and a different shield for VIP's (which are in usergroup 19)

thanks.


For a shield for VIPs, upload the image to the same directory that you did it for the "staff" shield, and edit the code to point to the VIP shield. However, I am not that gread with coding to say exactly how to do it, but I know that is the general process.

rrudeboy 06-13-2009 01:48 AM

sorry.... it's not working :(

what's your forum, can i check it out how it looks ? when i put your code in everybody has both shields and the username appears twice..

GeorgeB85 06-13-2009 04:10 AM

Quote:

Originally Posted by rrudeboy (Post 1828724)
sorry.... it's not working :(

what's your forum, can i check it out how it looks ? when i put your code in everybody has both shields and the username appears twice..


Well that isnt the code I used. I just took your code and modified it to include what you were missing. Unfortunately I am not good with coding (still learning) so I wouldnt begin to know the code to point to your vip shield.

My webmaster should know. I sent him a link to this thread.

rrudeboy 06-15-2009 02:05 AM

thanks....

others are welcome to jump in, would like to get this working so i can move on to the next cool mod :}

c'mon folks.

rrudeboy 06-17-2009 05:27 PM

nevermind, i switched to using YAAS.


All times are GMT. The time now is 07:01 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.01123 seconds
  • Memory Usage 1,736KB
  • 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_html_printable
  • (2)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
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete