28, May 2012

Pop ups+ adsense.. - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Pop ups+ adsense..
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Pop ups+ adsense..  (Read 1051 times)
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 160
1052 credits
Members referred : 1



« on: Feb 16, 2007, 10:52:51 pm »

After an email I sent to google.com about pop ups ,answered me that I could add up to 5 pop ups per user..
Ok..I think 5 pop ups is ok but could someone help me how could I do that with php?
I mean to set a limit of 5 pop ups per user.
I will really appreciate your help Smiley
Global Moderator
Internet Junkie
*****
Gender: Male
Posts: 1807
9006 credits
Members referred : 6



« Reply #1 on: Feb 17, 2007, 12:02:17 am »

You could store the IP address of each visitor and count the number of pop ups you have showed each within a certain timeframe. You could quite easily add the pop up counter to my 'visitors online' counter found here


Last blog : Are You Stumbling Yet?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #2 on: Feb 17, 2007, 12:37:33 pm »

Storing user's ip and hold some kind of "statistics" on that can produce some extra overhead, but it is the most accurate way to do this.

The easiest is to to this :

Code:
<?php
session_start
();
$_SESSION['popUpsGot']++;
echo 
$_SESSION['popUpsGot']>6?'':'POPUPCODE';

You may replace the word POPUPCODE with the popup javascript code.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Community Supporter ?
World Wide Whale
***
Gender: Male
Posts: 160
1052 credits
Members referred : 1



« Reply #3 on: Feb 18, 2007, 08:36:29 pm »

Thank you very much for your help Smiley
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6031
Tags : pop ups adsense Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Pop ups+ adsense..
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 05:03:33 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.