PDA

View Full Version : Separate header banner image for vba and vb


MikeH2911
12-15-2007, 07:25 PM
Hi,

I used to have two images, one for header of vba and a different one for header of vb, can't remember how I did this but I seem to recall that its something to do with header includes when you install vba, i think I left it as it was instead of correcting the usual 'my images have disappeared when I installed a new style' issue.

I used the following code in the header template to adjust the header settings and remove the link from the banner of the vba page and the alt:

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><center><if condition="!(THIS_SCRIPT == 'adv_index')"><a href="http://www.aikidoyuishinkai.co.uk"></if><img src="$stylevar[titleimage]" border="0" <if condition="!(THIS_SCRIPT == 'adv_index')"> alt="$vboptions[bbtitle]" /></a><center></if></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

<if condition="!(THIS_SCRIPT == 'adv_index')">
$welcomeheaders
</if>

Then I installed vbgallery and my image links got changed and now I can't get the vba header image to change back to what it was before, it's just the same as the vb header banner, so I tried this (including a bunch of alterations to the if condition syntax incase I'd messed that up.

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><center><if condition="!(THIS_SCRIPT == 'adv_index')"><a href="http://www.aikidoyuishinkai.co.uk"></if>

<if condition="THIS_SCRIPT == 'adv_index'"><img src="http://www.banyuhattenaikido.co.uk/images/MyStyle/misc/logo.gif" border="0"></if>

<img src="$stylevar[titleimage]" border="0" <if condition="!(THIS_SCRIPT == 'adv_index')"> alt="$vboptions[bbtitle]" /></a><center></if></td>
<td align="$stylevar[right]">
&nbsp;
</td>
</tr>
</table>
<!-- /logo -->

<!-- content table -->
$spacer_open

$_phpinclude_output

<if condition="!(THIS_SCRIPT == 'adv_index')">
$welcomeheaders
</if>

Nothing happened. Any help? How do I fis it so that i can have different header banners (and soon I'll need different backgrounds) fr vba and vb?

Mike

Brian
12-17-2007, 01:08 PM
To switch between code on the CMPS you would need to use something like this:

<if condition="THIS_SCRIPT == 'adv_index'">

CMPS code here

<else />

Forum code here

</if>[/code]

Code like this is also not correct:
[php]!(THIS_SCRIPT == 'adv_index')

You would want to use this instead:
THIS_SCRIPT != 'adv_index'

'==' means "if it equals".
'!=' means "if it does not equal".