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}

borbole 08-20-2010 06:42 PM

Quote:

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

Quote:

Originally Posted by unknown22 (Post 2087037)
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 [DATE]1282349276[/DATE] at [TIME]1282349276[/TIME] ---------------

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

borbole 08-21-2010 01:23 PM

Quote:

Originally Posted by unknown22 (Post 2087050)
Where could i do this?

--------------- Added [DATE]1282349276[/DATE] at [TIME]1282349276[/TIME] ---------------

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

1 Attachment(s)
Picture attached below.

borbole 08-22-2010 06:00 PM

Quote:

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

Quote:

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

Quote:

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


All times are GMT. The time now is 05:25 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.02619 seconds
  • Memory Usage 1,766KB
  • 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
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete