vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Change HOME link in navbar (https://vborg.vbsupport.ru/showthread.php?t=235382)

discontained 02-09-2010 07:06 AM

Change HOME link in navbar
 
I have searched for a good 2 hours on how to change this. I have found many posts that have no information except telling me to look elsewhere.

All I want to do, is change the HOME (where it says HOME | FORUMS | BLOG | WHATS NEW ) tab link, its currently pointed to content.php but I want it to point to the portal instead.

I have no luck. Please help me.

borbole 02-09-2010 03:45 PM

Quote:

Originally Posted by discontained (Post 1978107)
I have searched for a good 2 hours on how to change this. I have found many posts that have no information except telling me to look elsewhere.

All I want to do, is change the HOME (where it says HOME | FORUMS | BLOG | WHATS NEW ) tab link, its currently pointed to content.php but I want it to point to the portal instead.

I have no luck. Please help me.

Hello. The template you need is navbar and the specific code is:

HTML Code:

<li class="selected"><a class="navtab" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}">{vb:rawphrase forum}</a>
And enter the url to your portal inside the href attribute. Hope it helps.

discontained 02-09-2010 06:03 PM

1 Attachment(s)
Quote:

Originally Posted by borbole (Post 1978384)
Hello. The template you need is navbar and the specific code is:

HTML Code:

<li class="selected"><a class="navtab" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}">{vb:rawphrase forum}</a>
And enter the url to your portal inside the href attribute. Hope it helps.

Hi if i change that in the NAVBAR template it changes my FORUM link to whatever i put in there.

I have uploaded what im talking about.

Somehow the HOME tab is pointing towards "content.php"

borbole 02-09-2010 06:31 PM

Sorry about that, I thought that you wanted to change the Forum link. Anyway, follow the example with the home link and you should be all set.

P.s. Can you open the index.php fiel in the root folder of your forum and check if you have this:

PHP Code:

require('content.php'); 

Cos that is why it is pointing to the content.php.

discontained 02-09-2010 06:45 PM

Open the index.php f ile in my root folder, it doesnt have anything with content.php in it.

Also, I can not find where the HOME link is. It looks like it starts with forum link, in the code sequence.

borbole 02-09-2010 07:19 PM

From what is that home link added? A portal or from the CMS?

DivineMessenger 02-09-2010 08:02 PM

what if you just want it to say "forums" instead of "forum"?

borbole 02-09-2010 08:08 PM

Quote:

Originally Posted by DivineMessenger (Post 1978598)
what if you just want it to say "forums" instead of "forum"?

Do you mean to change the name of the Forum tab at the nav bar from Forum to Forums? if so, you can do it at the Languages and Phrases in the Acp. The phrase you need is forum.

discontained 02-09-2010 09:56 PM

Quote:

Originally Posted by borbole (Post 1978550)
From what is that home link added? A portal or from the CMS?

Its linked right now to CMS however we dont use CMS and use the vB CMPS portal. I want to link the HOME to the portal page

here is my site the home button is annoying me!
www.aepautomotive.com

DivineMessenger 02-09-2010 11:16 PM

Then yeah just change the href to the url of the page you'd like rather than all that code that makes no sense to me lol


All times are GMT. The time now is 05:10 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.01090 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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