Quote:
can you provide the full plugin code, either here or via PM and i'll take a proper look
|
PHP Code:
$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == 'guides_script')
{
$vbulletin->options['selectednavtab']='Guides';
$tabselected = ' class="selected"';
}
$links = array("link 1", "link 2", "link 3");
$max = sizeof($links);
$rand = rand(0, $max);
$template_hook['navtab_end'] .= ('<li'.$tabselected.'><a class="navtab" href=$links[$rand]>Nav Link</a>'.$tablinks.</li>');
This should be basically the same as the original plugin code Lynne posted. I took out the code for the drop down menu.