PDA


View Full Version : Dynamic Forum / Home Link in Navbar


Pages : 1 [2] 3 4

CoLD FeaR
11-22-2005, 10:45 AM
Its not working for me.... when i click at Forum then its working but when i am in forum and trying to click at Home then its writed like this in URL: www.americancreq.lxhost.com/?

CoLD FeaR
11-22-2005, 10:54 AM
Can someone fix my code then so its index.php all url... <script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>

<if condition="$bbuserinfo['userid']">

<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
</div>
</td>

<else />

<td class="alt2" nowrap="nowrap" style="padding:0px">

<!-- login form -->
<form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont">$vbphrase[username]</td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont">$vbphrase[password]</td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->

</td>

</if>

</tr>
</table>
<!-- / breadcrumb, login, pm info -->

<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">

<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums <else /> <a href="$vboptions[homeurl]$session[sessionurl]"> Portal </if></a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
</if>
<if condition="$bbuserinfo['userid']">
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$bbuserinfo['userid']">
<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$bbuserinfo['userid']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->

<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="text" class="bginput" name="query" size="20" />&nbsp;$gobutton<br />
</form>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>

</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->
</if>:)

CoLD FeaR
11-22-2005, 11:01 AM
i change the file "Cmps_index.php" file to "index.php" and now its working perfect :)

CoLD FeaR
11-22-2005, 11:14 AM
cant come in to the home! its writed like this


CoLD FeaR, you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

devinnull
11-23-2005, 04:09 PM
This will be the noob question of the day I'm sure but what file are we talking about?

Thanks in advance!

Ghost Shadow
11-23-2005, 06:35 PM
It is not working for me.
At the root I have a regular web page, off of it I have vBadvanced (/mangoforum), index.php points to vBadvanced CMPS v2.0.0, and forum.php points to vBulletin Version 3.5 forum.

From the Portal page when I click on Forums link, nothing happens, I stay in the Portal page.

From the forum page, I click on the Home link, it brings me to my web page at the root level.

Thanks.

-GS

devinnull
11-23-2005, 06:39 PM
This will be the noob question of the day I'm sure but what file are we talking about?

Thanks in advance!

OK-I was right...

I edited the template from the adminCP and all is well. Thanks!

HellRazor
11-26-2005, 03:42 AM
I'm only posting this in the hopes it might help someone else.
To be sure I don't know jack about php so forget probing my lack of skills there ....it's huge.:)

Before I upgraded to vB 3.5 the dynamic nav bar hack worked great for CMPS & the Gallery.

After the upgrade to 3.5 I tried to follow the instructions posted by mholtum to a T at least a dozen times.
But each time I did it from a clean install all my links would work until I tried to go to the Forums from inside of the Gallery.
I would always get http://localhost/forum/http://localhost/gallery/index.php?
This was the only messed up URL and I checked my CMPS default page & all the threads related to this here.

Anyways after hours of playing with this I've got it working now.

I took the original code and removed a few characters.

This code (below) is working both on my develpment (localhost) server & my live site.<if condition="THIS_SCRIPT != 'adv_index'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]?$session[sessionurl]">Home</a></td>
</if>
<if condition="defined('VBA_SCRIPT')">
<td class="vbmenu_control"><a href="$vboptions[bburl]?$session[sessionurl]">Forums</a></td>
</if>
<if condition="VBA_SCRIPT != 'gallery'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]/gallery/?$session[sessionurl]">Gallery</a></td>
</if>

The code I deleted is below and was removed from the second if statement in mholtum's original code for dynamic nav bar links to : CMPS-Forum-Gallery.
/$vboptions[forumhome].php
Unmodifed code I could not get to work (below).
<if condition="THIS_SCRIPT != 'adv_index'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]?$session[sessionurl]">Home</a></td>
</if>
<if condition="defined('VBA_SCRIPT')">
<td class="vbmenu_control"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]">Forums</a></td>
</if>
<if condition="VBA_SCRIPT != 'gallery'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]/gallery/?$session[sessionurl]">Gallery</a></td>
</if>

I now get a working http://localhost/forum/? URL for my Forums nav bar link dynamically any time/place I choose to use it!!

