PDA

View Full Version : Changing Nav Bar Template


club racer
11-27-2005, 08:32 PM
Ok
So originally, I had just the forum page. So, when you click on "home" on the Nav Bar you are directed to the forum page. Now, I have installed the VBadv CMPS, and when viewing the forum page there is no real way to go back to the new home page.

So, I would like for the user (when viewing the forum) to be able to click on "home" in the Nav Bar and have that take them back to the cmps page.

I've looked in the nav bar template quite a few times, and can't seem to find the home button or the link to where this goes once clicked (so I can change it).

Any help?
I'm running 3.5 with a skin from vbskinworks.com

Thanks

just as an fyi

this is where I'm looking in the nav bar template.....let me know if I need to go somewhere else

<!-- 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">
<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,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=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 -->

Rover416
11-27-2005, 08:59 PM
EDIT: I have just noticed you are using the soness style.

look in the header template and find


<td width="47"><a href="index.php"><img src="$stylevar[imgdir_misc]/home.jpg" width="47" height="30" border="0"></a></td>


and change it to


<td width="47"><a href="cmps_index.php"><img src="$stylevar[imgdir_misc]/home.jpg" width="47" height="30" border="0"></a></td>

club racer
11-27-2005, 10:07 PM
EDIT: I have just noticed you are using the soness style.

look in the header template and find


<td width="47"><a href="index.php"><img src="$stylevar[imgdir_misc]/home.jpg" width="47" height="30" border="0"></a></td>


and change it to


<td width="47"><a href="cmps_index.php"><img src="$stylevar[imgdir_misc]/home.jpg" width="47" height="30" border="0"></a></td>



Hey now! There is a good edit! Thanks, going to see if it works now

when I open the header template this is what I see
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

I cant see where I change it to cmps_index.php

Rover416
11-27-2005, 11:51 PM
It seems that your header template has been reverted,maybe when john did the header for you.

I think your best bet would be to ask on vBskinworks,that first bit of code is right since this is what i think should be there from viewing the source code.


<td width="47"><a href="index.php"><img src="/forum/soness/misc/home.jpg" width="47" height="30" border="0"></a></td>
<td width="83" id="usercptools"><img src="/forum/soness/misc/quicklinks.jpg" width="83" height="30"><script type="text/javascript">vbmenu_register("usercptools",true); </script></td>
<td width="66"><a href="usercp.php"><img src="/forum/soness/misc/usercp.jpg" width="66" height="30" border="0"></a></td>
<td width="70"><a href="memberlist.php"><img src="/forum/soness/misc/members.jpg" width="70" height="30" border="0"></a></td>
<td width="73"><a href="register.php"><img src="/forum/soness/misc/register.jpg" width="73" height="30" border="0"></a></td>
<td width="77"><a href="calendar.php"><img src="/forum/soness/misc/calendar.jpg" width="77" height="30" border="0"></a></td>
<td width="56" id="navbar_search"><img src="/forum/soness/misc/search.jpg" width="56" height="30"><script type="text/javascript">vbmenu_register("navbar_search",true); </script></td>
<td width="54"><a href="faq.php"><img src="/forum/soness/misc/faq.jpg" width="54" height="30" border="0"></a>

He must have it reading from another file since your header on your forum but without seeing the files i would not know where he has put it.