Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 02-27-2008, 04:25 PM
Elenna Elenna is offline
 
Join Date: Jan 2006
Location: St. Charles, MO
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't help you with the vBshout question, sorry!

But you can add conditionals to your navbar code, so that the code between the <if> and </if> displays only to certain usergroups, users, etc.

I have NO idea where I got this (if someone has a better link, please do post!), but here are some conditionals that you can use to customize your template:

1. Show some information only to 1 usergroup.
Code:
<if condition="is_member_of($bbuserinfo, 1)">Only group 1 can see this ...</if>
2. Show some information to multiple usergroups.
Code:
<if condition="is_member_of($bbuserinfo, 1, 2, 3)">Only groups 1, 2 and 3 can see this ...</if>
3. Show some information only to 1 user id.
Code:
<if condition="$bbuserinfo[userid] == 4">Only the user with the id #4 can see this ...</if>
4. Show some information to multiple user Ids.
Code:
<if condition="in_array($bbuserinfo[userid], array(1,2,3))">Only the users with the specified id #'s can see this ...</if>
5. Hide information only from 1 usergroup.
Code:
<if condition="!is_member_of($bbuserinfo, 4)">Users from this usergroup can't see this ...</if>
6. Hide information from multiple usergroups.
Code:
<if condition="!is_member_of($bbuserinfo, 2, 3, 4)">Users from these usergroups can't see this ...</if>
7. Hide information only from 1 user id.
Code:
<if condition="$bbuserinfo[userid] == 4">The user with this id # can't see this ...</if>
8. Hide information from multiple user Ids.
Code:
<if condition="!in_array($bbuserinfo[userid], array(1,2,3))">The users with these id #'s can't see this ...</if>
9. Show information only in forum
Code:
<if condition="$forumid == 1">If you are in the forum with the id# 1, you can see this ...</if>
10. Show information in few forums
Code:
<if condition="in_array($forumid, array(1,2,3))">If you are in the forum with the id #'s 1,2 and 3, you can see this ...</if>
11. Hide information in 1 forum
Code:
<if condition="$forumid != 1">If you are in the forum with the id# 1, you can't see this ...</if>
12. Hide information in multiple forums.
Code:
 
<if condition="!in_array($forumid, array(1,2,3))">If you are in the forum with the id# 1, you can't see this ...</if>
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:36 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.03464 seconds
  • Memory Usage 2,297KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (12)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete