Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 05-23-2004, 04:24 PM
stoopid stoopid is offline
 
Join Date: Nov 2003
Location: Albany, NY
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Editting navbar options

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.
Reply With Quote
  #2  
Old 05-23-2004, 05:03 PM
mholtum's Avatar
mholtum mholtum is offline
 
Join Date: May 2004
Location: Arizona
Posts: 697
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I changed mine in Navigation / Breadcrumb Templates / navbar

Is that what you are talking about?

See it here http://www.ravensrealm.net
Reply With Quote
  #3  
Old 05-23-2004, 09:47 PM
stoopid stoopid is offline
 
Join Date: Nov 2003
Location: Albany, NY
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 05-23-2004, 10:24 PM
stoopid stoopid is offline
 
Join Date: Nov 2003
Location: Albany, NY
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, so that's the template I've been looking through...

Only calendar entries, for example, are:

Code:
		<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).
Reply With Quote
  #5  
Old 05-24-2004, 03:11 PM
stoopid stoopid is offline
 
Join Date: Nov 2003
Location: Albany, NY
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't think this can be that hard... am I asking the wrong question? Am I 2 newb 4 U??
Reply With Quote
  #6  
Old 05-24-2004, 04:10 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 05-24-2004, 10:49 PM
stoopid stoopid is offline
 
Join Date: Nov 2003
Location: Albany, NY
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by neocorteqz
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.

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 ).
Reply With Quote
  #8  
Old 05-25-2004, 08:22 PM
neocorteqz's Avatar
neocorteqz neocorteqz is offline
 
Join Date: May 2002
Location: Barefoot Bay Fl
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stoopid
I think you're thinking what I'm thinking.

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 ).

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.
Reply With Quote
  #9  
Old 05-25-2004, 10:34 PM
stoopid stoopid is offline
 
Join Date: Nov 2003
Location: Albany, NY
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by neocorteqz
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?)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04756 seconds
  • Memory Usage 2,240KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete