PDA

View Full Version : navbar and header edit


unknown22
08-20-2010, 02:21 AM
I'm trying to edit my navbar I took out faq and replaced it

{vb:raw template_hook.navbar_after_faq}
<li><a href="website.com{vb:raw session.sessionurl_q}">{vb:rawphrase name}</a></li>
<li><a href="calendar.php{vb:raw session.sessionurl_q}">{vb:rawphrase calendar}</a></li>

{vb:raw template_hook.navbar_after_calendar}


with this line here: <li><a href="website.com{vb:raw session.sessionurl_q}">{vb:rawphrase name}</a></li>

i removed the faq line i add this but i go to my page and it shows nothing in between calender and another name.

where can I edit the header like forum, what's new buttons.

Boofo
08-20-2010, 01:47 PM
What is set for the phrase name?

unknown22
08-20-2010, 02:49 PM
{vb:raw template_hook.navbar_after_stats}

<li><a href="website.com{vb:raw session.sessionurl_q}">{vb:rawphrase stats}</a></li>

Boofo
08-20-2010, 02:59 PM
This is no template hook called navbar_after_stats in default vb.

unknown22
08-20-2010, 03:25 PM
No i want to add a custom link to a site where stats are located.

borbole
08-20-2010, 03:33 PM
No i want to add a custom link to a site where stats are located.

Try this. Find this code:

<li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}" accesskey="5">{vb:rawphrase faq}</a></li>

And replace it with

<li><a href="full_url_to_your_statspage">{vb:rawphrase customphrasename}</a></li>

And replace full_url_to_your_statspage with the full url to your stats page. Then create a custom phrase and replace customphrasename at {vb:rawphrase customphrasename} with the name of the custom phrase. Or hard code it directly to the template.

Boofo
08-20-2010, 03:50 PM
No i want to add a custom link to a site where stats are located.

Ok, let me get this straight. You want to add your own link after this hook in the template right?

navbar_after_faq

unknown22
08-20-2010, 04:04 PM
Try this. Find this code:

<li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}" accesskey="5">{vb:rawphrase faq}</a></li>

And replace it with

<li><a href="full_url_to_your_statspage">{vb:rawphrase customphrasename}</a></li>

And replace full_url_to_your_statspage with the full url to your stats page. Then create a custom phrase and replace customphrasename at {vb:rawphrase customphrasename} with the name of the custom phrase. Or hard code it directly to the template.

{vb:raw template_hook.navbar_after_faq} i took that out, and i put the line in but it shows up as nothing on the navbar you can still click on it and takes you to the site but the name is not there just a blank thing.

borbole
08-20-2010, 04:06 PM
{vb:raw template_hook.navbar_after_faq} i took that out, and i put the line in but it shows up as nothing on the navbar you can still click on it and takes you to the site but the name is not there just a blank thing.

You shouldn''t remove the hook codes. Also, what did you use for the link description?

unknown22
08-20-2010, 04:18 PM
<li><a href="http://stats.mywebsite.com/">{vb:rawphrase stats}</a></li>

{vb:raw template_hook.navbar_after_pm}
{vb:raw template_hook.navbar_after_faq}
<li><a href="http://stats.mywebsite.com/">{vb:rawphrase stats}</a></li>
<li><a href="calendar.php{vb:raw session.sessionurl_q}">{vb:rawphrase calendar}</a></li>
{vb:raw template_hook.navbar_after_calendar}

borbole
08-20-2010, 06:42 PM
<li><a href="http://stats.mywebsite.com/">{vb:rawphrase stats}</a></li>

{vb:raw template_hook.navbar_after_pm}
{vb:raw template_hook.navbar_after_faq}
<li><a href="http://stats.mywebsite.com/">{vb:rawphrase stats}</a></li>
<li><a href="calendar.php{vb:raw session.sessionurl_q}">{vb:rawphrase calendar}</a></li>
{vb:raw template_hook.navbar_after_calendar}

Did you create the stats custom phrase?

unknown22
08-20-2010, 07:12 PM
Is it not this {vb:rawphrase stats}??

borbole
08-20-2010, 07:22 PM
Is it not this {vb:rawphrase stats}??

Not that I know of. You should either create a stats custom phrase or hard code the link description. If there would have been already such a phrase you wouldn''t have the problem.

unknown22
08-20-2010, 07:36 PM
Where could i do this?

--------------- Added 1282349276 at 1282349276 ---------------

Where could i edit/create the forum buttons as well.

borbole
08-21-2010, 01:23 PM
Where could i do this?

--------------- Added 1282349276 at 1282349276 ---------------

Where could i edit/create the forum buttons as well.

You can add custom phrases at Languages & Phrases in your Acp.

About forum buttons, can you post a screenshot of what exactly do you mean by it?

unknown22
08-22-2010, 05:03 PM
Picture attached below.

borbole
08-22-2010, 06:00 PM
Picture attached below.

There are quite a few mods and tutorials here on the subject. Did you check out the mod and the article sections?

unknown22
08-22-2010, 07:25 PM
Yea. But nothing found that worked with vb 4.0.6

What are those called besides calling them forum buttons

borbole
08-22-2010, 07:51 PM
Yea. But nothing found that worked with vb 4.0.6

What are those called besides calling them forum buttons

I have seen them go by the name Tabs. Here you got a list of the tab mods for vb 4.0X

https://vborg.vbsupport.ru/search.php?searchid=16289247

unknown22
08-22-2010, 10:02 PM
Sorry - no matches. Please try some different terms.

When i click on it.

borbole
08-23-2010, 12:24 PM
Sorry - no matches. Please try some different terms.


When i click on it.

Search for the word Tabs at the mod site. And then you will find them :)