I'm sure my fix is probably the wrong thing to do but then again this thread seemed dead and maybe someone that knows of a prefered solution will see this and feel compeled to give us the correct code.

BTW: if this did help anyone I'm thrilled. :D

Worked for me, thank you for this!

eViL_sTiGmA
11-26-2005, 03:04 PM
Does anyone knows hoy to make a dynamic link for.....

ibProArcade - professional Arcade System

and....

ecDownloads 3.2

eclectica
12-06-2005, 01:54 PM
I've upgraded my board to vBulletin 3.5.2 and this fix no longer puts it in the navbar on the top left, but right next to the left of the welcome block in the navbar.

eclectica
12-06-2005, 02:09 PM
Okay this is what happens in vBulletin 3.5.2. When you try to find in the template:
<if condition="$show['member']">
The term comes up in several places in the template. Every time you hit the "find" button it finds more instances of it. You want to insert the modification above the second instance of it in the template.

You have to hit the "find" button twice or it will be put in the wrong place. When you find it, insert above it:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php$session[sessionurl]"> Forum <else /> <a href="$vboptions[homeurl]$session[sessionurl]"> Home </if></a></td>
and you should be good.

devinnull
12-06-2005, 05:59 PM
BTW: if this did help anyone I'm thrilled. :D

Nice work and thanks!

dodgez
12-12-2005, 05:54 PM
Works good for me

alex4473
12-19-2005, 03:56 PM
Thanks! Great mod.

Masiello
12-20-2005, 09:47 AM
Taken from this (http://www.vbadvanced.com/forum/showthread.php?t=41&highlight=dynamic+forum+home) post. Numerous people have been saying "the code isn't there in 3.5, what do I do?" SO I thought I would help them out.

In the Navbar template find:

<if condition="$show['member']">

it is aprox. line number 91.
Above that add:

<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"> Home </if></a></td>

There you have it. Easy money.

Thnaks very much, it works great on my vB 3.5.2 ;)

djnth
12-21-2005, 06:20 AM
I actually had to add your code above the second instance of the code you said to find otherwise it showed up above my navbar. Works great though, thanks!!

eViL_sTiGmA
12-23-2005, 02:25 PM
Well, i want to make a full dynamic nav... but i just can't "hide" downloads and arcade links, does anyone know how can i do this??

interfx
12-24-2005, 03:24 PM
Why didnt you say so?


<if condition="THIS_SCRIPT != 'adv_index'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]?$session[sessionurl]">Home</a></td>
</if>
<if condition="defined('VBA_SCRIPT')">
<td class="vbmenu_control"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]">Forums</a></td>
</if>
<if condition="VBA_SCRIPT != 'gallery'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]/gallery/?$session[sessionurl]">Gallery</a></td>
</if>


Home / Forums / Gallery ;)

This worked GREAT!!! One question though, on the "gallery" page, how do I make it show

on Index (Works Great!)
Home / Forums / Gallery

on Forums (Works Great!)
Home / Gallery

on Gallery (How do I make Forums show up here???)
Home / Forums

Telegon80
12-27-2005, 03:27 PM
thank you sir!

Telegon80
12-29-2005, 02:36 AM
well i had it good but i just upgraded to 3.5.2 and when i look for this:

<if condition="$show['member']">


its on the navbar template like 5 times....

Ncturnal
12-29-2005, 02:41 AM
well i had it good but i just upgraded to 3.5.2 and when i look for this:

<if condition="$show['member']">


its on the navbar template like 5 times....

I think it was the 2nd one. I later added a second navbar and put the dynamic link on it, so I don't recall exactly what I did. Just save the template after you make the chance so you can revert it if it doesn't work.

Telegon80
12-29-2005, 03:18 AM
i tried after the second one and it worked but it also puts a link on the left of where it says: welcome screen name, pms' etc

Telegon80
12-29-2005, 03:32 AM
bah i musta been doing something wrong this whole time, i just tried again after the 2nd one and it works again. :)

Ncturnal
12-29-2005, 03:53 AM
Congrats. The code all looks the same after a while. :)

Jimbo
12-31-2005, 07:59 PM
I'm sure my fix is probably the wrong thing to do but then again this thread seemed dead and maybe someone that knows of a prefered solution will see this and feel compeled to give us the correct code.

BTW: if this did help anyone I'm thrilled. :D

Well, I had a problem with mine, only from gallery, giving a url of http://mysite.com/forum/http://mysite.com/forum/index.php with the original code.

I tried your fix, and it works fine all over my site - so cheers to you ;) so it looks like there may be (for some unexplained reason) two possible fixes, try one - if it doesn't work, try the other.

Thanks again matey :D

Masiello
12-31-2005, 10:21 PM
How I set this Dinamik Link to adapt with this template?
I need to using a button for Forum and a button for Portal, they are in /webroot/designs/bc/buttons.gif

<!-- logo -->
<a name="top"></a>
<div align="center">
<div style="width:$stylevar[outertablewidth];">
<div class="bg3">
<div class="bg4">
<div class="headbg"><div class="headpic"></div></div>
<div class="bbg">
<div class="fl"><a href="/" onmouseover="turnOn('home');" onmouseout="turnOff('home');"><img name="home" class="imgTrans" src="/designs/bc/bc_08.gif" alt="Home" /></a></div>
<div class="fl"><a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1" onmouseover="turnOn('forum');" onmouseout="turnOff('forum');"><img name="forum" class="imgTrans" src="/designs/bc/bc_09.gif" alt="$vboptions[bbtitle]" /></a></div>
<if condition="$show['member']">
<div class="fl"><a href="usercp.php?$session[sessionurl]" onmouseover="turnOn('usercp');" onmouseout="turnOff('usercp');"><img name="usercp" class="imgTrans" src="/designs/bc/bc_15.gif" alt="$vbphrase[user_cp]" /></a></div></if>
<if condition="$show['registerbutton']">
<div class="fl"><a href="register.php?$session[sessionurl]" onmouseover="turnOn('register');" onmouseout="turnOff('register');"><img name="register" class="imgTrans" src="/designs/bc/r.gif" alt="$vbphrase[register]" /></a></div>
</if>
<div class="fl"><a href="memberlist.php?$session[sessionurl]" onmouseover="turnOn('member');" onmouseout="turnOff('member');"><img name="member" class="imgTrans" src="/designs/bc/bc_10.gif" alt="$vbphrase[members_list]" /></a></div>

<div class="fl"><a href="calendar.php?$session[sessionurl]" onmouseover="turnOn('calendar');" onmouseout="turnOff('calendar');"><img name="calendar" class="imgTrans" src="/designs/bc/bc_11.gif" alt="$vbphrase[calendar]" /></a></div>

<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<div class="fl"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2" onmouseover="turnOn('new_posts');" onmouseout="turnOff('new_posts');"><img name="new_posts" class="imgTrans" src="/designs/bc/bc_12.gif" alt="$vbphrase[new_posts_nav]" /></a></div>
<else />
<div class="fl"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2" onmouseover="turnOn('new_posts');" onmouseout="turnOff('new_posts');"><img name="new_posts" class="imgTrans" src="/designs/bc/bc_12.gif" alt="$vbphrase[todays_posts]" /></a></div>
</if>
</if>
<if condition="$bbuserinfo['userid']">
<div class="fl"><div id="usercptools"><a href="#usercptools" onmouseover="turnOn('quick');" onmouseout="turnOff('quick');"><img
name="quick" class="imgTrans" src="/designs/bc/bc_13.gif" alt="$vbphrase[quick_links]" /></a><script type="text/javascript"> vbmenu_register("usercptools", true); </script></div></div>
</if>
<if condition="$show['searchbuttons']">
<div class="fl"><div id="navbar_search"><a href="search.php?$session[sessionurl]" accesskey="4" onmouseover="turnOn('search');" onmouseout="turnOff('search');"><img name="search" class="imgTrans" src="/designs/bc/bc_14.gif" alt="$vbphrase[search]" /></a><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></div></div>
</if>
<div class="fl"><a href="faq.php?$session[sessionurl]" accesskey="5" onmouseover="turnOn('faq');" onmouseout="turnOff('faq');"><img name="faq" class="imgTrans" src="/designs/bc/bc_16.gif" alt="$vbphrase[faq]" /></a></div>

<div class="fl"><a href="chat/flashchat.php?$session[sessionurl]" accesskey="6" onmouseover="turnOn('flashchat');" onmouseout="turnOff('flashchat');"><img name="chat" class="imgTrans" src="/designs/bc/chat.gif" alt="$vbphrase[chat]" /></a></div>
</div>
<div class="ubl"></div>
</div>
</div>
</div>
</div>
<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="text" class="bginput" name="query" size="20" />$gobutton<br />
</form>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td></tr>
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->
</if>
<!-- /logo -->
<!-- content table -->
<div align="center">
<div style="width:$stylevar[outertablewidth];">
<div class="bg1">
<div class="bg2">

My Template forum is: www.lottosqueeze.org/forum

Very Thanks fon any Help, and Happy New Year 2006 for all.

Aegis01
01-14-2006, 09:14 PM
This is really great and all, but I have my vbadvanced index.php file outside of the forums directory, and so the forums button from the vbadvanced main page works, but the home button from the forums page just reloads the forums. Help please =P

mholtum
01-15-2006, 12:11 AM
my vba index is in my root and my forums are in /forums/ works for me.

xan
01-15-2006, 04:08 AM
Now heres my issue. When i Search for the text to put the code mholtum has supplied It only comes up in one place. SO i place teh code hes provided above it and it complete screws my forum displays up. Are there any other modifications or clearer instructions on doing this anywhere else?

xan
01-15-2006, 04:08 AM
Now heres my issue. When i Search for the text to put the code mholtum has supplied It only comes up in one place. SO i place teh code hes provided above it and it complete screws my forum displays up. Are there any other modifications or clearer instructions on doing this anywhere else?

ryankarp
01-15-2006, 01:57 PM
First off, thanks for the great support on this wonderful feature.

I do have a problem though, and I can't seem to figure it out.

When I load my site http://www.strife-guild.net I get this error line at the top of the page. (The website works fine, otherwise.)

Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /modules/navigation.php on line 115

I put in the code via copy and paste into the navbar file and that function works normal too.

Here is an exact copy of the inserted code:
<tr align="center">
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]"> Forums <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"> Home </if></a></td>
<if condition="$show['member']">

I added the line before and after incase that is needed info.

Any help on this would be greatly appreciated!

Thanks for your time,

Ryan.

ryankarp
01-15-2006, 08:49 PM
Never mind. Maybe I should use the search function and post the correct code!!!:p

xan
01-16-2006, 01:03 PM
Can anybody tell me how exactly to fix this and get it to work with the Pro Vizion and Fusion skin because the code posted here doesnt work it just more or less screws up the forum index.

mholtum
01-27-2006, 05:06 PM
Can anybody tell me how exactly to fix this and get it to work with the Pro Vizion and Fusion skin because the code posted here doesnt work it just more or less screws up the forum index.


Fusion if I am not mistaken uses images in the header template instead of the default navbar. When I was using Fusion, I just hacked the navbar template to call the default links and it worked. That was awhile ago and I no longer have the skin (I think). I will see if I have it and let you know.

The_Rayman
01-28-2006, 07:12 AM
Cool! Works great! :cool:

Telegon80
01-29-2006, 02:02 AM
damnit idk what im doing wrong but i put it on another of my forums and it just will not work. i double checked everything and the problem is that.

On the cmps page it shows forums and the link actually takes u to forums

But on the forums is says home but it sends me to forum/index.php so i end up in forums still.

Delw
02-01-2006, 01:46 PM
I upgraded last night and had to make some modifications


<if condition="THIS_SCRIPT != 'adv_index'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]?$session[sessionurl]">Home</a></td>
</if>
<if condition="defined('VBA_SCRIPT')">
<td class="vbmenu_control"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]">Forums</a></td>
</if>
<if condition="VBA_SCRIPT != 'gallery'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]/gallery/?$session[sessionurl]">Gallery</a></td>
</if>

look at the bold section above and look at the same line below some things were taken out. made some other minor changes

