Does this support the Who's online block?

mikeytown2 - June 29, 2009 - 23:48
Project:Ajaxify Regions
Version:6.x-1.0
Component:Miscellaneous
Category:feature request
Priority:minor
Assigned:Unassigned
Status:active
Description

I might be able to support the Who's online block. This is only if I can get it so it uses 1 ajax transaction for all boost extra's; use JSON (getJSON, json_encode). Would allow for jQuery to update mutiple divs with one request. I would also change drupal's block output from this
There is currently %members and %visitors online.
is this
There is currently %users online.

I think this is the only other core "feature" that relies upon core stats.

#1

mikeytown2 - June 30, 2009 - 00:46

Store json data in database if using this
http://api.drupal.org/api/function/drupal_to_js
since it's only available in a full bootstrap.

Getting any content as JSON

Have a loop in jQuery that gets the div's ID from JSON, see if it exists, and updates that div's contents with what was returned. JSON object has ID and DATA for each div that needs to be updated.

#3

mikeytown2 - July 29, 2009 - 21:33

Once again here is the simple way to do this...

<?php
include_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

$block = module_invoke('user', 'block', 'view', 3);
print
$block['content'];
?>

http://api.drupal.org/api/function/user_block

#4

mikeytown2 - August 10, 2009 - 00:31
Status:active» won't fix

Marking this as won't fix. Been thinking about this and a ajax block module is whats needed.
http://groups.drupal.org/node/24825

#5

mikeytown2 - August 26, 2009 - 18:32
Title:Support the Who's online block» Does this support the Who's online block?
Project:Boost» Ajaxify Regions
Version:6.x-1.x-dev» 6.x-1.0
Component:Core compatibility» Miscellaneous

#6

mikeytown2 - August 26, 2009 - 18:38
Status:won't fix» active
 
 

Drupal is a registered trademark of Dries Buytaert.