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

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Google Adsense
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 8

sr_erick
Senior Member

USA
1318 Posts

Posted - 18 February 2004 :  00:28:00  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
That website doesn't work for my adsense stats for some reason. It works witht he sample ones but not mine.




Erick
Snowmobile Fanatics

Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 23 March 2004 :  14:20:51  Show Profile  Visit Ryan's Homepage
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
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 23 March 2004 :  15:47:09  Show Profile
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.
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 23 March 2004 :  18:54:46  Show Profile  Visit MarkJH's Homepage
Ryan, I just hardcoded the AdSense code into my forum, topic and default.asp pages. Works a treat.

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 23 March 2004 :  21:52:27  Show Profile  Visit Ryan's Homepage
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
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 23 March 2004 :  23:57:41  Show Profile  Visit Gremlin's Homepage
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
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 24 March 2004 :  02:23:17  Show Profile  Visit MarkJH's Homepage
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/
Go to Top of Page

Deech
Starting Member

2 Posts

Posted - 18 May 2004 :  00:15:37  Show Profile
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!
Go to Top of Page

realhorrorshow
Starting Member

United Kingdom
31 Posts

Posted - 23 September 2004 :  09:22:13  Show Profile  Visit realhorrorshow's Homepage
I'd love more info on how/where to put the code too.
Go to Top of Page

CarKnee
Junior Member

USA
297 Posts

Posted - 23 September 2004 :  09:43:29  Show Profile  Visit CarKnee's Homepage
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
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 23 September 2004 :  10:03:12  Show Profile  Visit MarcelG's Homepage
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
Go to Top of Page

realhorrorshow
Starting Member

United Kingdom
31 Posts

Posted - 23 September 2004 :  10:13:17  Show Profile  Visit realhorrorshow's Homepage
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
Go to Top of Page

CarKnee
Junior Member

USA
297 Posts

Posted - 23 September 2004 :  10:59:31  Show Profile  Visit CarKnee's Homepage
I am using the Site Integration MOD, so I put my code in the inc_site_header.asp file.

Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 23 September 2004 :  11:28:14  Show Profile  Visit MarcelG's Homepage
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
Go to Top of Page

MarkJH
Senior Member

United Kingdom
1722 Posts

Posted - 01 October 2004 :  14:25:25  Show Profile  Visit MarkJH's Homepage
Very nice piece of code, Marcel.

Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Go to Top of Page
Page: of 8 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07