View Full Version : Editting navbar options
stoopid
05-23-2004, 04:24 PM
I'd like to be able to edit (add, remove, rename) some of the options on the navbar... but it's a bear finding which js or php file is controlling what functions/links.
I must be missing something obvious.
mholtum
05-23-2004, 05:03 PM
I changed mine in Navigation / Breadcrumb Templates / navbar
Is that what you are talking about?
See it here http://www.ravensrealm.net
stoopid
05-23-2004, 09:47 PM
The "Forums/// register // photos /..." bar towards the top, which does appear to be modified on yours... I didn't see a navigation template, but I'll look again.
stoopid
05-23-2004, 10:24 PM
Okay, so that's the template I've been looking through...
Only calendar entries, for example, are:
<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
How would I, as one of the things I'm looking to accomplish, get "Events Calendar" to show on the Navbar?
I'm obviously not a programmer and the little php I've learned is out of necessity (for managing a small database reporting page a friend developed for my site).
stoopid
05-24-2004, 03:11 PM
I don't think this can be that hard... am I asking the wrong question? Am I 2 newb 4 U??
neocorteqz
05-24-2004, 04:10 PM
Are you asking how to rename the link?
if so, replace $vbphrase[calendar] with whatever you want. or make a new phrase in the admin panel and replace the code with $vbphrase[new_phrase_here].
sorry if that's not what you're asking for.
stoopid
05-24-2004, 10:49 PM
Are you asking how to rename the link?
if so, replace $vbphrase[calendar] with whatever you want. or make a new phrase in the admin panel and replace the code with $vbphrase[new_phrase_here].
sorry if that's not what you're asking for.
I think you're thinking what I'm thinking. :p
My head hurts now.
Anyway, I had tried this but think there's more than one place I need to change this value, because once it was changed $vbphrase[calendar] to $vbphrase[events_calendar] in the navbar template the entire "calendar" menu option disappeared. This makes sense as numerous items in numerous php files refer to this $vbphrase[calendar] setting.
When you say "or make a new phrase in the admin panel and replace the code with $vbphrase[new_phrase_here]", where in the admin panel is this? I'm been searching through the styles section to find the various bits of code and view the templates, but didn't find anyplace/easy method to alter the existing data. Part of my issue is that I had to eliminate all my help data for the admincp from the language.xml in order to allow the 3.0.0 upgrade to finish (my host wouldn't finish the upgrade/run the remainder of the xml because of some weird filesize limit :rolleyes: ).
neocorteqz
05-25-2004, 08:22 PM
I think you're thinking what I'm thinking. :p
My head hurts now.
Anyway, I had tried this but think there's more than one place I need to change this value, because once it was changed $vbphrase[calendar] to $vbphrase[events_calendar] in the navbar template the entire "calendar" menu option disappeared. This makes sense as numerous items in numerous php files refer to this $vbphrase[calendar] setting.
When you say "or make a new phrase in the admin panel and replace the code with $vbphrase[new_phrase_here]", where in the admin panel is this? I'm been searching through the styles section to find the various bits of code and view the templates, but didn't find anyplace/easy method to alter the existing data. Part of my issue is that I had to eliminate all my help data for the admincp from the language.xml in order to allow the 3.0.0 upgrade to finish (my host wouldn't finish the upgrade/run the remainder of the xml because of some weird filesize limit :rolleyes: ).
In your adminCP
go under Languages & Phrases , click on phrase manager, then click add new phrase.
Phrase Type: Global
varname: events_calendar
Text: is whatever you want, HTML usages is allowed. in your case you want in this box.
Events Calendar
then it should show up in your navbar once you edit the code. You of course do Not need to do all of this, you can of course edit the $vbphrase[calendar] to any text you'd like, but making a new global phrase allows you to use the phrase anywhere in the templates.
Hope this helps.
stoopid
05-25-2004, 10:34 PM
In your adminCP
go under Languages & Phrases , click on phrase manager, then click add new phrase.
Phrase Type: Global
varname: events_calendar
Text: is whatever you want, HTML usages is allowed. in your case you want in this box.
Events Calendar
then it should show up in your navbar once you edit the code. You of course do Not need to do all of this, you can of course edit the $vbphrase[calendar] to any text you'd like, but making a new global phrase allows you to use the phrase anywhere in the templates.
Hope this helps.
Awesome, yes that explains why it wasn't working (didn't know about this programming necessity!).
Thanks A LOT for your help :).
(and in under 30 seconds, it worked! :) http://www.adkforum.com/index.php?)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.