| Re: banner problem? |
| by RachelVirago on 2005/2/27 22:10:30 Sorry if I'm restateing the question here but the code was a bit dense for me I'm not that savvy with http but trying to learn. Problem I am chasing in a nutshell is why are clicks not counted when html code is used instad of an image and url. thats my problem as it's a drag to keep logging into my affiliate control panel to see how the banners are doing. I also have a client who requires the click to come from my site root or an error is generated not a hit. we have a nice php page in root that deals with this, it was written by my ex partner and again I don't fully understand the code but happy to share it here if anyone has THAT problem. |
| Re: banner problem? |
| by Herko on 2004/7/19 13:30:37 The banner URL looks like this: https://xoops.org/banners.php?op=click&bid=22 The banners.php file, click operation invokes the clickbanner($bid) function. That function looks like this: le="color: #000000"><?php function clickbanner($bid) { global $xoopsDB; $bid = intval($bid); if ($bid > 0) { if (xoops_refcheck()) { if ($bresult = $xoopsDB->query("select clickurl from ".$xoopsDB->prefix("banner")." where bid=$bid")) { list($clickurl) = $xoopsDB->fetchRow($bresult); $xoopsDB->queryF("update ".$xoopsDB->prefix("banner")." set clicks=clicks+1 where bid=$bid"); header ('Location: '.$clickurl); } } } exit(); } As you can see, the browser is pointed to the new location using the header ('Location: '.$clickurl); code. So, you'll have to change that, or look for a way to set the header location to use the same browser window as it is currently using. Now I've found this tidbit of info, but it is for apache only: Quote:
I hope this helps. Herko |
| Re: banner problem? |
| by hrac on 2004/7/19 13:12:40 I think there is no comment for this one.
|
| banner problem? |
| by hrac on 2004/7/18 12:11:20 Hello, I have a banner problem: I want to have a banner, that when I click it does not open a new window, just replace current one like _top option <a href> tag. But when I don't use USE HTML on banner it opens a new window. When I use HTML code in banner <a href=... taeget=_top><img src=....></a> it does not count clicks. Is there any solution for this. Thanks regards |