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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-04-2012, 06:00 PM
rodeojones's Avatar
rodeojones rodeojones is offline
 
Join Date: Feb 2012
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Hiding Existing Tabs from Unregistered Users

Greetings all. I am currently using vB 4.1.11 (haven't upgraded because things are running smoothly and I am afraid to mess with that )

I would like to know if there is a simple plug-in script that I can execute in order to hide all but the home and blog tabs from unregistered users. I made the forum visible in order to let unregistered users see the articles and blogs I am posting, but they don't need to see a bunch of links for sections they can't access anyway. I appreciate the help! Thanks!
Reply With Quote
  #2  
Old 09-04-2012, 08:16 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have any of the "tabs" mods installed?
Reply With Quote
  #3  
Old 09-04-2012, 08:33 PM
rodeojones's Avatar
rodeojones rodeojones is offline
 
Join Date: Feb 2012
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the sstab advanced 2.0.5 installed, but it appears that I can only set those permissions for newly created tabs, not existing tabs.
Reply With Quote
  #4  
Old 09-11-2012, 03:49 PM
rodeojones's Avatar
rodeojones rodeojones is offline
 
Join Date: Feb 2012
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just checking in. Any help would be appreciated. Thanks!
Reply With Quote
  #5  
Old 09-11-2012, 04:02 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You will need to ask that question in the modification thread since we know nothing about that modification and how to add permissions to the tabs.
Reply With Quote
  #6  
Old 09-11-2012, 04:16 PM
rodeojones's Avatar
rodeojones rodeojones is offline
 
Join Date: Feb 2012
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lynne,

Thanks for the response

My mention of the mod was in response to the question ask about the mods I have installed. From what I can see, this cannot be done with that mod so I am looking for any code I can add as a plug-in or a mod that currently exists to make this happen. Thanks!
Reply With Quote
  #7  
Old 09-11-2012, 04:23 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The one in my sig can do what u ask if you have any problems with it pm me
Reply With Quote
  #8  
Old 09-11-2012, 04:35 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or write a plugin - https://vborg.vbsupport.ru/showthread.php?t=226914
Reply With Quote
  #9  
Old 09-11-2012, 04:39 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry forgot about this thread You will need to edit the navbar template and add a conditional around the tabs you want to hide.

<vb:if condition="$show['member']"> is the tag you put in front of the stuff you want to hide from guests.

</vb:if> is the tag you put at the end of the stuff you want to hide from guests.

This example is the default code for the "what's new" tab, it hides the tab from guests. As I don't have that tab mod installed I can't show you an example using the code from one of the tabs you created.

Code:
<vb:if condition="$show['member']">
                        <li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>
                        <vb:else />
                        <li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
                        </vb:if>
Reply With Quote
  #10  
Old 09-12-2012, 12:17 PM
rodeojones's Avatar
rodeojones rodeojones is offline
 
Join Date: Feb 2012
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

John,

Thanks for your code. I am trying to hide 4 tabs, two of which are built in to vB, two are plugins.

The two tabs built in are the Forum and What's New. I looked in the navbar template and can't find the code that specifically points to the "Forum" tab itself. Any guidance would be appreciated.

The two plugins use the following code:

Code:
$tabselected = ''; 
$tablinks = ''; 
if (THIS_SCRIPT == 'calendar') 
{ 
$vbulletin->options['selectednavtab']='events'; 
    $tabselected = ' class="selected"'; 
}  
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="http://www.projecttheophilus.com/comcenter/calendar.php?calendarid=1">EVENTS</a>'.$tablinks.'</li>' ;
I'm not sure where to add the code you provided into these plugins. Any help there would be appreciated. Thank you so much for all the help!
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 06:05 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.04038 seconds
  • Memory Usage 2,245KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete