Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 01-13-2009, 08:57 AM
Lisnig Lisnig is offline
 
Join Date: Jan 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Changing navbar template

Hello, i need to change string "Private messages" in the navigation bar in the top of the page. (it is near "Welcome, username").

I have a template in my database with title "navbar" (templateid 9767).

Needed part of menu prints with this template by next function:

construct_phrase("$vbphrase[private_messages_nav]", "$vbphrase[unread_x_nav_compiled]", "$vbphrase[total_x_nav_compiled]", "" . $GLOBALS['vbulletin']->session->vars['sessionurl_q'] . "")

I have a problem - i cannot find where i can change content of $vbphrase[private_messages_nav], can anyone help me please?

Tnx in advance

My vBulletin Version is 3.7.2.
Reply With Quote
  #2  
Old 01-13-2009, 09:59 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Admin CP > Language & Phrases > Search in Phrases > private_messages_nav / Search in phrase variables only > Search
Reply With Quote
  #3  
Old 01-13-2009, 10:46 AM
Lisnig Lisnig is offline
 
Join Date: Jan 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Search in Phrases -> private_messages_nav + Phrase Text and Phrase Variable Name -> Find

Returns "No Phrases Matched Your Query"

Where it could be in .php codes? I need to change not just phrase, but and link from it.
Reply With Quote
  #4  
Old 01-13-2009, 11:51 AM
Infopro Infopro is offline
 
Join Date: May 2003
Location: Pennsylvania
Posts: 267
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well if you follow his instruction, you'd have it by now. But since you missed the part about:
Search in phrase variables only

Try this way:

Admin CP > Language & Phrases > Search in Phrases > Private Messages > Search
Reply With Quote
  #5  
Old 01-13-2009, 12:00 PM
Lisnig Lisnig is offline
 
Join Date: Jan 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Find code it in "phrases" table.

It is: <a href="/private.php{3}">Private Messages</a>: {1}, {2}.

But after i make changes - nothing happens. May be some cache?
Reply With Quote
  #6  
Old 01-14-2009, 02:54 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You do not change the one in the database! You must add a translation through the Admin CP! There is a cache so changing the one in the database will not take effect immediately.
Reply With Quote
  #7  
Old 01-14-2009, 07:46 AM
Lisnig Lisnig is offline
 
Join Date: Jan 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dismounted, hi! Through the Admin CP i can change text content of the link, for example

<a href="/private.php{3}">Private Messages</a>: {1}, {2}.
to a
<a href="/private.php{3}">Your mail</a>: {1}, {2}.

but can i change

<a href="/private.php{3}">Private Messages</a>: {1}, {2}.
to a
<a href="/other.php{3}">Private Messages</a>: {1}, {2}.

through the Admin CP?

Thank you very much for answers.
Reply With Quote
  #8  
Old 01-14-2009, 09:38 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can change the entire phrase if you wanted to.
Reply With Quote
  #9  
Old 01-20-2009, 07:23 AM
Lisnig Lisnig is offline
 
Join Date: Jan 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tnx VERY much! I find it! AdminCP rulezz
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 08:30 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.06893 seconds
  • Memory Usage 2,229KB
  • 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)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