Diem plugins syndication

dmWhoIsOnlinePlugin

Fetch online users and guests

Installation

  • In a console, from your project root dir, run:
git clone git://github.com/altrano/dmWhoIsOnlinePlugin.git plugins/dmWhoIsOnlinePlugin  
  • In config/ProjectConfiguration.class.php, add dmWhoIsOnlinePlugin to the list of enabled plugins:
class ProjectConfiguration extends dmProjectConfiguration
{  
  public function setup()  
  {  
    parent::setup();  
 
    $this->enablePlugins(array(  
      // your enabled plugins  
      'dmWhoIsOnlinePlugin'  
    ));  
  • In a console, from your project root dir, run:
php symfony doctrine:generate-migrations-diff  

php symfony doctrine:migrate  

php symfony dm:setup  

After Installation Activate it in filters.yml

Open the apps/**/config/filters.yml
and add the filter.

remember_me:  ~  
  
security:     ~  
...  
dmWhoIsOnline:  
    class:        dmWhoIsOnlineFilter  
...  
dm_init:      ~  

from now user sessions should be stored in database to dmWhoIsOnline table.

Display the widgets on the front

Open the front "Add" menu, and drag&drop a dmWhoIsOnline widget somewhere on your site.

Different ways to display

// TODO

Todo's

show how many users are on current page.

    Add a comment

    Create an issue
    Impossible to fetch issues for this plugin.
    Impossible to get this plugin changelog.
    See more commits

    dmWhoIsOnlinePlugin, created on June 19, 2010 by altrano, used by 95 projects

    Fork Diem on GitHub