Quote:
Originally Posted by foesracing
I understand that. I just want to see how another page is written, which variable is need to recreate the same page as forum.php but displaying a different information. I know how to code php but don't know the structure of how vbulletin assembles its code.
|
This may help -
[HOW TO - vB4] Create a own vBulletin page
Quote:
Originally Posted by worried
HTML Code:
$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == 'album.php')
{
$vbulletin->options['selectednavtab']='for_pics';
$tabselected = ' class="selected"';
}
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="album.php">Albums</a>'.$tablinks.'</li>' ;
What am I doing wrong here? All I want is a button (no sub menu). Everything works fine except the Forum button is selected instead when clicking the Albums button.
|
If you look at the top of your album.php page, you will see THIS_SCRIPT defined here:
PHP Code:
define('THIS_SCRIPT', 'album');
You put 'album.php' instead of the correct 'album' in the conditional. Change it.