PDA

View Full Version : Adding [bburl] to Navbar PM Info


Code3Services
02-27-2005, 01:15 AM
I'm having a problem with the code below. This is from my Navbar template, the area at the far right that displays User Info and PM Info.

Right now the link to the PM system is missing the directory of my forums, which is /forums/. I have been trying to add this via the $vboptions but have had no luck.

Can someone advise what I need to do to get this working?

Thanks!


<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<!--<span style="float:$stylevar[right]">[<a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]" onclick="return log_out()">$vbphrase[log_out]</a>]</span>-->
<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]">$vbphrase[private_messages_nav]</phrase></if>
</div>
</td>


The function I [B]believe I need to add the forums url to is:

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

Maybe I should clarify a bit more:

The link to the PM's at the far right of the Navbar goes to http://www.domain.com/private.php. It needs to go to http://www.domain.com/forums/private.php.

I was attempting to use the $vboptions[bburl], but had no luck. Any suggestions?

hanziezwanzie
02-28-2005, 06:53 PM
I had the exact same problem...i fixed it but i think there's a better way to do the job.
In your navbar template i've searched the actual links which starts here

<!-- nav buttons bar -->

I shall insert a piece of code from my navbar template
The bold text is what i added to each link

<!-- 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?$session[sessionurl]"> Forums <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"> Home </if></a></td>

<if condition="$show['member']">
<td class="vbmenu_control"><a href="[b]/forum/usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="/forum/register.php?$session[sessionurl]">$vbphrase[register]</a></td>
</if>
<td class="vbmenu_control"><a ....

I know it's not the most efficient way to fix it :ermm: but it helped me to deal with that problem....dunno if you could get any help out of this :ermm:

greetzzz