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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Clarification of Search re Adsense
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

muddywellies
Junior Member

United Kingdom
156 Posts

Posted - 06 March 2007 :  11:08:45  Show Profile  Visit muddywellies's Homepage
I have been looking at Search with regard to adding Adsense and I'm somewhat confused by the various threads.

I ended up focusing on the following thread as it appears to be the most comprehensive.
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=60645&SearchTerms=adsense

From what I can gather I need to:
1.Install the Site Integration Mod
2.Choose the header, footer, left or right panel for my ad and open the asp file accordingly.
3. Locate the </body> tag in the html and then add %> followed by the new code I wish to insert.
4.Add the following code so that Google Adsense appears only on the four sections described.
'########### start google ads
if not(Instr(Request.ServerVariables("Path_Info"), "default.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "active.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "forum.asp") > 0) and _
not(Instr(Request.ServerVariables("Path_Info"), "topic.asp") > 0) then
GoogleAdOK=FALSE
else
GoogleAdOK=TRUE
end if
if GoogleAdOK=TRUE then
%>
<!--#INCLUDE FILE="inc_google_adunit.asp" -->
<%
end if
'########### end google ads
5. Then cut and paste my Google code as normal
6. Finally insert <% at the end.


Now that appears to be my own interpretation of the thread and along the way the original poster's fears of breaking the Google TOS appears to have gone by the wayside or perhaps they are not being broken with this code.

Anyroad, it would seem that the whole question could receive some clarification. Certainly I would like to hear from anyone as whether or not my understanding above is the correct one, or otherwise, before I proceed and I'm sure other newbie's like myself would appreciate the clarification on this popular query.

I've got green fingers, but I'm all thumbs using a keyboard!

muddywellies
Junior Member

United Kingdom
156 Posts

Posted - 08 March 2007 :  11:46:35  Show Profile  Visit muddywellies's Homepage
No response yet. I wonder, is that good news or otherwise? To me at least, it seemed a good idea at the time to check things out before changing the code.

I've got green fingers, but I'm all thumbs using a keyboard!
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 08 March 2007 :  13:32:03  Show Profile  Visit MarcelG's Homepage
You are not entirely correct. Your Google code should go into the file inc_google_adunit.asp.
I'm not entirely sure about the site integration mod, as I have never used that.
But, I'm sure 4 and 5 are ok.
If you're still not confident, make sure you've got a backup of all asp files before you start.

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

muddywellies
Junior Member

United Kingdom
156 Posts

Posted - 20 March 2007 :  15:10:08  Show Profile  Visit muddywellies's Homepage
Where can I find the file you suggest? (inc_google_adunit.asp)
They are not in my Snitz folder. I've got inc_func_secure.asp & inc_groupjump_to.asp but no google_adunit.asp. Or is it within a mod somewhere?

I've got green fingers, but I'm all thumbs using a keyboard!
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 20 March 2007 :  15:46:52  Show Profile  Visit AnonJr's Homepage
I would guess that it is a file you would have to create yourself....
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07