PtP
06-08-2004, 03:40 AM
Hoping some coding whiz me able to help me with my predicament.
Firstly I have the portal index in the rott dir and the forum is under it in a /forum dir, I have a custom theme with the navigation in the header template and the result is while in the forum it directs to forum/blah.php but whithin the portal it refers to blah.php.
Now to change the header template to forum/blah.php the portal will be
correct but the forum results with forum/forum/blah.php.
Hope I have not been too long winded just wanted to make it fully clear ;)
Below is the naughty bit of code, I hope someone can help.
<!-- begin 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">
<tr>
<td width="221" height="113" rowspan="3"><img src="$stylevar[imgdir_misc]/surge_hdr_ls.gif" width="221" height="113" alt="" /></td>
<td width="100%" height="113" rowspan="3" style="background-image: url($stylevar[imgdir_misc]/surge_hdr_x.gif)"><img src="$stylevar[imgdir_misc]/clear.gif" width="100%" height="1" alt="" /></td>
<td width="531" height="77" colspan="7"><img src="$stylevar[imgdir_misc]/surge_hdr_top.gif" width="531" height="77" alt="" /></td>
</tr>
<tr>
<td width="61" height="22"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_home.gif" width="61" height="22" border="0" alt="" /></a></td>
<td width="81" height="22"><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_cp.gif" width="81" height="22" border="0" alt="" /></a></td>
<if condition="$show['registerbutton']">
<td width="83" height="22"><a href="register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_reg.gif" width="83" height="22" border="0" alt="" /></a></td>
<else />
<td width="83" height="22" id="usercptools"><a href="#usercptools"><img src="$stylevar[imgdir_misc]/surge_hdr_links.gif" width="83" height="22" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
</if>
<td width="82" height="22"><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_members.gif" width="82" height="22" border="0" alt="" /></a></td>
<td width="89" height="22"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_calendar.gif" width="89" height="22" border="0" alt="" /></a></td>
<td width="74" height="22" id="navbar_search"><a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_search.gif" width="74" height="22" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
<td width="61" height="22"><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_faq.gif" width="61" height="22" border="0" alt="" /></a></td>
</tr>
<tr>
<td width="531" height="14" colspan="7"><img src="$stylevar[imgdir_misc]/surge_hdr_btm.gif" width="531" height="14" alt="" /></td>
</tr>
</table>
<!-- end header-->
Firstly I have the portal index in the rott dir and the forum is under it in a /forum dir, I have a custom theme with the navigation in the header template and the result is while in the forum it directs to forum/blah.php but whithin the portal it refers to blah.php.
Now to change the header template to forum/blah.php the portal will be
correct but the forum results with forum/forum/blah.php.
Hope I have not been too long winded just wanted to make it fully clear ;)
Below is the naughty bit of code, I hope someone can help.
<!-- begin 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">
<tr>
<td width="221" height="113" rowspan="3"><img src="$stylevar[imgdir_misc]/surge_hdr_ls.gif" width="221" height="113" alt="" /></td>
<td width="100%" height="113" rowspan="3" style="background-image: url($stylevar[imgdir_misc]/surge_hdr_x.gif)"><img src="$stylevar[imgdir_misc]/clear.gif" width="100%" height="1" alt="" /></td>
<td width="531" height="77" colspan="7"><img src="$stylevar[imgdir_misc]/surge_hdr_top.gif" width="531" height="77" alt="" /></td>
</tr>
<tr>
<td width="61" height="22"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_home.gif" width="61" height="22" border="0" alt="" /></a></td>
<td width="81" height="22"><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_cp.gif" width="81" height="22" border="0" alt="" /></a></td>
<if condition="$show['registerbutton']">
<td width="83" height="22"><a href="register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_reg.gif" width="83" height="22" border="0" alt="" /></a></td>
<else />
<td width="83" height="22" id="usercptools"><a href="#usercptools"><img src="$stylevar[imgdir_misc]/surge_hdr_links.gif" width="83" height="22" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
</if>
<td width="82" height="22"><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_members.gif" width="82" height="22" border="0" alt="" /></a></td>
<td width="89" height="22"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_calendar.gif" width="89" height="22" border="0" alt="" /></a></td>
<td width="74" height="22" id="navbar_search"><a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_search.gif" width="74" height="22" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
<td width="61" height="22"><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/surge_hdr_faq.gif" width="61" height="22" border="0" alt="" /></a></td>
</tr>
<tr>
<td width="531" height="14" colspan="7"><img src="$stylevar[imgdir_misc]/surge_hdr_btm.gif" width="531" height="14" alt="" /></td>
</tr>
</table>
<!-- end header-->