I have installed the banner module (HEAD in Drupal 5.1). I have a banner group of 5 banners created and i want to rotate between the bannerswith each pageview.

My problem is that te banners only rotate when the browser is refreshed wit F5. The banners does not rotate when users are clicking in the site and visiting differt pages whitin my site. Therefore instead of 20 bannerviews, the banner module only counts 1 bannerview.

- The banner is placed as a block in a sidebar. It seems the sidebar is not refresed when users are clicking in my site.
- Or maybe it had something to do with the chachehandler. I've tried both the database and the file handler.

Comments

drupalworld’s picture

same here :)
drupalworld

nejcmenard’s picture

Hi!

I have the same problem. Made a block that includes random image from the php script and the image is the same when clicking links, changes only on full browser refresh (F5)...

Please, any advice would be helpful...

REgards to all,

N.

Anonymous’s picture

It's a caching problem. The browser caches the dynamically generated javascript that is supposed to solve the problem of banner rotation with drupal's page cache on. To completely solve the problem, the caching should be rewritten from scratch.

A simple solution for this (if page caching is off) is to insert this line in the file banner.module after line 960 (in the $qry array):
'rnd' => rand(1, 100),

What this does is append a random number at the end of each request for the javascript. That prevents the browser from caching it.