Quote:
Originally Posted by Lynne
Look at your showthread template and see where $pagenav is defined (middle of the page) relative to the $navbar (near the bottom) - it's defined before it. Look at the forumdisplay.php page and look at where $pagenav is defined (bottom of the page) relative to the $navbar (top of the page) - it's defined after it. If you want to use $pagenav in the $navbar template, it needs to be defined before it.
|
THANK YOU VERY MUCH
LYNNE !!! :up:
You're Right, by Moving the $navbar Code Block Below the $pagenav Code Block, it Displays on Navbar.
I Share the File Changes for those who Need it:
On
forumdisplay.php:
Move the Block Code (Or Copy it and Comment it on it's Original Location with // on Each Line)
Code:
// draw nav bar
$navbits = array();
$parentlist = array_reverse(explode(',', substr($foruminfo['parentlist'], 0, -3)));
foreach ($parentlist AS $forumID)
{
$forumTitle = $vbulletin->forumcache["$forumID"]['title'];
$navbits['forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumID"] = $forumTitle;
}
// pop the last element off the end of the $nav array so that we can show it without a link
array_pop($navbits);
$navbits[''] = $foruminfo['title'];
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
Above the Code Line
Code:
if (!$vbulletin->GPC['prefixid'] AND $newthreads < 1 AND $unreadchildforums < 1)
And That's it, the Navbar is Displayed and as it's Below the Block Code that Displays the $pagenav, then, as
Lynne Instructed, the $pagenav is Displayed in the Navbar Template. :up:
My Best Regards, and Again Thank You Very Much
Lynne for Pointing me into this Solution. :up::up::up: