![]() |
forum & home navbar links
hey i saw this thread a while ago where someone posted another navbar code to allow users to go from the FORUM to the HOMEPAGE (index.php file). can anyone help me out? thanks
|
i dunno what you mean here...i hope this is the one...hope it help you... :)
if i or the members are on Portal Page which is my Homepage...they can see/click only the Forums to my navbar (left) which a direct link to my forum...the other way also...if they are on my Forum Page...they can see/click only to my navbar the word Home which is the direct link to my portal...meaning auto-change...:p Go: ACP > Styles & Templates > Search in Templates > Search in Style > Search for Text: Navbar > Click Find > Locate/Double Click Navbar... Find: Code:
<div align="center"> No Image Navbar: Code:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://yoursite.com/index.php"> Forums <else /> <a href="http://yoursite.com/"> Home </if></a></td> Code:
<td align="left" valign="top" width="90" height="55"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://yoursite.com/index.php"><img src="$stylevar[imgdir_misc]/nav_forums.gif" border="0" alt="" /><else /><a href="http://yoursite.com/"><img src="$stylevar[imgdir_misc]/nav_home.gif" border="0" alt="" /></if></a></td> best regards.... ;) |
thanks man, i added the code for the noimage however it does not show up in my navbar at all :S
this is my navbar code: Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> |
Quote:
|
i made a photoshop of what i want. i want that when people click on home it goes to the index file and then the word changes to Forums when they are on the index file which links them to the forums.
http://img404.imageshack.us/img404/4...meforumfu4.jpg |
If you're using vb 3.6.8, you can add a plugin and add the link using a template hook. Otherwise, you can edit the navbar template and add the link. Just search for usercp and add the 'home' link right above it.
|
could you post the code that i would need to put there? i tried using the code princeedward posted but it doesn't work :S
|
Find this:
Code:
<if condition="$show['member']"> Code:
<td class="vbmenu_control"><a href="YOURURL">Home</a></td> |
weird... it's not working.. hmm
|
Did you save the template after editing it?
|
yeah
--------------- Added [DATE]1194799828[/DATE] at [TIME]1194799828[/TIME] --------------- nevermind, i figured out the problem. i had a broken div tag in my code. thanks for your help guys |
nvm got it to work thanks guys
|
Quote:
I got an error message when I tried that Quote:
If anyone would know how to correct that it would be much appreciated. I am trying to have a Forums button on my home page and a Home button on my forum page so people can navigate back and forth. Its probably simple but I am very new at this. TIA --------------- Added [DATE]1236819719[/DATE] at [TIME]1236819719[/TIME] --------------- Quote:
That works fine but it gives me a Home button on my home page and on my forum page. Is there a way to change that so you get a home button on my forum page page and forum button on my home page ? TIA |
This should work for you
HTML Code:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]?$session[sessionurl]"> Forum <else /> <a |
Quote:
That worked fine. Just had to remove ? from it. Thank you very much ! |
thanks i was looking for that..
|
All times are GMT. The time now is 04:54 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|