PDA

View Full Version : headder truble


KOM
10-25-2004, 03:57 PM
The links on the header are not working on the main page it's missing (forums/) in the url.

EXP: www.mysite.com/usercp.php?s=Array%5Bsessionhash%5D

It should be this
www.mysite.com/forums/usercp.php?s=Array%5Bsessionhash%5D

It works fine on the forums part of the page. It add's the forums/ to the url just fine.

How do I fix this, I can't go into the header and just add the forums/ When I do that then the fourms part of the page don't work. It add's to fourms/

EXP: www.mysite.com/forums/forums/usercp.php?s=Array%5Bsessionhash%5D

I'm lost and need some help

Brian
10-25-2004, 04:56 PM
You need to edit your header template and add $vboptions[bburl] in front of the links there.

Our Sponsors
 

KOM
10-25-2004, 05:23 PM
I'm not 100% what you are talking about.So I added that to the front of the links like this
$vboptions[bburl]usercp.php?s=$session[sessionhash] and so on.

It's not working.. the new link I get now is http://www.mysite.com/Array%5Bbburl%5Dmemberlist.php?s=Array%5Bsessionhash%5D


Why is it working for the fourms part fine, and not CMPS index page?

Brian
10-25-2004, 05:53 PM
Because those files are in the forum directory.

Unless you have a hack that's seriously messing some things up there's no way you should get a link like that.

Our Sponsors
 

KOM
10-25-2004, 06:08 PM
The only hack I had installed was the VBHOME, After I installed CMPS I uninstlled Home

So that is what itshould look like ?
$vboptions[bburl]usercp.php?s=$session[sessionhash]

I'm not sure what's up, worked fine for VBHome

Brian
10-25-2004, 06:12 PM
$vboptions[b]/usercp.php?s=$session[sessionurl]]

If your template had $session[sessionhash] in it then whoever designed your style doesn't know what they're doing.

KOM
10-25-2004, 07:55 PM
It's not working man.

I may have somthing not right in the header.
This this the url I get when I added $vboptions[bburl]/memberlist.php?s=$session[sessionurl]

(http://www.mysite.com/Array%5Bbburl%5D/memberlist.php?s=Array%5Bsessionurl%5D)
I took it back out and just pasted my header. I know it's not your job to look at it, But it would help me alot cuz i'm lost

<!-- begin tren_z header-->
<div align="center">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr>
<td align="left" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="469" height="137" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_header_top_ls.jpg" width="469" height="137" alt="" /></td>
<td width="100%" height="137" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/tren_z_header_top_back.jpg)"><img src="$stylevar[imgdir_misc]/tren_z_header_top_back.jpg" width="100%" height="137" alt="" /></td>
<td width="40" height="137" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_header_rs.jpg" width="40" height="137" alt="" /></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="150" height="22" align="left" valign="top"><img src="$stylevar[imgdir_misc]/tren_z_header_btm_forum_name.gif" width="150" height="22" alt="" /></td>
<td width="100%" height="22" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/tren_z_header_bot_expand.gif)"><img src="$stylevar[imgdir_misc]/tren_z_header_bot_expand.gif" width="100%" height="22" alt="" /></td>
<td width="77" height="22" align="left" valign="top"><a href="http://www.mysite.com"><img src="$stylevar[imgdir_misc]/tren_z_header_home.gif" width="77" height="22" alt="" border="0" /></a></td>
<td width="70" height="22" align="left" valign="top"><a href="usercp.php?s=$session%5Bsessionhash%5D"><img src="$stylevar[imgdir_misc]/tren_z_header_cp.gif" width="70" height="22" alt="" border="0" /></a></td>
<if condition="$show['registerbutton']">
<td width="70" height="22" align="left" valign="top"><a href="$vboptions%5Bbburl%5D/register.php?s=$session%5Bsessionhash%5D&action=signup"><img src="$stylevar[imgdir_misc]/tren_z_header_register.gif" width="70" height="22" alt="" border="0" /></a></td>
<else />
<td width="70" height="22" align="left" valign="top" id="usercptools"><a href="http://www.mysite.com/index.php?page=links"><img src="$stylevar[imgdir_misc]/tren_z_header_links.gif" width="70" height="22" alt="" border="0" /></a>
<script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
</if>
<td width="71" height="22" align="left" valign="top"><a href="calendar.php?s=$session%5Bsessionhash%5D"><img src="$stylevar[imgdir_misc]/tren_z_header_calendar.gif" width="71" height="22" alt="" border="0" /></a></td>
<td width="70" height="22" align="left" valign="top"><a href="memberlist.php?s=$session%5Bsessionhash%5D"><img src="$stylevar[imgdir_misc]/tren_z_header_members.gif" width="70" height="22" alt="" border="0" /></a></td>
<td width="72" height="22" align="left" valign="top"><a href="misc.php?s=$session%5Bsessionhash%5D&action=faq"><img src="$stylevar[imgdir_misc]/tren_z_header_faq.gif" width="72" height="22" alt="" border="0" /></a></td>
<td width="74" height="22" align="left" valign="top" id="navbar_search"><a href="search.php?s=$session%5Bsessionhash%5D"><img src="$stylevar[imgdir_misc]/tren_z_header_search.gif" width="74" height="22" alt="" border="0" /></a>
<script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
</tr>
</table>
<!-- end tren_z header-->



<!-- begin main inner table area-->
<!-- content table -->
<table bgcolor="#232D35" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>



$spacer_open

$_phpinclude_output

Brian
10-25-2004, 08:03 PM
Why is this in there?

$vboptions%5Bbburl%5D

KOM
10-25-2004, 08:46 PM
I have no idea, it just comes up when you hit the link. That's the url I get on forums as well. It all works in the fourms even with that in there. It's just the index .php i'm missing the forums/ in the url

KOM
10-26-2004, 11:34 AM
Do I have to move back to VBHome to fix this?

Brian
10-26-2004, 11:42 AM
There's no reason that should be in the template.

KOM
10-26-2004, 12:04 PM
Brian I think the %5Bbburl%5D the D = ] not sure about the rest. I put the code for my header above, \As you can see there are know %5Bbburl%5D in the header code

Brian
10-26-2004, 12:19 PM
That code is all over your header template. Were you editing it with some type of WYSIWYG editor?

KOM
10-26-2004, 12:25 PM
I use dreamweaver 4 why ?

OMG I did not even see that. Know i'm lost lol just about ready to give it up.

KOM
10-26-2004, 12:33 PM
Brian!! your the man, I just used the VB temp to chage all the code to what you said and it worked. What happend was I was adding your code. When I copyed and pasted from dreamweaver to VB it made the [ into a %5b. After going over all the code and fixing that. I then tryed what you said above about the $vboptions[bburl]/ works fine mate.. Thank you for all your help man..

Brian
10-26-2004, 01:01 PM
That's one of many reasons why you should NEVER use Dreamweaver. It's much better to learn how to code by hand and learn how to do things right. It takes far less time to do everything by hand than to clean up all of the crap that Dreamweaver outputs. ;)

mholtum
10-26-2004, 03:08 PM
Actually I am using the Version of Dreamweaver that comes with Macromedia Studio MX 2004, which is 7.01 and it works perfectly. The older versions do not work as you are saying, but the new one is just fine.