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

Reply
 
Thread Tools Display Modes
  #11  
Old 09-12-2012, 05:51 PM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well the "what's new" tab should already be hidden from unregistered / logged out members. Did you look in your navbar template for the code I posted?

In regards to the other tabs, were those added using sstab advanced? If so it has an option built in to hide the tabs. You will have to read up on the documentation for a how to do it.
Reply With Quote
  #12  
Old 09-12-2012, 07:18 PM
rodeojones's Avatar
rodeojones rodeojones is offline
 
Join Date: Feb 2012
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, the code I posted was added via the creation of a new plugin. While I installed sstab advanced, I haven't yet used it. I suppose I can always get rid of the plugin tabs I created and recreate them in sstabs with the restrictions. I will try that.

As far as the "What's New" tab, I did search in the navbar template and found that. Now I need to find the "Forums" tab and insert the code there. That is proving trickier to find. Any idea where that one is?

Thanks again for your help John, I very much appreciate your time
Reply With Quote
  #13  
Old 09-13-2012, 03:02 AM
John Lester John Lester is offline
 
Join Date: Nov 2004
Posts: 543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea you should pick one or the other before going forward. I'm not that experience writing plug-ins or mods, I'm a frakencoder I find something close to what I'm looking for and then butcher it until I get it to do what I want XD
Reply With Quote
  #14  
Old 09-13-2012, 01:11 PM
rodeojones's Avatar
rodeojones rodeojones is offline
 
Join Date: Feb 2012
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

LOL! Yeah, that has pretty much been my method as well. I know enough code to be dangerous

If anyone out there knows where to find the "Forums" tab in the templates that would be great.

I also deleted those plugins and used the sstab advanced to remake them and it works perfectly. Thanks for the help!
Reply With Quote
  #15  
Old 09-13-2012, 02:11 PM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rodeojones View Post
If anyone out there knows where to find the "Forums" tab in the templates that would be great.
I'm no programmer, but here's a wild guess

Code:
<a class="navtab" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}">{vb:rawphrase forum}</a>
Reply With Quote
  #16  
Old 09-13-2012, 03:38 PM
vbresults vbresults is offline
 
Join Date: Apr 2009
Posts: 687
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The easy way is to just upgrade to 4.2 and update the add-ons. But, if you must stay on 4.1.11 AND you can code...

Disable the plugins that create the tabs for the add-ons and re-create the tabs using this, then wrap the tab declarations in a $show['member'] condition, e.g. on the parse_templates plugin hook:

PHP Code:
if ($show['member']) {
    
ExtendedNavigations::update(array(
        
'name' => $vbphrase['tab_1'],
        
'url' => 'tab_1.php'
    
));

    
# etc...

Reply With Quote
  #17  
Old 10-01-2012, 05:51 PM
rodeojones's Avatar
rodeojones rodeojones is offline
 
Join Date: Feb 2012
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, so I upgraded to 4.2. And now I have some new problems.

1. There were sub-nav that I added via plugin that aren't working. They appended themselves to the sub-nav under what is now considered "articles", but they now do not show up. Here is a what the plugin script looks like:

Code:
if (is_member_of($vbulletin->userinfo, 6, 9, 18)) {
$template_hook['vbcms_navbar_end'] .= '<li><a href="http://www.mysite.com/mypage">My special page</a></li>';
}
2. I tried to make new tabs that can only be seen by custom usergroups, but after several tries I do not know what to put in the $show to designate a custom usergroup. Do I use the usergroup id? The name? I am confused. Any help would be greatly appreciated.

--------------- Added [DATE]1349203510[/DATE] at [TIME]1349203510[/TIME] ---------------

So I figured out the solution to the first one. The subnav information is now found on each article. So if you want to set your page/article as subnav under the CMS tab, you have to indicate that on the article itself through the editor... interesting...

Still have no answer for the second question I asked... anyone?
Reply With Quote
  #18  
Old 10-03-2012, 08:24 AM
MG Zebra MG Zebra is offline
 
Join Date: Sep 2012
Location: So-Cal
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For your existing tabs click on Edit in the navigation manager and in the "Show Permission Name" put member and it will only appear for members. For the sstab plugin you can use the selection to choose which membergroups can see your custom tabs. I just fixed this on mine so I figured I'd post here to help out.

This is for 4.2.0 PL2. Not sure if it will work on other versions.

PM me if you need further assistance with your tabs. I'm using this method without any problems.
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 07:40 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.04424 seconds
  • Memory Usage 2,240KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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_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
  • 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