PDA

View Full Version : Changing navbar template


Lisnig
01-13-2009, 08:57 AM
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.

Dismounted
01-13-2009, 09:59 AM
Admin CP > Language & Phrases > Search in Phrases > private_messages_nav / Search in phrase variables only > Search

Lisnig
01-13-2009, 10:46 AM
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.

Infopro
01-13-2009, 11:51 AM
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

Lisnig
01-13-2009, 12:00 PM
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?

Dismounted
01-14-2009, 02:54 AM
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.

Lisnig
01-14-2009, 07:46 AM
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.

Dismounted
01-14-2009, 09:38 AM
You can change the entire phrase if you wanted to.

Lisnig
01-20-2009, 07:23 AM
Tnx VERY much! I find it! AdminCP rulezz