Anyway to detect popups? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Other (
https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (
https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Anyway to detect popups? (
/showthread.php?tid=147404)
Anyway to detect popups? -
MWF2 - 12.05.2010
Here's a question for all you smart people.
Is there a way to detect how many times a user clicks a popup? So say MWF2 clicked = 1000
I'm trying to make a donation system for users who cannot donate via paypal, if they click the add that many times, then they can get donate benefits
Re: Anyway to detect popups? -
MWF2 - 12.05.2010
Anyone?
Re: Anyway to detect popups? -
Kmeto - 12.05.2010
You can try to make some PHP counter and add it on that pop-up site. But I don't know how to make it. Try ******.
Re: Anyway to detect popups? -
Kyosaur - 12.05.2010
Hmmm the only way i can think of, is make a unique window full of advertisements (nothing else on it, besides maybe some text / a background image). Then just check to see if the visitor clicked a link using javascript (thinking about it logically, there's no way php is capable of this).
Since the ads are the only links on the page, if someone clicked a link, its obviously an advertisement.