SocialEngine 4: Change Online Widget Refresh Time

By default the members online list cache is set to 20 minutes, that means, a user can go offline and remains in the members online widget for 20 minutes. It is annoying and confusing, because, if you use the chat footer, you see that the member is online but not showing in chat, he might have left. The list should be refreshed by ajax, but since it´s not, here´s the controller:

application/modules/User/widgets/list-online/Controller.php

->where($onlineTableName.’.active > ?’, new Zend_Db_Expr(‘DATE_SUB(NOW(),INTERVAL 20 MINUTE)’))

Looking for quality SocialEngine Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , , , , , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Andrew Cross

Hi, I'm Andrew. A am a 26, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

2 Comments on SocialEngine 4: Change Online Widget Refresh Time

  1. Sachin Korgaonkar says:

    Hi Andrew,

    Thanks for this piece above. It was helpful.
    I am also struggling to make total count of Online members to 100. Currently it is showing correct no. of online members. However only 10 members’ and their photos are available on homepage.

    Where can I change it to make 100 members.

    Please help.

    Thanks and regards,
    Sachin K

Leave a Reply

Your email address will not be published. Required fields are marked *


5 × = 30

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>