[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 04-01-2006, 02:18 PM   #1 (permalink)
NamePros Regular
 
aLeeOnline's Avatar
 
Join Date: Jul 2005
Location: d3sign3r.com
Posts: 474
155.05 NP$ (Donate)

aLeeOnline is a jewel in the roughaLeeOnline is a jewel in the roughaLeeOnline is a jewel in the rough


Lightbulb Is This Possible ?

hi there, im looking for a javascript for my google adsense basically. i want my ads to show up only once per visit. is it possible? if yes kindly tell me here, im sure it will be helpful for many adsense users here.
__________________
Need Killer Graphics? :hmm: d 3 s i g n 3 r . c o m Have a look !
Watch Entourage Online - All Episodes Updated
aLeeOnline is offline  
Old 04-01-2006, 02:58 PM   #2 (permalink)
 
BillyConnite's Avatar
 
Join Date: Jul 2005
Location: Coffs H, Australia
Posts: 3,107
47.00 NP$ (Donate)

BillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant futureBillyConnite has a brilliant future

Wildlife Parkinson's Disease Parkinson's Disease
Quote:
Originally Posted by aLeeOnline
hi there, im looking for a javascript for my google adsense basically. i want my ads to show up only once per visit. is it possible? if yes kindly tell me here, im sure it will be helpful for many adsense users here.
There is a way to do that using cookies I think... It could be done using php sessions also.

Im not too sure on the javascript way. Could I ask though why you only want the ads to show once per visit?
__________________
<?php if(1===1){ $computer="fine."; }else{ $computer="broken."; } echo "Your computer is ".$computer; ?>
BillyConnite is offline  
Old 04-01-2006, 03:46 PM   #3 (permalink)
NamePros Regular
 
aLeeOnline's Avatar
 
Join Date: Jul 2005
Location: d3sign3r.com
Posts: 474
155.05 NP$ (Donate)

aLeeOnline is a jewel in the roughaLeeOnline is a jewel in the roughaLeeOnline is a jewel in the rough


i want that script if anyone can arrange.
__________________
Need Killer Graphics? :hmm: d 3 s i g n 3 r . c o m Have a look !
Watch Entourage Online - All Episodes Updated
aLeeOnline is offline  
Old 04-01-2006, 08:37 PM   #4 (permalink)
New Member
 
Join Date: Feb 2006
Posts: 11
34.75 NP$ (Donate)

nguyenvanthoai is an unknown quantity at this point


It's very easy. I'm not good at JS, so I'll tell you how to do it in PHP.

<?php
if (!isset($_COOKIE['first']){
?>
Your Adsense code goes here
<?
$_COOKIE['first']=true;
}
?>

PS: I haven't tested this yet.
nguyenvanthoai is offline  
Old 04-02-2006, 12:57 AM   #5 (permalink)
NamePros Regular
 
aLeeOnline's Avatar
 
Join Date: Jul 2005
Location: d3sign3r.com
Posts: 474
155.05 NP$ (Donate)

aLeeOnline is a jewel in the roughaLeeOnline is a jewel in the roughaLeeOnline is a jewel in the rough


will i just have to copy and paste it into my page ? im using a webpage with .html or .htm extension, not using php. will it work just by copy pasting this code ? thanks in advance n sorry for such noob questions
__________________
Need Killer Graphics? :hmm: d 3 s i g n 3 r . c o m Have a look !
Watch Entourage Online - All Episodes Updated
aLeeOnline is offline  
Old 04-02-2006, 01:29 AM   #6 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of

Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
May I ask what you would like to show the rest of the time? I am working on a Javascript applet for you.. I just need to know..

- Steve
__________________
I feel old.
iNod is offline  
Old 04-02-2006, 01:58 AM   #7 (permalink)
NamePros Regular
 
Join Date: Mar 2006
Posts: 394
211.38 NP$ (Donate)

sacx13 is on a distinguished road


Lightbulb

Quote:
Originally Posted by aLeeOnline
will i just have to copy and paste it into my page ? im using a webpage with .html or .htm extension, not using php. will it work just by copy pasting this code ? thanks in advance n sorry for such noob questions
if you want to run php in your html files just add in your apache configuration:
AddType application/x-httpd-php .php .phtml .php3 .html


Regards
Adrian
sacx13 is offline  
Old 04-02-2006, 07:55 AM   #8 (permalink)
NamePros Regular
 
aLeeOnline's Avatar
 
Join Date: Jul 2005
Location: d3sign3r.com
Posts: 474
155.05 NP$ (Donate)

aLeeOnline is a jewel in the roughaLeeOnline is a jewel in the roughaLeeOnline is a jewel in the rough


thnx

Quote:
Originally Posted by iNod
May I ask what you would like to show the rest of the time? I am working on a Javascript applet for you.. I just need to know..

- Steve
omg, thanks Steve, well it can show any other html page for the rest of the times like www.mydomain.com/demo.html. my google ads must be shown once per day. thanks a million again buddy
__________________
Need Killer Graphics? :hmm: d 3 s i g n 3 r . c o m Have a look !
Watch Entourage Online - All Episodes Updated
aLeeOnline is offline  
Old 04-03-2006, 12:41 PM   #9 (permalink)
NamePros Regular
 
aLeeOnline's Avatar
 
Join Date: Jul 2005
Location: d3sign3r.com
Posts: 474
155.05 NP$ (Donate)

aLeeOnline is a jewel in the roughaLeeOnline is a jewel in the roughaLeeOnline is a jewel in the rough


iNod ? mate u there ... ?
__________________
Need Killer Graphics? :hmm: d 3 s i g n 3 r . c o m Have a look !
Watch Entourage Online - All Episodes Updated
aLeeOnline is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 11:57 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85