The Arcive of vBulletin Modifications Site. |
|
Navbar problems Details »»
|
|||||||||||||||||||||||||
In my navbar template, I have added a 2nd menu. See for yourself at http://www.playgroundamerica.com/forums/
The problem is, that even though the arcade template makes reference to the navbar template, when I goto my arcade at http://www.playgroundamerica.com/forums/arcade.php the 2nd menu is gone. Ideas? --------------- Added [DATE]1206630224[/DATE] at [TIME]1206630224[/TIME] --------------- Anybody? Anybody? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Sounds like you need to add the global variable for your additional menu to arcade/functions/functions.php
|
|
#3
|
||||
|
||||
|
what variable is used for the additional menu ?
|
|
#4
|
|||
|
|||
|
Quote:
--------------- Added 27 Mar 2008 at 14:27 --------------- In the navbar template, I call "$nav2". |
|
#5
|
||||
|
||||
|
Open your arcade/functions/functions.php and search for:
Code:
//-------------------------------------------
// Parses all the information and prints it.
//-------------------------------------------
function do_output($output_array)
{
global $header, $latest_champ,
Code:
//-------------------------------------------
// Parses all the information and prints it.
//-------------------------------------------
function do_output($output_array)
{
global $header, $latest_champ, $nav2,
|
|
#6
|
|||
|
|||
|
OK, I did not have a $latest_champ in my functions.php file, but I placed "$nav2," right after global "$header," and it is working perfectly. Thank you.
Question: If the "arcade" template is calling $navbar", and the "navbar" template is calling "$nav2", why is the editing of the functions.php file even necessary? |
|
#7
|
||||
|
||||
|
Quote:
Question about the navbar.. To be able for add-ons to work with in the arcade,,you need to make them global.. Adding the add-on variable to the functions.php (like Gemma posted) does this.. If you dont,,it wont work.. |
![]() |
|
|