Log in

View Full Version : Easier way to change the navbit?


RedGTiVR6
02-23-2007, 06:44 PM
I need to change the links that are on the navbit.

I know how to change what each one links to (for instance, when a user clicks on 'New Posts' it now takes them to the AJAX of new posts.

But I didn't change much to make this happen.

Isn't there an easier way to change these links?

Like if I want to get rid of the 'quick links' (because I have the UserCP drop down menu that does the same thing) and instead, link to our wiki...

Anyone?

Princeton
02-23-2007, 07:03 PM
you will need to edit the navbar template

RedGTiVR6
02-26-2007, 04:20 PM
I'm not quite sure how to go about doing this.

In the navbar template take this:

<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>

Let's say I want to link to this:

<td class="vbmenu_control"><a href="vbgooglemapme.php$session[sessionurl_q]">$vbphrase[xxxxxx]</a></td>

Where do I determine the xxxxx?

HMBeaty
02-26-2007, 04:41 PM
You would have to create a new phrase

RedGTiVR6
02-26-2007, 04:52 PM
how?

:confused: :(

HMBeaty
02-26-2007, 05:02 PM
in your admincp > languages and phrases > phrase manager > add new phrase

RedGTiVR6
02-26-2007, 05:07 PM
thank you!

I kept searching through the templates.

again, thanks for answering my remedial questions. :)

HMBeaty
02-26-2007, 05:15 PM
Hahahaa, no problem. Everyone has to learn sometime

RedGTiVR6
02-26-2007, 06:47 PM
Welp - I'm back...yet again...

I've created a new phrase and attached it to the product I'm trying to link to.

<td class="vbmenu_control"><a href="vbgooglemapme.php$session[sessionurl_q]">$vbphrase[user_map]</a></td>

There's no link on the navbit for this.

I've removed the calendar link and put the code above in it's place.

Phrase Type: VB Googlemap ME
Product: vbgooglemap Member Edition by StonyArc
Var Name: user_map
Text: <blank>

Am I supposed to put something in the text field?

HMBeaty
02-26-2007, 07:11 PM
Yes, the text is what will display in your navbar and you MAY have to change phrase type to global. I'm not 100% sure on that one though

RedGTiVR6
02-26-2007, 07:30 PM
That did it!

And yes, it should be globals.

Thanks yet again. Where's the 'give karma' when you need it?

HMBeaty
02-26-2007, 07:34 PM
Well, I'm glad you got it, hahahah. And you're welcome