PDA

View Full Version : navbar question


AbadiRed
07-08-2009, 03:50 PM
Hi,

I have these codes on my navbar template:

<if condition="THIS_SCRIPT != 'adv_index'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]?$session[sessionurl]">Home</a></td>
</if>
<if condition="THIS_SCRIPT != 'index'">
<td class="vbmenu_control"><a href="$vboptions[bburl]/$vboptions[forumhome].php?$session[sessionurl]">Forums</a></td>
</if>
<if condition="THIS_SCRIPT != 'gallery'">
<td class="vbmenu_control"><a href="$vboptions[homeurl]/gallery/?$session[sessionurl]">Photo Gallery</a></td>
</if>
<if condition="THIS_SCRIPT != 'chat'">
<td class="vbmenu_control"><a href="$vboptions[bburl]/misc.php?do=flashchat&room=3">Chatbox</a></td>
</if>


They are all works fine in each session except when I'm in "Links Directory" session. I just can't click "Forum" right. It will points me to:

http://www.mysite.com/forums/http://www.mysite.com/links/index.php? instead of http://www.mysite.com/forums/?

How can I fix this issue? thanks

Brian
07-09-2009, 10:47 AM
Try linking to "/forums/$vboptions[forumhome].php$session[sessionurl_q]" instead.

Our Sponsors
 

AbadiRed
07-09-2009, 01:39 PM
No luck, it keeps pointing to:

http://www.mysite.com/forums/http://www.mysite.com/links/index.php?

I'm curious why repeating address twice...:confused:

Brian
07-10-2009, 12:16 PM
I'm sorry, I must not have been thinking... It's the $vboptions[forumhome] variable that's likely causing the issue. Assuming you haven't renamed your vBulletin index.php file, either of these links should work (if you have renamed the file, of curse just replace 'index' in the link).

/forums/index.php$session[sessionurl_q]
$vboptions[bburl]/index.php$session[sessionurl_q]

Our Sponsors
 

AbadiRed
07-12-2009, 12:21 PM
Once again, Thanks Brian!
I love vBadvanced :)