The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
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.
<
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.
Code:
<%
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
%>
lblNoReplies