PDA

View Full Version : Custom page to navigation bar


setjo1980ya
05-25-2011, 01:59 PM
I have created custom page in vbulletin forum but don't know how to link it from navigation bar.
Please help

Lynne
05-25-2011, 03:53 PM
There are a few mods and a few articles about this including this one - [HOW TO - vB4] Create a New Tab in the navbar (https://vborg.vbsupport.ru/showthread.php?t=226914)

setjo1980ya
05-26-2011, 02:01 AM
Thanks for this
I have created a page in vbulletin example.php

But I really got confused and don't know with what text should I replace these
yourpage
unique_name
link.php

if (THIS_SCRIPT == 'yourpage')

vbulletin->options['selectednavtab']='unique_name';

$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="link.php">Nav Link</a>'.$tablinks.'</li>'

Lynne
05-26-2011, 02:54 AM
yourpage is whatever you define your page in this statement at the top of your page:

define('THIS_SCRIPT', 'xxxxxxx');

unique_name is any unique_name (meaning you haven't used it already as the name for a selectednavtab)

link.php is the link to your page - example.php?