Author |
Topic  |
|
muddywellies
Junior Member
 
United Kingdom
156 Posts |
Posted - 06 March 2007 : 11:08:45
|
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
|
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! |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 08 March 2007 : 13:32:03
|
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 |
 |
|
muddywellies
Junior Member
 
United Kingdom
156 Posts |
Posted - 20 March 2007 : 15:10:08
|
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! |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 20 March 2007 : 15:46:52
|
I would guess that it is a file you would have to create yourself.... |
 |
|
|
Topic  |
|