Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Quick Adsense Mozilla Referral Mod
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

garyrobar
New Member

Canada
90 Posts

Posted - 04 February 2007 :  15:02:37  Show Profile  Visit garyrobar's Homepage  Reply with Quote
Not much here, but for those who sell adsense ads on their forum, you may want to consider this add-on.

It basically figures out if user has mozilla already (if yes, don't show ad) and if they don't, it shows an ad for firefox.

It also has a line that will ONLY show the ad on the first pageview, and ONLY if the user is coming from a site other than your own.

JUST REMEMBER to insert your own domain name, pub-id, and channel if one exists.

Just put the following code in to a file, and "include" it in your header file (of footer) - whichever you like.


<%
userAgent = request.serverVariables("HTTP_USER_AGENT") 'get browser
referrer = request.serverVariables("HTTP_REFERER") 'where did the user come from

'response.write useragent
'response.write ("<br />")
'response.write referrer

If inStr(referrer,"DOMAIN NAME HERE") = 0 then

If inStr(userAgent,"MSIE") > 0 or inStr(userAgent,"internet") > 0 or inStr(userAgent,"Opera") > 0 or inStr(userAgent,"Safari") > 0 or inStr(userAgent,"Netscape") > 0 then
%>
<div id="adsense-moz" style="border:1px solid #d0d0d0;background-color:#f0f0f0;">
	<table>
		<tr>
			<td valign="top" width="40%">
				We've noticed that your're not using Mozilla Firefox to browse the internet.
				<br />
				Why not try out the new Mozilla Firefox browser for cruising the Billiards Forum:
			</td>
			<td>
				<script type="text/javascript"><!--
				google_ad_client = "pub-###################";
				google_ad_width = 180;
				google_ad_height = 60;
				google_ad_format = "180x60_as_rimg";
				google_cpa_choice = "CAAQ56j8zwEaCHvU9tBAqJJaKMu293M";
				google_ad_channel = "#############";
				//--></script>
				<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
			</td>
			<td valign="top" width="40%">
				It is one of the most secure browsers out there today.
			</td>
		</tr>
	</table>
</div>
<br />
<%
end if
end if
%>
<

SEO For Snitz Forum
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07