Quote:
Originally Posted by Trevor Matthews
I installed this and like other tab mods it doesn't highlight the tab selected.
I want to add two new tabs. One called Discussions and the other Repair tips.
How do I do this and allow the tabs to be highlighted.
The two new tabs are just links to parts of the forum.
I understand the .php bit bit does a sub forum have a .php page to itself?
|
Same qustion. I would like to add 2 tabs to link sub-forums, so the link looks like
Code:
http://xxxxxxxxxx/forumdisplay.php/111-blabla
Any way how to make this TAB as "selected" when selected ?
EDIT: Ha! No MOD like this needed. It can be simply done via custom plugin!
Product:
vBulletin
Hook Location:
process_templates_complete
Title: <whatever you want>
Plugin PHP Code:
Code:
$tabselected = '';
$tablinks = '';
if ($GLOBALS['forumid'] == 222)
{
$vbulletin->options['selectednavtab']='SOMETHING';
$tabselected = ' class="selected"';
}
$template_hook['navtab_middle'] .= '<li'.$tabselected.'><a class="navtab" href="http://yoursite/forumdisplay.php/222-Blablabla">SOMETHING</a>'.$tablinks.'</li>' ;
Credits: Lynne & wowautoauctions