Author |
Topic  |
sr_erick
Senior Member
   
USA
1318 Posts |
Posted - 18 February 2004 : 00:28:00
|
That website doesn't work for my adsense stats for some reason. It works witht he sample ones but not mine. |


Erick Snowmobile Fanatics
|
 |
|
Ryan
Average Member
  
USA
858 Posts |
Posted - 23 March 2004 : 14:20:51
|
Another ? I had about this. Google's TOS does not accept implementing ads on "Thank you" pages. Do how can you implement it on default.asp? When you login it says thank you for logging in. Is this OK? |
The Poultry Link - "Serving the best of the fancy with the best of the web" Forum Setup Help |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 23 March 2004 : 15:47:09
|
Ryan, there was some code posted a fair while ago that did a conditional on certain Snitz pages, so they didn't show the Adsense stuff. |
 |
|
MarkJH
Senior Member
   
United Kingdom
1722 Posts |
|
Ryan
Average Member
  
USA
858 Posts |
Posted - 23 March 2004 : 21:52:27
|
Exactly laser..MarkJH..I know that. I am talking about how can you legally justify using it on the default.asp page and not breaching Google's TOS? When you are logged out of the site and you are on the default.asp page, you have the empty fields to fill out with your UserName and Password. Fill those in and submit it and you are shown this message:
You logged on successfully!
Thank you for your participation.
and you are still on the default.asp page. Is this considered a "Thank you" page? If so, default.asp cannot have the Adsense program implemented.
|
The Poultry Link - "Serving the best of the fancy with the best of the web" Forum Setup Help |
 |
|
Gremlin
General Help Moderator
    
New Zealand
7528 Posts |
Posted - 23 March 2004 : 23:57:41
|
It can if it's not displayed at the same time the Thank You message is, which is just some more conditional coding really. |
Kiwihosting.Net - The Forum Hosting Specialists
|
 |
|
MarkJH
Senior Member
   
United Kingdom
1722 Posts |
Posted - 24 March 2004 : 02:23:17
|
I should have added that I hardcoded the AdSense code within the actual forum data tables on the pages I mentioned above. This means that you do not see the ads when you post a message (Thank you page) or login/logout. If the ads are not displayed, it's not against the TOS. |
Bandlink.net - http://www.bandlink.net/ Bandlink Music Forums - http://www.bandlink.net/forum/ |
 |
|
Deech
Starting Member
2 Posts |
Posted - 18 May 2004 : 00:15:37
|
I was wondering if you could shed some more light on where to put the Adsense code to prevent it from showing on login/logout and thank you pages. You said you hard-coded it into a table. Can you tell me where in the table?
I just got Adsense set up on my site, and I'd like to add it to my forum as well, so any help you can give would be appreciated. I did a search on Adsense and found a lot of ideas, but nobody seems to have licked the login/thank you page issue except from what you wrote about hard-coding it.
Thanks!  |
 |
|
realhorrorshow
Starting Member
United Kingdom
31 Posts |
Posted - 23 September 2004 : 09:22:13
|
I'd love more info on how/where to put the code too. |
 |
|
CarKnee
Junior Member
 
USA
297 Posts |
Posted - 23 September 2004 : 09:43:29
|
I never worried about hiding it on the "Thank You" pages, but thinking about it now...
Since the thank you pages are created when something is posted, you should be able to use this:
<%If LCase(Request.ServerVariables("REQUEST_METHOD")) <> "post" Then%>
Google Code Here
<%End If%>
I am also now going to hide it for admin pages as well. To do this I am using this:
<%If LCase(Request.ServerVariables("REQUEST_METHOD")) <> "post" AND InStr(strScriptName, "admin") <= 0 Then%>
Google Code Here
<%End If%>
I have a feeling that my impressions are going to DROP! I just hope my revenue doesn't!  |
 |
Edited by - CarKnee on 23 September 2004 09:45:03 |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 23 September 2004 : 10:03:12
|
I use this:
'## GOOGLE ADSENSE PAGE CHECKS AND JAVASCRIPT HERE
if (Instr(Request.ServerVariables("Path_Info"), "forum.asp") > 0) then
if request.querystring("FORUM_ID") <> "" then
strTempForum = cLng(request.querystring("FORUM_ID"))
strsql = "SELECT F_PRIVATEFORUMS FROM " & strTablePrefix & "FORUM WHERE FORUM_ID=" & strTempForum
set tforums = my_conn.execute(strsql)
strForumID_security = chkString(tforums("F_PRIVATEFORUMS"),"display")
set tforums = nothing
end if
end if
if (strForumID_security * 1) <> 0 then
strThisIsPrivate="yes"
end if
if (strTopic_Security * 1) <> 0 then
strThisIsPrivate="yes"
end if
if (Instr(Request.ServerVariables("Path_Info"), "topicated.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "forum.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "faq.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "portal_content.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "index.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "topic.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "weblogs.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "logfeed.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "news.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "shortnews.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "topic.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "default.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "forums.asp") > 0) or _
(Instr(Request.ServerVariables("Path_Info"), "pop_avatarlegend.asp") > 0) then
if strThisIsPrivate<>"yes" then
GoogleAdOK=TRUE
end if
else
GoogleAdOK=FALSE
end if In other words ; I first check if the page is a private page or not (members only forums etc). That's the strThisIsPrivate value. After that I specify on which pages it SHOULD be shown, if the strThisIsPrivate is NOT "yes". So, instead of hiding where not allowed I only show where allowed. I do this by means of another if then:
if GoogleAdOK=TRUE then
'include the adsense code here
end if |
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 23 September 2004 10:04:33 |
 |
|
realhorrorshow
Starting Member
United Kingdom
31 Posts |
Posted - 23 September 2004 : 10:13:17
|
that's great, guys! which pages and where are you placing your code? I tried to get my own method going and ended up with a Nested Script Block error |
 |
|
CarKnee
Junior Member
 
USA
297 Posts |
Posted - 23 September 2004 : 10:59:31
|
I am using the Site Integration MOD, so I put my code in the inc_site_header.asp file. |
 |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 23 September 2004 : 11:28:14
|
I've used this code in my sidebar. However, you can put it everywhere you want, as long as you put it BEFORE you display the ad. So, inc_header.asp might be a solution. |
portfolio - linkshrinker - oxle - twitter |
 |
|
MarkJH
Senior Member
   
United Kingdom
1722 Posts |
|
Topic  |
|