Quote:
Originally Posted by burntire
Below is the code I use in the bannerads template.
Just so we are clear this fixes the problem of the banner ads not redirecting when clicked on if you are using CMPS to create your sites home page.
Code:
<if condition="$vboptions['bannersys_mode']">
<if condition="$bbuserinfo['userid'] == '0'">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions['bannersys_popup']">target='_blank'</if>><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
<br />
<else />
<if condition="$vboptions['bannersys_ads2all'] AND $bbuserinfo['userid']">
<br />
<table class="tborder" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td><a href="http://www.YOURSITE.com/forums/banner.php?$session[sessionurl]do=redirect&bannerid=$ads[bannerid]" <if condition="$vboptions[bannersys_popup]">target="_blank"</if>"><img src="$ads[imgurl]" width="$ads[bwidth]" height="$ads[bheight]" border="0"></a></td>
</td>
</table>
</if>
</if>
</if>
|
Ok, im not having a problem with cmps anymore as soon as i added "ads" as a hook good to go.
What the problem is the links are not redirecting to the url, it works in the cp but not on the site.