Joined: Sep 30, 2004 Posts: 103 Location: New Jersey
Posted:
Tue Oct 10, 2006 9:00 pm
I've been looking into this on my site:
Only registered users can see links on this board! Get registered or login to the forums!
Polls: The Poll Results use a header location redirect and never completes. Firefox, IExplorer both yield same result. My members all say the same (e.g., it's not my ISP, firewall if it happens to all.
Banners:
Banners don't open.. banners.php has very simple code for op = click. Header location again. New window opens: Firefox timesout and tries to open localhost, IExplorer just dies.
Wondering what can be the issue... I don't see this as a particult PHP Nuke version issue, as banners.php and poll results code hasn't changed.
Also, when I run local version with Apache/MySQL I have no issues with re-directs...only on hosted site (sorry Gaylen!)
Joined: Aug 29, 2004 Posts: 9133 Location: Arizona
Posted:
Wed Oct 11, 2006 6:40 am
Try something here. Either comment out NukeSentinel in mainfile.php, or turn it off temporarily (depends on your NS version) and quickly check to see if it works. I want to rule out the extra NSNST_FLOOD session id that is being tagged onto the end of the link.
If that works, you may want to consider upgrading to NS 2.5.02, which I think no longer appends that to the URL string (not certain, but an educated guess).
Joined: Sep 30, 2004 Posts: 103 Location: New Jersey
Posted:
Wed Oct 11, 2006 7:57 am
Thanks, but it's definitely not NS.
NS doesn't consistently append the Flood URL, so I've seen clean/clear URLs.
Note: All my banners go through LinkShare which resolves to LinkSynergy, but they are indicating no problems, and when I run a local version of my site, my clicks open fine into the banner sites.
Since all the banners execute index.php op = click here is my code...perhaps it's something there?
====
if (isset($op) AND ($op == "ad_click") AND isset($bid)) {
$bid = intval($bid);
$sql = "SELECT clickurl FROM ".$prefix."_banner WHERE bid='$bid'";
$result = $db->sql_query($sql);
list($clickurl) = $db->sql_fetchrow($result);
$clickurl = filter($clickurl, "nohtml");
$db->sql_query("UPDATE ".$prefix."_banner SET clicks=clicks+1 WHERE bid='$bid'");
update_points(21);
Header("Location: ".addslashes($clickurl));
die();
}
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum