PDA

View Full Version : Autopopulated Navbars not working


Cyricx
06-07-2004, 02:37 AM
Hmm :(,

The autopopulated navbars for Ustore and the addon to v3 arcade that Natch made, donot work with vbadvanced :(

You can see this on my site through the homepage at www.mmogcommunities.com neither the arcade link shows the games, or the store link shows the actions.

But when you go to the forums page at www.mmogcommunities.com/forums they both populate fine.

I just switched over from vbindex, and tossed it back in to be certain there wasn't another issue, the navbar populates fine in vbindex, so lookin like this is a bug with vbadvanced. :(

Heard one other mention having problems with natch's navbar and they have the new vbadvanced as well. :(

Any ideas on how to fix this?

~ Cyricx

Brian
06-07-2004, 10:45 AM
If you'll take a look at this thread (http://www.vbadvanced.com/forum/showthread.php?t=1143), that will tell you how to add the navbar info. I'm not familiar with the arcade add-on, so I would have to see your navbar template to be able to tell you what to change for that to work.

Our Sponsors
 

Chuckie
06-07-2004, 01:30 PM
I know what your talking about. Where can I get the hack to test it?

Cyricx
06-08-2004, 12:41 AM
Ahh excellent! Thank you Brian :)

That did the trick.

To others, I editted the vba_cmps_include_bottom.php file

Searched for:
global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;


And replace it with:
global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox, $ushop_navbar, $nav_arcade;

Now both the Ushop and Natch's Addon: Auto-populate Navbar menu (for John's Arcade V3) (http://www.vbulletin.org/forum/showthread.php?t=61278)

Work correctly :)

Our Sponsors
 

Brian
06-08-2004, 10:13 AM
Glad you were able to figure it out. :)
I'll probably end up just taking that out of a function in a future version so that hacks like that won't be a problem.

adhari_com
06-17-2004, 11:34 AM
isn't there a way to disable the customer construct_adv_navbar() and use the normal one ?

becuz I have cmps_i.php in the forums folder so I won't need to add the vburl to it.

Thanx for the valuable information :)

Natch
06-18-2004, 10:21 AM
Hmmmm - I haven't applied this modification, yet my Auto-populating Arcade dropdown works just fine ...

Brian
06-19-2004, 11:30 AM
isn't there a way to disable the customer construct_adv_navbar() and use the normal one ?

becuz I have cmps_i.php in the forums folder so I won't need to add the vburl to it.

Thanx for the valuable information :)
Sure, you can just look in your forum/includes/vba_cmps_include_bottom.php file for:

if (!function_exists('construct_adv_navbar'))
{
function construct_adv_navbar($navbits = '', $index = 'false')
{
global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox;

if ($navbits)
{
$navbits = construct_navbits($navbits);
}

eval('$navbar = "' . fetch_template('navbar') . '";');

$navbar = str_replace(
array(
'"memberlist.php',
'"usercp.php',
'"register.php',
'"faq.php',
'"calendar.php',
'"search.php',
'"login.php',
'"forumdisplay.php',
'"profile.php',
'"private.php',
'"subscription.php',
'"member.php',
'"online.php',
'"clientscript',
'\'misc.php',
$vboptions['bbtitle'],
'"' . $vboptions['forumhome'] . '.php'
),
array(
'"' . $vboptions['bburl'] . '/memberlist.php',
'"' . $vboptions['bburl'] . '/usercp.php',
'"' . $vboptions['bburl'] . '/register.php',
'"' . $vboptions['bburl'] . '/faq.php',
'"' . $vboptions['bburl'] . '/calendar.php',
'"' . $vboptions['bburl'] . '/search.php',
'"' . $vboptions['bburl'] . '/login.php',
'"' . $vboptions['bburl'] . '/forumdisplay.php',
'"' . $vboptions['bburl'] . '/profile.php',
'"' . $vboptions['bburl'] . '/private.php',
'"' . $vboptions['bburl'] . '/subscription.php',
'"' . $vboptions['bburl'] . '/member.php',
'"' . $vboptions['bburl'] . '/online.php',
'"' . $vboptions['bburl'] . '/clientscript',
'\'' . $vboptions['bburl'] . '/misc.php',
$vboptions['hometitle'],
'"' . $vboptions['homeurl']
),
$navbar
);
return $navbar;
}
}


And replace that with:
if ($navbits)
{
$navbits = construct_navbits($navbits);
}
eval('$navbar = "' . fetch_template('navbar') . '";');