Download & Extend

Does this support the Who's online block?

Project:Ajaxify Regions
Version:6.x-1.0
Component:Miscellaneous
Category:feature request
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

Comments

#1

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.

#2

#3

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

Status:active» closed (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

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

Status:closed (won't fix)» active

#7

Status:active» fixed

Ajaxify regions should support this without issue. Please test and if you experience issues, reopen. Thanks!

#8

Status:fixed» closed (fixed)

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

nobody click here