I'm fairly new to Drupal, so I might be missing something, but... I have a sidebar with a Quotes block that is set up to display random quotes with 15 second interval rotations. Unfortunately, one quote shows all the time until I refresh the page in the browser (or going to the Contact form page seems to do it).

At first I thought it was just a timed issue, but I think the random part itself isn't working.

Any ideas? Thanks.

Comments

FareThoughts’s picture

I'm sorry, I should have noted that I have tried with page caching turned off and turned on. And I have this problem for both anon and logged in users.

nancydru’s picture

Status: Active » Closed (works as designed)

Perhaps we weren't clear enough about that. That interval is the least amount of time before a new quote will be generated, but it will only be generated on a page build. It is not a jQuery interval to automatically refresh.

FareThoughts’s picture

Ah! I see now. Thank you.

You don't happen to know if there is a way to do that, do you? I've seen it on sites before, but I don't know what they were running as it's been a while.

Thanks again for the help and information.

ctmattice1’s picture

It can be done. It would require jquery, it's fairly easy to do with word press so wouldn't be too hard with drupal. I have thought about it for 7.x might consider a backport to 6.x

FareThoughts’s picture

FWIW, I was able to get exactly what I wanted by using your module for the quotes and then the Block Refresh module (http://drupal.org/project/block_refresh) to create the cycle. I had to set the quotes to random and no time interval (blank) and then set the block refresh to the number of seconds for the refresh. So far, it's a great combo.

nancydru’s picture

Title: Random Quotes with Timed Update Cycle Not Working » Support Block Refresh Module
Category: bug » feature
Priority: Major » Normal
Status: Closed (works as designed) » Active

That sounds like a great module to complement Quotes.

Charles, let's look more into that module and see if we maybe can rip some code out and point to that module for refreshing. I'm all for making things simpler.

FareThoughts’s picture

I would love to see that implemented, but I spoke too soon. For anonymous users, the block refreshes, but the content (i.e. the quotes) pulls only once. After that, the block just refreshes without a new quote. I have reported this here: http://drupal.org/node/1197072.

ctmattice1’s picture

Have you check the permissions with the block refresh module for authenticated and anonymous? Other possibilities could be cache settings for anonymous users.

FareThoughts’s picture

Thanks for the ideas.

I have the permissions for Block Refresh and Quotes enabled for anonymous users.

For the caching, I do have page caching turned on and block caching turned off. Minimum cache lifetime is . Expiration of cached pages is 1 hour.

I also have compress cached pages and aggregate JavaScript files turned on. I had to turn off aggregate and compress CSS a while back, but I don't exactly remember what was going funky.

Do I have something set wrong?

ctmattice1’s picture

Everything looks ok but you might want to try disabling the cache though and see if that clears it up. If if does and your site doesn't get a tremendous amount of visitors or you have a hosting account where the extra processing doesn't slow the page rendering then you may want to leave cache disabled.

sethosii’s picture

Version: 7.x-1.x-dev » 6.x-1.42

hello i have problem with a module block refresh, i just config this module and i set in the block the refresh time
, but no refresh the block, in my block i use ana script wich run random image from my web, the script is ok but i need refresh the block only for change image because refresh all page is not very good, my web
www.sucreccu.com/node/1
urgent help me please
thanks a lot Maurice

ctmattice1’s picture

Version: 6.x-1.42 » 7.x-1.x-dev

Please do not change version tag, create a new issue for this, however, when checking your site I do not see the quotes module. If you are experiencing problems with only the block refresh module please post your issue there.

Changing version back to 7.x.1.x-dev