Re: [prosody-users] Users on server visible to all users

210 views
Skip to first unread message

Sam Roberts

unread,
Mar 21, 2013, 5:09:18 PM3/21/13
to prosod...@googlegroups.com
On Thu, Mar 21, 2013 at 12:44 PM, <phpjob.b...@gmail.com> wrote:
> I don't want to use groups or sharedgroups.txt file... just want a default
> feature where all the users who are connected or online should be visible to
> each other. I mean I don't need groups or sharedgroups.txt functionality.

We are manually adding each user to the:

/etc/prosody/groups.txt

After they register. Its a bit painful, if there was an easier way I'd
like to know, too.

Sam

Matthew Wild

unread,
Mar 21, 2013, 5:24:09 PM3/21/13
to prosod...@googlegroups.com
There isn't at the moment. Most people requiring this (or similar)
functionality are auto-generating the groups file (which isn't a
terrible solution if you're a unix kind of person...).

We have a related bug open about why we can't do this easily in a
plugin: http://prosody.im/bugs/167

It may be slightly easier in 0.9 to write a plugin for the specific
case where everyone is to see everyone else, but a more general
solution won't be available until 0.9+1 at least, sorry.

In the meantime, generating groups.txt is your best option. If you are
using the default storage backend, you might find mod_listusers
helpful, you can simply pipe the output to a file:
https://groups.google.com/d/msg/prosody-users/SNW9jgbpgzY/7rSxpS8xk-8J

Hope this helps,
Matthew

phpjob.b...@gmail.com

unread,
Mar 22, 2013, 9:45:03 PM3/22/13
to prosod...@googlegroups.com
Hello Matthew,
 
     Thanks you very much for the inputs & prompt reply. This support really makes prosody to grow. Keep it up.
 
As mentioned earlier I am using Prosody 0.8.2 with jappix mini on CentOS... I am having weird problem. In the prosody, when I add say around 3000 users in sharedgroups.txt  & in mysql db using "prosodyctl register username domain password" 
 
In IE8, I get the attached message saying  "Stop running the Script" - "Script of this page on IE  is running slow"  when I have 3000 users on sharedgroup.txt while when I have
3 or 4 users on sharedgroups.txt file, it gives NO such message.  It works fine on IE9, FF, Chrome, & Safari.
 
Please advice if you have any pointers....
 
Rgds,
untitled.zip

Matthew Wild

unread,
Mar 23, 2013, 5:50:05 AM3/23/13
to prosod...@googlegroups.com
On 23 March 2013 01:45, <phpjob.b...@gmail.com> wrote:
> Hello Matthew,
>
> Thanks you very much for the inputs & prompt reply. This support really
> makes prosody to grow. Keep it up.
>

You're welcome :)

> As mentioned earlier I am using Prosody 0.8.2 with jappix mini on CentOS...
> I am having weird problem. In the prosody, when I add say around 3000 users
> in sharedgroups.txt & in mysql db using "prosodyctl register username
> domain password"
>
> In IE8, I get the attached message saying "Stop running the Script" -
> "Script of this page on IE is running slow" when I have 3000 users on
> sharedgroup.txt while when I have
> 3 or 4 users on sharedgroups.txt file, it gives NO such message. It works
> fine on IE9, FF, Chrome, & Safari.

My guess is that it happens while Jappix is processing the roster.
Perhaps IE8 was less efficient at XML handling or something?

Maybe someone in the Jappix community may have experienced something
like this before. Though it's no surprise to me that clients fail with
thousands of contacts, many (non-web) struggle to reach 1000 without
slowing down.

Regards,
Matthew
Reply all
Reply to author
Forward
0 new messages