PDA

View Full Version : navbar and header edit


unknown22
20 Aug 2010, 04:21
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
20 Aug 2010, 15:47
What is set for the phrase name?

unknown22
20 Aug 2010, 16:49
{vb:raw template_hook.navbar_after_stats}

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

Boofo
20 Aug 2010, 16:59
This is no template hook called navbar_after_stats in default vb.

unknown22
20 Aug 2010, 17:25
No i want to add a custom link to a site where stats are located.

borbole
20 Aug 2010, 17:33
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
20 Aug 2010, 17:50
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
20 Aug 2010, 18:04
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
20 Aug 2010, 18:06
{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
20 Aug 2010, 18:18
<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
20 Aug 2010, 20:42
<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
20 Aug 2010, 21:12
Is it not this {vb:rawphrase stats}??

borbole
20 Aug 2010, 21:22
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
20 Aug 2010, 21:36
Where could i do this?

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

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

borbole
21 Aug 2010, 15:23
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
22 Aug 2010, 19:03
Picture attached below.

borbole
22 Aug 2010, 20:00
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
22 Aug 2010, 21:25
Yea. But nothing found that worked with vb 4.0.6

What are those called besides calling them forum buttons

borbole
22 Aug 2010, 21:51
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

http://www.vbulletin.org/forum/search.php?searchid=16289247

unknown22
23 Aug 2010, 00:02
Sorry - no matches. Please try some different terms.


When i click on it.

borbole
23 Aug 2010, 14:24
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 :)