vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to add a link to Nav bar (https://vborg.vbsupport.ru/showthread.php?t=170740)

karlton87 02-17-2008 12:23 PM

How to add a link to Nav bar
 
Im sorry if this has been done somewhere and im guessing it has but lots of people have been asking recently so here it is.

Follow these steps so that you can edit the template,

Go to Admin CP, then Styles & Templates. Choose Style Manager then on the drop down menu select Navigation / Breadcrumb Templates. Finally click navbar so you can see the navbar code.

Find
Code:

<!-- nav buttons bar -->
<div align="center">
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
        <tr align="center">

Then directly below add,

Code:

<td class="vbmenu_control"><a href="LINK URL">LINK NAME</a></td>
Now you will have a new link in your nav bar.
I hope this simple template modification helps some people.

Ozdemir 02-17-2008 12:37 PM

examples;
-you can add tags.php link to navbar
Code:

<td class="vbmenu_control"><a href="tags.php$session[sessionurl_q]">$vbphrase[tags]</a></td>
-you can add social groups link to navbar
Code:

<td class="vbmenu_control"><a href="group.php" target="_blank">Social Groups</a></td>
if you wanna show a link to members only you must add this code over
Code:

<if condition="$show['member']">
and don't forget close with </if>

iogames 02-17-2008 02:18 PM

Wow!

this 3.7.x version is creating a bunch of 'transitional mods' with very short life span or usefulness...
I should write an article on that :rolleyes:

youradhere4222 02-17-2008 10:07 PM

Thanks for this hack. :)

Forum Lover 02-18-2008 05:15 AM

Now, this is handy. thanks...

Jase2 02-18-2008 07:02 PM

And Unanswered Posts under quick links:

Code:

<td class="vbmenu_option"><a href="search.php?searchid=15428">Unanswered Posts</a>
Or on the navbar:

Code:

<td class="vbmenu_control"><a href="search.php?searchid=15428">Unanswered Posts</a>
Regards Jason :)

macc 02-18-2008 09:20 PM

hello!

use this hack and put some links in navbar but have one problem with template cyberblue... links come out from template... http://belaplay.com/vb/libar/index.php?styleid=3

some help ?

regards
macc

edit - fixed - thanks

Jase2 02-18-2008 09:58 PM

I can't see any links that come out there.

Regards Jason :)

macc 02-19-2008 07:35 AM

i fixed and now is ok
thanks

macc

Trip3151 02-19-2008 07:56 AM

How would you get a link to open in a new window?


All times are GMT. The time now is 09:47 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.01035 seconds
  • Memory Usage 1,742KB
  • 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
  • (7)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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