ejabberd - Comments for "change the ordering of the contact list" https://www.ejabberd.im/node/1623 en Example function https://www.ejabberd.im/node/1623#comment-28917 <p>This Erlang function will return true or false depending if a user in our ejabberd server is connected or not:</p> <pre>is_connected_or_not(Username, Server) -&gt; case ejabberd_sm:get_user_resources(Username, Server) of [] -&gt; false; [_|_] -&gt; true end.</pre> Wed, 18 Jul 2007 16:58:19 +0000 mfoss comment 28917 at https://www.ejabberd.im contact list order https://www.ejabberd.im/node/1623#comment-28859 <p>ok<br /> Actually, now i have find a best solution, because we have install a vcard for each user, and i just have to increase an integer on the vcard in a new field.</p> <p>The problem is that i am beginner in Erlang and i don t know how i can know if an user is connect or not. Because with my new appli ejabberd, when an user is getting connect, all the integer of the users is incrementing.</p> <p>Have you an idee please ???</p> <p>thanks,<br /> Paul</p> Tue, 17 Jul 2007 17:18:46 +0000 latin3g comment 28859 at https://www.ejabberd.im The contact list is ordered by your Jabber client https://www.ejabberd.im/node/1623#comment-26177 <p>The contact list is ordered by your Jabber client, I guess. For example, some clients group the contacts by their status (online, away, busy).</p> Fri, 06 Jul 2007 17:48:50 +0000 mfoss comment 26177 at https://www.ejabberd.im