I'd love a module like this, so I hope you can sort out what's not working.

You might want to include a readme.txt or install.txt. I figured it out, but it's good to have this.

I installed it, enabled it on the Modules page, enabled the three blocks I wanted to refresh (checked the two boxes), then click the settings page in Site Configuration. Nothing comes up. Also, the three blocks I enabled aren't refreshing.

CommentFileSizeAuthor
#9 br_block_admin.jpg75.58 KBpermutations
#9 br_block.jpg24.44 KBpermutations

Comments

cozzi’s picture

Same here:

I tried this on one block set to 5 seconds. (This post was the one that triggered me to even look at Settings - which there is nothing in.)

Also, your demo here does not work http://drupalhub.org/en/random

When I found this module I thought, "how cool" and simple! But 2 hours later, I can't get it working :-(

permutations’s picture

I'm going to take a look at the code and see if I can find what's wrong.

aaron’s picture

Assigned: Unassigned » aaron
Category: bug » support
Priority: Critical » Normal
Status: Active » Fixed

the demo page works fine for me. what browser are you on?

regarding settings page: the settings page is empty, because, well, it's empty. i haven't gotten around to that yet :/

the module is still in active development.

however, out of the box, the following should work fine:

1) you go to /admin/build/block, then click on the configure link of a block you want to refresh automatically.
2) check either (or both) the Enable block autorefresh or the Enable block manual refresh
3) set the time (in seconds) for a refresh. (maybe you have it set blank or at 0 right now?)

you can also theme the 'spinner' -- i plan to put in something better than how it is now.

thanks,
aaron

aaron’s picture

based on another issue i just saw, you might need to refresh your menu:

1) make sure you have the latest version of the module
2) update it
3) visit /admin/build/menu for good measure

see if that helps

permutations’s picture

aaron - it doesn't work. I have the latest version of the module - I just downloaded it. I enabled Block Refresh on the blocks I'm interested in, but nothing refreshed. I went to the Block Refresh admin menu, and there are no options - just the save button and the other button.

I tried changing the name of the module (all the function calls) from block_refresh to blockrefresh (no underscore) because a theme I wrote with an underscore in the name stopped working in Drupal 5.x. But this didn't help Block Refresh.

aaron’s picture

Status: Fixed » Active

you have a live page i can look at? you can e-mail it to me (through my contact page) if you don't want to post it

aaron’s picture

with the blocks that are supposed to be active

aaron’s picture

Status: Active » Postponed (maintainer needs more info)
permutations’s picture

StatusFileSize
new24.44 KB
new75.58 KB

My test setup is in a password-protected area that I can't give access to. But I'm attaching two screenshots that show the problem. I'm trying to use Browse Refresh with phpFreeChat blocks. (I just fixed quite a few bugs in phpFreeChat - the version with my changes is here: http://permutations.com/drupal/phpfreechat.php.)

As you can see in the screenshots, Browse Refresh is enabled for the block, but there is no sign of it in the enabled blocks (who is chatting, who is chatting on, and latest from), and also no refreshing happens. The node information you see is from the Devel module. This is the version where I changed all instances of "browse_refresh" to "browserefresh", but it's the same in the original.

I tried your demo site, and it doesn't work for me, either. Clicking the Refresh button does nothing (well, the button changes, but it doesn't refresh), and no automatic refreshing happens. This is in IE7 - I'll try it now in Firefox.

Same thing with Firefox - clicking the Refresh button causes the graphic to animate, but no refreshing. And there's no automatic refreshing after a minute.

Thank you for looking at this.

permutations’s picture

Status: Postponed (maintainer needs more info) » Active
aaron’s picture

make sure you set user access for 'access block refresh content'

aaron’s picture

Status: Active » Fixed

i just realized i'd had that turned off all this time at drupalhub... i'll add a warning about that on the settings page (which will thus also not be blank...)

permutations’s picture

That fixed the problem on your demo site, but it's still not working on my site. I had the permission turned on all along.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.