Ok first things first, i am absolutely hopeless when it comes to PHP and you are all much smarter than me....hence why im here. I have an advertising website and when a user is not displaying an image with their link i want it to display a default one from Adhitz. Can this be done? I have a feeling this is the part of code that i need to edit but dont know how
<div class="ad-title">
<span class="pointer" onclick="window.open('index.php?view=surfer&t={$ad.token}','_blank');">{$ad.title|stripslashes}</span>
</div>
{if $adcategory[c].hide_descr != 1}
<div class="ad-content">
<table cellpadding="5" width="100%">
<tr>
{if !empty($ad.img) && $ad.img != 'http://}
<td valign="top" width="100">
<img src="{$ad.img}" style="max-height:100px; max-width:100px" />
</td>
{/if}
<td valign="top">{$ad.descr|stripslashes}</td>
</tr>
</table>
</div>
{/if}
<div class="ad-footer">
Earn ${$ad.value}
</div>
And this is the code i want to put in when people arent using their own banner / image
<script type="text/javascript" src="http://adhitzads.com/802215"></script>