Ads in smf

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
Try using this to put the ads in smf 1.0.5 I have not used it yet but I will do my best to help you if I can.

use an iframe to call another file

Modify the index template. (the main template) adding
Code:

<td><P ALIGN=left><IFRAME SRC="http://www.xxxxxx.com/phpads.htm"
WIDTH=480 HEIGHT=75 scrolling="no" border="0"
frameborder="0"></IFRAME></P>


phpads file


Code:
<body>
<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);

document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.xxxxxx.com/ads/adjs.php?n=" + phpAds_random);
document.write ("&amp;what=zone:5");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referer)
document.write ("&amp;referer=" + escape(document.referer));
document.write ("'><" + "/script>");
//-->
</script><noscript>
<a href='http://www.xxxxxx.com/ads/adclick.php?n=a5add3b3' target='_blank'><img src='http://www.xxxxx.com/ads/adview.php?what=zone:5&amp;n=a5add3b3' border='0' alt=''></a></noscript>

</body>
 
Last edited:
Top