Forums
I am trying to remove all chatrooms other than public chatroom. I have taken a look at the opigno_chat_app.module but can't get my head around how to remove all groups other than the public chatroom.
I can see the module is querying the ogmembership table and creating an array of groups the user is a member of, but am not sure how best to hard code so only the public chatroom is returned. (by gid, by name, other??)
Many thanks,
Tim
Hi Tim,
Hi Tim,
Inside opigno_chat_app_drupal_chat_users you have a hook_drupal_chat_users.
By default only the Public chatroom exists. What the function does is that it adds the online users that are part of courses or classes that you are part of aswell, and creates rooms for each of those courses/classes. If you simply comment the code between:
$users['rooms'] = array();$users['users'] = array();and return $users;What will happen is exactly what you want. Only the public chatroom will be available.Best regards
In reply to Hi Tim, by James Aparicio
Thanks James. Makes perfect
In reply to Thanks James. Makes perfect by Tim Sparrow
Ok, I am a complete muppet!
Hi Tim,
Hi Tim,
You commented out the return. Remove the return part from beeing commented.
Best regards