Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-20-2010, 03:21 AM
unknown22 unknown22 is offline
 
Join Date: Aug 2010
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 08-20-2010, 02:47 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is set for the phrase name?
Reply With Quote
  #3  
Old 08-20-2010, 03:49 PM
unknown22 unknown22 is offline
 
Join Date: Aug 2010
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

{vb:raw template_hook.navbar_after_stats}

<li><a href="website.com{vb:raw session.sessionurl_q}">{vb:rawphrase stats}</a></li>
Reply With Quote
  #4  
Old 08-20-2010, 03:59 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is no template hook called navbar_after_stats in default vb.
Reply With Quote
  #5  
Old 08-20-2010, 04:25 PM
unknown22 unknown22 is offline
 
Join Date: Aug 2010
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No i want to add a custom link to a site where stats are located.
Reply With Quote
  #6  
Old 08-20-2010, 04:33 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by unknown22 View Post
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.
Reply With Quote
  #7  
Old 08-20-2010, 04:50 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by unknown22 View Post
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
Reply With Quote
  #8  
Old 08-20-2010, 05:04 PM
unknown22 unknown22 is offline
 
Join Date: Aug 2010
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by borbole View Post
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.
Reply With Quote
  #9  
Old 08-20-2010, 05:06 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by unknown22 View Post
{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?
Reply With Quote
  #10  
Old 08-20-2010, 05:18 PM
unknown22 unknown22 is offline
 
Join Date: Aug 2010
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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}
Reply With Quote
Reply


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 02: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.05748 seconds
  • Memory Usage 2,277KB
  • Queries Executed 12 (?)
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)bbcode_code
  • (4)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete