Author |
Topic  |
jaboon
Starting Member
1 Posts |
Posted - 23 June 2007 : 22:52:48
|
quote: Originally posted by corinaw
Wow, Now I have a cup of coffee in me and the old brain is working a bit better.
I changed to this code in the header and footer (DUH!) and it works great. Ads will only display in the 4 files below and I don't have to exclude multiple files It should be a little easier for processing too.
'########### 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
BRILLIANT!!! THANKS!!! |
 |
|
BigRigTom
New Member

United States
56 Posts |
Posted - 12 December 2007 : 12:26:57
|
quote: Originally posted by corinaw
Wow, Now I have a cup of coffee in me and the old brain is working a bit better.
I changed to this code in the header and footer (DUH!) and it works great. Ads will only display in the 4 files below and I don't have to exclude multiple files It should be a little easier for processing too.
'########### 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
I for one am sure glad you had that cup of coffee. As another poster said "BRILLIANT"
Man I read and read trying to figure this out and you simple one page solutions just made my day. Works fantastically! THANKS!
To that other poster and newbies...to asp
In the footer you want to put this bit of code after the "/html" at the bottom. & Yes you must create the "_inc_google_adsense.asp" file using a plain text editor (like note pad) you cut and past the adsense code and you may want to inclose that adsense code in the html center tags if you want your ads to center on the page. |
Tom http://hardingersystems.com/BAT-forum/ |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 12 December 2007 : 12:30:57
|
Actually, it must be placed somewhere before your closing body tag. If you place it after the closing html tag, then it's not, strictly speaking, part of your page.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
BigRigTom
New Member

United States
56 Posts |
|
BigRigTom
New Member

United States
56 Posts |
Posted - 20 December 2007 : 19:07:27
|
I used the inc_google-ads.asp technique in my inc_header.asp It was working fine for several days....or....at least I thought it was.
Now I am having some kind of issue with my Google Ads. They sometime appear at the top and the 1 sec later disappear. If I refresh the page they come back and stay.
Any idea what might be causing that? |
Tom http://hardingersystems.com/BAT-forum/ |
 |
|
alltp
Starting Member
36 Posts |
Posted - 20 December 2007 : 21:00:22
|
Tom,
I checked out your site and did not have any problems with seeing the ads at the top and bottom. They did not disappear at any time and refreshed when I switched topics.
John
|
John Hill www.alltp.com www.tabletpcbuzz.com www.tabletpcbuzz.com/3dbuzz |
 |
|
BigRigTom
New Member

United States
56 Posts |
Posted - 21 December 2007 : 20:20:09
|
Thanks Alltp, It is sort of a strange thing. Sometimes it happens and sometimes it doesn't.
I just caused it again several times but am not real sure how. I went to this url: http://hardingersystems.com/BAT-forum The ads show fine and stay visible.
Then click the "Home" link and the ads will appear for a few seconds then disappear so I went into the Admin and added "default.asp" to the path of the above url and it seems ok when I click the home link (the ads stay visible)...but...
When I select a topic like in this url: http://hardingersystems.com/BAT-forum/forum.asp?FORUM_ID=2
The ads again flash on for a second then disappear.
If you then click on the "BAT LOGO" the page will refresh and the ads come back visible.
It must have something to do with where I am placing the code in the inc_hearder.asp
I also think I need to go over the installation of the 5 in 1 mod and maybe re-install that in order again because I am also missing parts of the original install?@%%@&^^%$%(&*
It is just me, I am pretty sure.
Thanks again for trying to help. |
Tom http://hardingersystems.com/BAT-forum/ |
Edited by - BigRigTom on 21 December 2007 21:03:57 |
 |
|
mdelcour2000
Junior Member
 
United States
133 Posts |
Posted - 22 December 2007 : 13:53:16
|
Why don't you just use the Site Integration Mod, that's what I did and then pasted the "Adsense Code" in the inc_site_footer file. It was very easy to do. |
http://lacledeforum.com/
"Never get so busy doing the work of the kingdom that you forget who the King is" |
 |
|
BigRigTom
New Member

United States
56 Posts |
Posted - 24 December 2007 : 00:03:20
|
I finally figured out the problem with the pages not displaying properly and it had nothing to do with my .asp files.
I had picked up some kind of virus or trojan or whatever the A$$hole who wrote it called it.
It was somehow affecting my browser and that in turn was causing the display goofyness. MAN! I am so glad to have finally resolved that.
Everyone should watch out for webpages that request that you install an ActiveX Component...I am pretty sure that is how my system picked up that monster to begin with. A web site starts popping up on top of everything and telling you to down load an ANTI VIRIUS program called either SPY SHREDDER or DR. PROTECTION or something similar. They are all BOGUS! DON'T DO IT!
I finally got rid of it by restoring my system to a few days before I noticed the problem. NON of the real anti virus programs I have could fix the problem. |
Tom http://hardingersystems.com/BAT-forum/ |
 |
|
Topic  |
|