vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create a New Tab in the navbar (https://vborg.vbsupport.ru/showthread.php?t=226914)

Lynne 01-22-2010 07:11 PM

Quote:

Originally Posted by princeedward (Post 1963676)
Thanks Lynne...manage to create also this great tutorial from you....just can't figure it out how to hide this DropDown Menu to Guest...tried the one you mention above but no luck...

can you please assist me here...

Please post your whole plugin, not just part of it.

princeedward 01-22-2010 07:20 PM

PHP Code:

<li><a href="arcade.php?&act=Arcade&do=createtourney">Create New Tournament</a></li>


<
li class="popupmenu">
               <
a href="javascript://" class="popupctrl">MiscMenu</a>
               <
ul class="popupbody popuphover"


<
li><a href="arcade.php?&act=Arcade&module=settings">Settings</a></li>

<
li><a href="arcade.php?&act=Arcade&module=favorites">Favorites</a></li>

<
li><a href="arcade.php?&act=Arcade&module=report">Rankings</a></li

                                </
ul>     

<
li class="popupmenu">
               <
a href="javascript://" class="popupctrl">Games Menu</a>
               <
ul class="popupbody popuphover"


just like i said just want to hide the Misc. Menu to Unregistered Groups... or else everthing....

Lynne 01-22-2010 10:16 PM

PHP Code:

...
<
li><a href="arcade.php?&act=Arcade&do=createtourney">Create New Tournament</a></li>';

if (is_member_of($vbulletin->userinfo, x))
{
    $tablinks .= '
<li class="popupmenu">
               <
a href="javascript://" class="popupctrl">MiscMenu</a>
               <
ul class="popupbody popuphover"
<
li><a href="arcade.php?&act=Arcade&module=settings">Settings</a></li>
<
li><a href="arcade.php?&act=Arcade&module=favorites">Favorites</a></li>
<
li><a href="arcade.php?&act=Arcade&module=report">Rankings</a></li
                                </
ul></li>';
}     

    $tablinks .= '
<li class="popupmenu">
               <
a href="javascript://" class="popupctrl">Games Menu</a>
               <
ul class="popupbody popuphover">
... 

Change the x in the condition to the usergroupid you want to show it to. Or use this:
PHP Code:

if (!is_member_of($vbulletin->userinfox)) 

and change the x to the usergroupid you do NOT want to show it to.

princeedward 01-23-2010 03:35 AM

fantastic Lynne....thanks once again for your help... ;):up:

Naxon 01-28-2010 12:19 PM

how do I put the tab before the "What's New?" tab and not after it?

Storyteller69 01-28-2010 12:43 PM

Read the article:
Quote:

You may use a different template_hook here - it just depends on where you want your tab to be - navtab_start and navtab_middle are also available.

Naxon 01-28-2010 12:47 PM

I don't have these hook locations...

Lynne 01-28-2010 02:47 PM

Quote:

Originally Posted by Naxon (Post 1968905)
I don't have these hook locations...

If you don't have them, then you removed them and you will have to add them back. (We are talking about the *tempate_hook* locations here, not the plugin hook location.)

Naxon 01-28-2010 04:17 PM

oops, my bad...

but 'navtab_middle' puts it before the blogs tab, how do I put it between the blogs tab and the what's new tab?

Lynne 01-28-2010 04:40 PM

Change the Execution Order of the plugin.


All times are GMT. The time now is 12:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01716 seconds
  • Memory Usage 1,759KB
  • 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
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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