vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   navbar and header edit (https://vborg.vbsupport.ru/showthread.php?t=248984)

unknown22 08-20-2010 02:21 AM

navbar and header edit
 
I'm trying to edit my navbar I took out faq and replaced it

Code:

{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

Quote:

Originally Posted by unknown22 (Post 2086926)
No i want to add a custom link to a site where stats are located.

Try this. Find this code:

HTML Code:

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

HTML Code:

<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

Quote:

Originally Posted by unknown22 (Post 2086926)
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

Quote:

Originally Posted by borbole (Post 2086930)
Try this. Find this code:

HTML Code:

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

HTML Code:

<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

Quote:

Originally Posted by unknown22 (Post 2086945)
{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}


All times are GMT. The time now is 06:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01572 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete