vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Important Links In Navbar v3.00 (https://vborg.vbsupport.ru/showthread.php?t=259636)

Boofo 03-09-2011 02:55 AM

Look in the navbar template.

bitbender 03-09-2011 11:09 AM

Btw - I found that I wanted to alter the position of where the Important links is inserted into the navbar - "easy peasy" with the hook location change to navbar_end versus navbar_after_calendar in the plugin :)

Thx to Boofo for telling me to wake up and post in the correct thread)

Last_Zero 03-09-2011 12:22 PM

Quote:

Originally Posted by bitbender (Post 2171326)
Btw - I found that I wanted to alter the position of where the Important links is inserted into the navbar - "easy peasy" with the hook location change to navbar_end versus navbar_after_calendar in the plugin :)

Thx to Boofo for telling me to wake up and post in the correct thread)

Yeah The 2nd Version Was In Navbar_end

Boofo Edited It To Show In Navbar_After_Calender

:)

Mark4865 03-09-2011 12:38 PM

okay re-installed version 2 again and all working 100% thanks for this great simple mod

bitbender 03-09-2011 01:00 PM

Quote:

Originally Posted by Last_Zero (Post 2171350)
Yeah The 2nd Version Was In Navbar_end

Boofo Edited It To Show In Navbar_After_Calender

:)

Well, from my chair the "after" calendar location is actually a logical place for it.. Just that my membership is used to seeing it right justified at the end from a similar mod I provide them on the VB 3.7 board(Custom links in Navbar). I have other links after Calendar and so ... :)

And they have promised to have me tarred and feathered and possibly even keelhauled if I don't keep the same functionality in the VB 4 flavor. ;) Thank goodness that my bluegrass community isn't as picky. :up:

Cheers

Gemma 03-09-2011 01:56 PM

Nice idea. Thank you :)

OldSchoolDSL 03-09-2011 02:27 PM

Quote:

Originally Posted by Boofo (Post 2171212)
Look in the navbar template.

I Google`d and did a search, but could only find the code for vBulletin 3. I'm using vBulletin 4 and while I think I found something similar, I'm not sure what to remove.

Any help would be very grateful

Boofo 03-09-2011 02:59 PM

The way I do it if I don't know for sure where something is:

I look for the phrase first (Quick Links).
Then I do a search in the phrases for Quick Links and find what the phrase name is.
Then I do a search in the templates for that phrase name and voila! ;)

Then just wrap it in a conditional for what you want.

OldSchoolDSL 03-09-2011 03:12 PM

Quote:

Originally Posted by Boofo (Post 2171424)
The way I do it if I don't know for sure where something is:

I look for the phrase first (Quick Links).
Then I do a search in the phrases for Quick Links and find what the phrase name is.
Then I do a search in the templates for that phrase name and voila! ;)

Then just wrap it in a conditional for what you want.

I think this is the code I need to remove, to remove that menu.

Code:

<a href="javascript://" class="popupctrl" accesskey="3">{vb:rawphrase quick_links}</a>
edit: Confirmed. All seems to be working. Although I'm sure there is more code for that menu, but I could not figure it all out.

Boofo 03-09-2011 04:25 PM

Quote:

Originally Posted by OldSchoolDSL (Post 2171432)
I think this is the code I need to remove, to remove that menu.

Code:

<a href="javascript://" class="popupctrl" accesskey="3">{vb:rawphrase quick_links}</a>
edit: Confirmed. All seems to be working. Although I'm sure there is more code for that menu, but I could not figure it all out.

Okay, here is what you need to do:

In the navbar template
Replace this:

Code:

                                        <li class="popupmenu">
                                                <a href="javascript://" class="popupctrl" accesskey="3">{vb:rawphrase quick_links}</a>
                                                <ul class="popupbody popuphover">
                                                        <vb:if condition="$show['member']">
                                                                <li><a href="subscription.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>
                                                                <li><a href="javascript://" onclick="window.open(getBaseUrl() + 'misc.php?{vb:raw session.sessionurl}do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">{vb:rawphrase open_contacts}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$vboptions['forumleaders']">
                                                        <li><a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
                <vb:if condition="$vb_suite_installed">
                        {vb:rawphrase view_site_leaders}
                <vb:else />
                        {vb:rawphrase view_forum_leaders}
                </vb:if>
        </a></li>
                                                        </vb:if>
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos1}
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos2}
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos3}
                                                        <vb:if condition="$show['wollink']">
                                                                <li><a href="online.php{vb:raw session.sessionurl_q}">{vb:rawphrase whos_online}</a></li>
                                                        </vb:if>
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos4}
                                                </ul>
                                        </li>


with this:

Code:

                                        <vb:comment>
                                        <li class="popupmenu">
                                                <a href="javascript://" class="popupctrl" accesskey="3">{vb:rawphrase quick_links}</a>
                                                <ul class="popupbody popuphover">
                                                        <vb:if condition="$show['member']">
                                                                <li><a href="subscription.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>
                                                                <li><a href="javascript://" onclick="window.open(getBaseUrl() + 'misc.php?{vb:raw session.sessionurl}do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">{vb:rawphrase open_contacts}</a></li>
                                                        </vb:if>
                                                        <vb:if condition="$vboptions['forumleaders']">
                                                        <li><a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
                <vb:if condition="$vb_suite_installed">
                        {vb:rawphrase view_site_leaders}
                <vb:else />
                        {vb:rawphrase view_forum_leaders}
                </vb:if>
        </a></li>
                                                        </vb:if>
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos1}
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos2}
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos3}
                                                        <vb:if condition="$show['wollink']">
                                                                <li><a href="online.php{vb:raw session.sessionurl_q}">{vb:rawphrase whos_online}</a></li>
                                                        </vb:if>
                                                        {vb:raw template_hook.navbar_quick_links_menu_pos4}
                                                </ul>
                                        </li>
                                        </vb:comment>


Notice what I highlighted in red. Wrapping it in comment tags will comment it all out but yet leave it there in case you ever want it in the future.


All times are GMT. The time now is 04:45 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.01174 seconds
  • Memory Usage 1,769KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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