This is the code I used
<if condition="THIS_SCRIPT != 'adv_index'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]?$session[sessionurl]">Home</a></td>
</if>
<if condition="defined('VBA_SCRIPT')">
<td class="vbmenu_control"><a href="$vboptions[bburl]/?$session[sessionurl]">Forums</a></td>
</if><if condition="VBA_SCRIPT != 'gallery'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]/forum/gallery/?$session[sessionurl]">Gallery</a></td>
</if>
<if condition="VBA_SCRIPT != 'links'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]/forum/links/?$session[sessionurl]">links</a></td>
</if>


Again this was for my forum and it may be different for yours. I had a problem where it would show 2 http address in the same line and not add the /forum infront of gallery or links.

MorrisMcD
02-02-2006, 01:55 PM
You rule!

Thanks

rivacityj
02-04-2006, 12:14 AM
Anyone else having trouble with this in version 3.5.3? I thought it was working fine until I reloaded the page after clearing the cookies. My home link became http://www.rivacity.coms=f15dabed827fc65086f7739d4e676918&/ Any ideas on why that would happen? Once I log in it's fine.

Alsoy when I'm in the main page the link to my forums is this... http://www.rivacity.com/forums//index.php
It always works fine but that link seems to have some unnecessary info in it. Thanks for any help you guys can offer.

rivacityj
02-04-2006, 01:52 PM
Anyone? This apparently has to do with my cookies... could my settings be wrong? When they are completely clear the link is bad but all I have to do is reload the page or login and the link is fine again. Any ideas?

IML8RU2
02-05-2006, 03:59 AM
Hi.

I am trying to set this up so that the Forum button on my Navbar on my portal page (cmps_index.php renamed to index.php) leads to my Forum List (index.php renamed to forumlist.php) and vice versa. Going from the Forum List page to "Home" (my portal, index.php page) works perfectly. I can't figure out how to make it work the other way. I changed [homeurl]


<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions/$vboptions[forumhome].php?$session[sessionurl]"> Forums <else /> <a href="$vboptions[B][bburl]?$session[sessionurl]"> Home </if></a></td>

I'm guessing that I need to change the first [bburl] to reflect that I want to direct "Forums" to my forumlist.php? I don't know what the short form (eg bburl) is or how to find out. I'm a complete newbie to all of this.

Thanks.

Natalie

SalTheWop
02-07-2006, 01:02 PM
Have just inserted the code.Get from forum to home page OK, but when I try to get to forum from home I get The requested URL /forum//cmps_index.php was not found on this server.

rivacityj
02-07-2006, 02:47 PM
Double check what directory your cmps_index.php file was uploaded to. Also check to see if you renamed it to index.php. Finally I would check in your cmps cp and under options see what you put for your CMPS URL. I'd guess it's one of those three but I'm certainly not an expert. :D

seesoe
02-12-2006, 06:42 AM
thanks, worked perfectly

snoopgst
02-13-2006, 11:51 PM
fixed

CnB
02-26-2006, 06:10 PM
doing this gives me this result

i got a original button which i made for the style which i would like to use for this.
but instead i get a huge button which pushes the right collum to the left.

Kizzmet
02-26-2006, 07:04 PM
I`m using 3.5.4 with cmps V2. Thank you for posting the above. It did not work for me, but I was able to sort it out through your post.

You want to look for the section under the
<!-- nav buttons bar-->
and above the
<if condition=$show['member']">

I put:
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]/$vboptions[forumurl]$session[sessionurl]"> Forums <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"> Home </if></a></td>
I had changed my forum home page name to portal (for some reason that is what it wanted to link to) and I changed [forumhome] to [forumurl]
not a huge difference from the orignal post, but the changes made it work for me.
Thanks again!

CnB
02-27-2006, 11:17 AM
where in the line which you add. is the button location located ?
i want it to not add the button , but just use the button which is already there for it in the design

somehow when i add this code my quicklinks button expands and is put at the left side of the portal

enudensiga77
02-28-2006, 01:01 PM
I want "Home" or "Forums" in the navbar to be in red or green or other colors. How do you write the code? And where should it be inserted? Where can I find out the color codes for the text or characters?

I don't know anything about coding, but I have no problems in following precise instructions. Thanks for helping out.

CnB
03-02-2006, 05:12 PM
how do you control the location of the button ?
lets say i got a Home and Forum button in my style, would i be able to use them ?