PDA

View Full Version : Help with header template


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-->

Brian
06-08-2004, 09:44 AM
Add $vboptions[bburl]/ in front of each of those links. ;)

Our Sponsors
 

PtP
06-08-2004, 09:55 AM
Thank you very much you are a gem ;) I must say I am new to the VB scene after running PHPBB then IVB for the last 4 years and I am still astounded by the helpfull and friendly VB community. Thank you again and congrats on a great product, vBadvanced suited what I wanted perfectly and you seemed to have made those little things configurable that other people seem to forget, keep up the great work.

Brian
06-08-2004, 09:56 AM
Thank you. :)

Our Sponsors
 

PtP
06-09-2004, 09:41 AM
One last thing ;) This one is still a problem because of calling the js, again not vBadvanced fault, just the fact that the navigation is within the header, any ideas on this one?

<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>

Brian
06-09-2004, 10:13 AM
The code should be somewhere farther down your header template, it a <div> tag.