Active
Project:
Javascript Tools
Version:
master
Component:
Dynamicload
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
12 Feb 2007 at 05:38 UTC
Updated:
20 Mar 2007 at 18:53 UTC
Jump to comment: Most recent file
I'm working on two things.
First, ability to load blocks, along with a list of available blocks for the current user on the given page.
Second, a personalized dashboard. I'm picturing this as a configurable ajax-based view of the site, where a user can select which blocks to display, load new ones, and load content in place by clicking on blocks. Selections are saved via the $user object, or sessions if user isn't logged in, so that returning to the page a user will pick up where they left off.
Attached is a very rough sketch of some of the code needed. I haven't begun yet on the js.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | dynamic2.jpg | 45.74 KB | jacauc |
| #5 | dynamic1.jpg | 47.94 KB | jacauc |
| jstools-dynamicload-blocks.patch | 4.9 KB | nedjo |
Comments
Comment #1
nedjoCommitted a first round of changes to trunk/head, including support for autorefreshing blocks, see http://drupal.org/node/73946. This may have broken some existing functionality. I'll work on fixing things up in the next bit.
Comment #2
jacauc commentedI have tested the HEAD version of jstools on 14 Feb.
I enabled the dynamicload module and also downloaded/enabled the pagearray module.
The module does not have a .install file, so I created some DB tables in my test environment similar to what I "think" the DB tables should look like.
The Who's online block has now been enabled, and it works fine. (I changed both occurrences of "5000" in dynamicload.js to 60000 to make the blocks only refresh every minute (my preference))
Three questions though:
1) Could we have functionality to set the refresh time of the particular block in the block configuration page? (so that each block can have a different refresh timeout.
2) In firefox, when the block refreshes, it fades out and then fades back in. Is this firefox functionality or is it a function in jstools that can be turned off somewhere?
3) Can you commit a .install file for this module please?
Other than that, I am absolutely thrilled! :D this is wonderful!!!
THANKS!
jacauc
Comment #3
nedjoThanks for the suggestions and for noting I'd forgotten to commit the install file.
I've added a configuration option and dropped the fade effect.
Comment #4
jacauc commentedWow, that was quick! Will check it out. Thanks! :D
Comment #5
jacauc commentedWorks great! Thanks!
One more request (if I'm allowed to):
Could we have a refresh setting on the block configuration instead of a global setting? (per-block refresh schedule)
Who's online can refresh let's say every 2 mins, but recent comments every 30 mins. Possible?
It's running fine on my site http://www.dieinter.net for the who's online block and the gallery block (once logged in)
I have also noticed that, at times, when there's let's say 4 users online, the block is displayed correctly, but when another user signs in, the block below it's text will go outside of the block's boundaries
I am attaching a "before" onto this post, after will be in the next post.
Is this a problem with my theme? (zen)
Comment #6
jacauc commentedafter..
Comment #7
jacauc commented... the block boundary issue I mentioned above seems to only happen in IE. (IE7 in my case)
Comment #8
mehran007 commentedthanks for sharing this code. Could you guys post a tutorial on how to install this. I want to install it on free php hosting site .Do you guys think it will work on php supported site or do i need any other thing installed on hosting server?Looking forward for a reply.Thanks
Comment #9
dkruglyak commentedHow about a 4.7 backport?