Closed (fixed)
Project:
Banner
Version:
4.6.x-1.x-dev
Component:
Banner Ads
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2005 at 13:57 UTC
Updated:
2 Apr 2006 at 10:15 UTC
Jump to comment: Most recent file
Comments
Comment #1
batterhead commentedI modified banners.module to change the
&to & - that did not seem to work. I added a new banner and that one woked using a very clean and simple URL (the other is a linkshare URL). So... then I modified the banner that was now working to use the linkshare URL and that worked... so I deleted the first banner I made and now all seems fine. No clue why it did not work the first time. *shrug*Comment #2
smunt commentedI'm having the same problem.
Drupal version: 4.6.5
PHP version: 4.3.10
It works with this patch though:
--- banner_db.orig.php 2006-01-05 12:13:11.000000000 +0100
+++ banner_db.new.php 2006-01-05 12:13:14.000000000 +0100
@@ -8,15 +8,15 @@
include_once "includes/common.inc";
list($ballot, $banners) = _banner_get_struct();
- $max = count($ballot[$pos]) - 1;
+ $max = count($ballot[0][$pos]) - 1;
if ($max > 0) {
$random = mt_rand(0, $max);
}
else {
$random = 0;
}
- $id = $ballot[$pos][$random];
- $banner = $banners[$id];
+ $id = $ballot[0][$pos][$random];
+ $banner = $banners[0][$id];
$banner->views++;
Or download my version from: http://qux.nl/banner_db.php.txt
Comment #3
pfaocleConfirmed, this patch works for me, with the latest HEAD checkout (NOT the latest bundled 4.6.0 version, which doesn't seem to work at all).
Comment #4
__Tango commentedYou don't want to hardcode [0] because that's the tid.
You should pick out the $tid from the request. Here's a diff (also described in http://drupal.org/node/36805).
Comment #5
igrcic commentedyes, when i make a patch banner shows up! but they are not rotating! only first banner on list is showing up!! anybody else can confirm that they are rotating?
Comment #6
igrcic commentedIt ok, works now! messed up something :(
Comment #7
hexenxp05@drupal.org.es commentedGood Work It!
Funciono... jaja
Comment #8
pfaocleComment #9
wulff commentedSlightly modified version committed. Thanks!
Comment #10
(not verified) commented