vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > Troubleshooting & Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 03-29-2006, 07:56 PM
antivirus's Avatar
antivirus antivirus is offline
Member
 
Join Date: Aug 2005
Posts: 72
Default stumped on dynamic forum/home link in navbar

Running vb3.5.4 and cmps2.1.0 with cmps file in forum's root directory.

I have the cmps_index.php file renamed as index.php in the root directory, which is where my forums are, and the forum's old index.php is renamed forums.php. All that is working fine, no problems with that...

I have also done the following:
vBulletin Options > Forums Home Page Options > Script Name for Forum Home Page changed to value of "forums" (from "index")

The problem is with my navbar template edit i am pretty sure... I added the line of code for the dynamic forum/home as such:

Code:
<!-- 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">
		<!-- BEGIN template mod forum/home link in navbar -->
		<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>
		<!-- END template mod forum/home link in navbar -->
		<if condition="$show['member']">
			<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
		</if>
Everything works fine when in the forums going to "home", however the problem is when viewing the cmps file, the "Forums" link in the navbar doesn't point to forums.php, it points to index.php, EVEN THOUGH the AdminCP setting for $vbulletin->options['forumhome'] is "forums".

Can anyoen help me pleeease?
Reply With Quote
  #2  
Old 03-30-2006, 02:37 PM
JJR512's Avatar
JJR512 JJR512 is offline
Junior Member
 
Join Date: Sep 2005
Location: Glen Burnie, MD, USA
Posts: 5
Default Re: stumped on dynamic forum/home link in navbar

I'd like to throw in here that I just did exactly the same thing, and have exactly the same problem.
__________________
- Justin J. "JJR512" Rebbert
JJR512.com: Talk about anything!
Reply With Quote
  #3  
Old 03-30-2006, 04:32 PM
KW802's Avatar
KW802 KW802 is offline
Administrator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 5,030
Default Re: stumped on dynamic forum/home link in navbar

Are you sure that you don't need the slash after the BB URL? As in $vboptions[bburl]/$vboptions[forumhome].php instead of $vboptions[bburl]$vboptions[forumhome.php]?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Forum / Home Link in Navbar mholtum Modifications (version 3.x & 2.x) 176 08-20-2009 11:54 PM
Dynamic Forum/Home in Navbar... slight twist... |oR|ElGuapo "How Do I..." Questions 5 12-14-2005 02:31 PM
Dynamic Link To Forum Home addictive "How Do I..." Questions 2 06-27-2005 07:49 AM


All times are GMT -4. The time now is 11:29 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.