PDA

View Full Version : Pls help. Am lost trying to replace my header



Rivers
Sat 26th Apr '08, 11:15pm
Our forum is located here: http://www.integra.sg

We currently have a logo on the top left hand corner of the page and would like to add one to the top-right hand corner as well. Does anyone have any idea what I should be doing?

Tried using Style manager to change things but it doesn't seem to work, we are using the City Morning style.

Thanks much.

vbStartup
Sat 26th Apr '08, 11:17pm
Edit the header template; find



<td background="/forums/images/light/misc/header_outp_II_02.gif" width="100%" height="77"></td>


Replace with



<td background="/forums/images/light/misc/header_outp_II_02.gif" width="100%" height="77" align="right"><img src="/path/to/image.gif" alt="" /></td>


Edit <img src="/path/to/image.gif" alt="" /> to the location of the logo to put on the right

Rivers
Sat 26th Apr '08, 11:42pm
Sorry but where do I find the header template? Can't seem to locate it within style manager. The code below is from 'header' within Style Manager, Thanks.


<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

vbStartup
Sun 27th Apr '08, 1:39am
That looks like default header template. Edit the header template for your custom style.

Rivers
Sun 27th Apr '08, 4:29am
My bad, i was copying it from the default template.. This is the right one


<!-- logo -->
<a name="top"></a>
<table width="$stylevar[outertablewidth]" align="center" height="77" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="255">
<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/header_outp_II_01.gif" alt="$vboptions[bbtitle]" width="255" height="77" border="0"></a></td>
<td background="$stylevar[imgdir_misc]/header_outp_II_02.gif" width="100%" height="77"></td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open

$_phpinclude_output
I changed part of the header template to:


<td background="$stylevar[imgdir_misc]/left-logo.jpg" width="100%" height="77" align="right"><img src="$stylevar[imgdir_misc]/right-logo.gif" alt="" /></td>but it comes out all wrong as the right-logo keeps getting repeated, am attaching what it looks like after editing it.

vbStartup
Sun 27th Apr '08, 10:51am
<td background="$stylevar[imgdir_misc]/header_outp_II_02.gif" width="100%" height="77" align="right"><img src="$stylevar[imgdir_misc]/right-logo.gif" alt="" /></td>

Rivers
Sun 27th Apr '08, 11:30am
Ahhh, it works now.. The only issue is that the logos are on the opposite side. Here is the code I am using now, if I try to switch locations of the jpg/gif files in the code, it backfires and i get copies of the image all over the header. What gives?


<td background="$stylevar[imgdir_misc]/header_outp_II_02.gif" width="100%" height="77" align="right"><img src="$stylevar[imgdir_misc]/left-logo.jpg" alt="" /></td>

vbStartup
Sun 27th Apr '08, 12:29pm
<!-- logo -->
<a name="top"></a>
<table width="$stylevar[outertablewidth]" align="center" height="77" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="255">
<a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/right-logo.gif" alt="" /></a></td>
<td background="$stylevar[imgdir_misc]/header_outp_II_02.gif" width="100%" height="77" align="right"><img src="$stylevar[imgdir_misc]/header_outp_II_01.gif" alt="$vboptions[bbtitle]" width="255" height="77" border="0"></td>
</tr>
</table>
<!-- /logo -->
<!-- content table -->
$spacer_open

$_phpinclude_output

Use the above as your header template.

The image tags are the logos, the background attribute is the... well... the repeating background