Author |
Message |
shmk
Worker


Joined: Dec 21, 2004
Posts: 116
|
Posted:
Thu Apr 13, 2006 7:07 am |
|
Someone know a script/method that with cookies/php hide a link for 24 hours after a click ? |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Thu Apr 13, 2006 9:07 pm |
|
Do you mean to hide it from the visitor who clicked on it? Haven't heard of that... |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
shmk

|
Posted:
Sat Apr 15, 2006 3:02 am |
|
kguske wrote: | Do you mean to hide it from the visitor who clicked on it? |
Exactly  |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Sat Apr 15, 2006 7:05 am |
|
I have only seen this in an app called BannerAdsNew. The app is for displaying abnners/text links/ affiliate links etc and they can be configured to show based on IP, geography, day of week, wekk ends only, time interval etc.
I think this may be overkill for what you had in mind BUT it can be used to display just about any image type including flash, includes extensive 'click' monitoring and be used to 'feed' banners/links to multiple sites from the single installation of the app. |
|
|
|
 |
shmk

|
Posted:
Mon Apr 17, 2006 3:37 am |
|
I cannot find a "BannerAdsNew" are you talking about "phpAdsNew" ? |
|
|
|
 |
Guardian2003

|
Posted:
Mon Apr 17, 2006 4:55 am |
|
Yes thats the one - sorry for the confusion. |
|
|
|
 |
shmk

|
Posted:
Wed Apr 19, 2006 2:54 am |
|
Argh, that isn't supported on my host
This is the list of banned programs on my host:
ImageFolio
nph-proxy.cgi
phpBannerExchange
phpAdsNew
"spchat" for phpnuke
webmail module for phpnuke
Mambo Open Source with module banner and statistics
Picostreamer
4Images Gallery
torrent files
ado stream |
|
|
|
 |
shmk

|
Posted:
Wed Apr 19, 2006 4:10 am |
|
I found this script:
http://javascript.internet.com/cookies/remove-ads.html#source
I have insert the HEAD on includes/.../custom_header.php and BODY on theme/.../forums/overall_header.tpl
The banner shows correctly but doesn't remove it after click... I think that probably have problem with read/write the cookie, someone can help me ? |
|
|
|
 |
shmk

|
Posted:
Mon Apr 24, 2006 2:01 am |
|
I tried some changes but no good news  |
|
|
|
 |
shmk

|
Posted:
Wed May 03, 2006 8:06 am |
|
Another way: "using $_SESSION".
Someone ever used it ? PHPNuke can make me "work" on superglobals variables ? |
|
|
|
 |
shmk

|
Posted:
Fri May 05, 2006 10:26 am |
|
|
|
 |
shmk

|
Posted:
Mon May 08, 2006 3:21 am |
|
I found a bug in the original script: when you are logged as admin the script doesn't funciont as wanted.
Why ? Because the script creator searching for a cookie string within the string 'ad' (for advertising) but when you logged as admin the cookie string 'ad' is in 'admin' too :p
I never programmed in javascript so if someone have a fix for this tell me.  |
|
|
|
 |
|