Okay, I've managed to do what I orignally wanted and now I'm just trying to push the boundries lol
So what I'm wanting to do now is (with the code below)
I'm wanting to basically have a profile field where users can add a link such as
www.my-site.com/example.php and when they click the banner it takes them to the link they have posted in that given profile field...
not only that but also if they haven't set a link in that profile field, then it'll be default as below.
for example, if they don't have a link in that profile field (as the code below does)
If they click on the banner whilst on index.php then it'll take them to home.php and vise versa.
however if they have a link in their profile field, it'll take them to that link no matter what page they are on
Is this possible and if so can someone please help me with in? Many thanks!
I USED THIS CODE TO DO IT, IF THERE IS A BETTER, MORE NEAT CODE THEN PLEASE LET ME KNOW
PHP Code:
<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]">
<a href="<if condition="THIS_SCRIPT != 'index'">index.php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]" id="header_right_cell"><else />
<td align="$stylevar[left]">
<a href="<if condition="THIS_SCRIPT != 'home'">home.php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]" id="header_right_cell"></td></if></if>
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else /> </if>
</td>
</tr>
</table>
<!-- /logo -->