Log in

View Full Version : PHP Help


Jacob B
09-12-2008, 03:38 PM
Hey guys,

I need to know what PHP I have to write in order to get the navigation to display multiple pages. By that I mean I have a bunch of different custom pages and at the top on the navigation bar it'll normally have:

vBulletin.org Forum > Custom Page

But I want it to display any extra pages that run off my custom page, so it looks like this:

vBulletin.org Forum > Community Discussions > General vBulletin Discussions

The PHP code I see in the file is:

$navbits = construct_navbits(array('' => $vbphrase['custompage']));

What do I add after that? :confused:

Lynne
09-12-2008, 03:55 PM
I'm not sure exactly what you want, but this is what I use on one of my custom pages:

$navbits = array();
$navbits[$parent] = 'Verified Threads';

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

Jacob B
09-12-2008, 04:30 PM
Basically, I want the navigation bar to display the pages like this:

http://www.ausdefence.com/images/NAVBAR.bmp

Sorry if I'm not wording this right, I'm not quite sure of the correct terms.

Lynne
09-12-2008, 04:44 PM
That is similar to when you click on a members name and get View Profile and the members name. This is from the members.php template. Just take it and modify:

$navbits = construct_navbits(array(
'member.php?' . $vbulletin->session->vars['sessionurl'] . "u=$userinfo[userid]" => $vbphrase['view_profile'],
'' => $userinfo['username']
));
eval('$navbar = "' . fetch_template('navbar') . '";');

Jacob B
09-12-2008, 05:18 PM
Thank you greatly, Lynne. That is exactly what I was looking for.

Thanks again.