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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2008, 02:10 PM
caedas caedas is offline
 
Join Date: Nov 2007
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Permission-based Navbar?

Does one exist? I have seen and tried one or two and they either don't allow permissions to be set for each link (or bar)...or don't work. Could someone point me in the right direction?

Also, while pointing, could you point to the actual script(s) for vBshout? My searches turn up mods for it and never the program itself (though I could be overlooking it.)

Thanks!
Reply With Quote
  #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
  #3  
Old 02-27-2008, 05:55 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lite Version

Full Version
Reply With Quote
Reply


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 12:57 AM.


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.04083 seconds
  • Memory Usage 2,184KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (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)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_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • 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