Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Quick Adsense Mozilla Referral Mod

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
garyrobar Posted - 04 February 2007 : 15:02:37
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
%>
<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000 Version 3.4.07