vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Change where the home button goes (https://vborg.vbsupport.ru/showthread.php?t=261248)

TFGJessica 03-31-2011 06:46 PM

Change where the home button goes
 
I'm a newbie to vBulletin, so bear with me.

How do I change where the "Home" button on the main navigation bar goes? I would like to link it to the homepage of my website, and NOT have it link to anything in vBulletin.

Thanks in advance,

Jessica

HMBeaty 03-31-2011 06:53 PM

Change your navbar template. The code you'll be looking for should look something like:
HTML Code:

<td class="vbmenu_control"><a href="index.php$session[sessionurl_q]">Home</a></td>
And you would just need to change
HTML Code:

index.php$session[sessionurl_q]
to whatever you want to link to

TFGJessica 04-04-2011 07:29 PM

Okay, I tried this, and it didn't work so well.
I started by going into the Style Manager, and I selected "Edit Templates". Then I drilled down to the navbar template.
I found this code, which was the only piece of code that had index.php anywhere in it:
Code:

<ul class="floatcontainer">
                <li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>

                {vb:raw navbits.breadcrumb}
                {vb:raw navbits.lastelement}
        </ul>

and I changed the href to the website that I want the home button to link to, but nothing happened.

What am I missing?

HMBeaty 04-05-2011 01:46 AM

You need to change:
HTML Code:

index.php{vb:raw session.sessionurl_q}
to
HTML Code:

www.yournewlink.com


All times are GMT. The time now is 04:19 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.01363 seconds
  • Memory Usage 1,714KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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