anonymous rooms with visitors and participants

8 views
Skip to first unread message

sofia

unread,
Apr 16, 2010, 10:06:03 AM4/16/10
to speeqe
Hi Nathan,

Is there anyway for the webclient to decide if the user should be
logged in as visitor or participant? Let's say by default all users
are participants in anonymous rooms but I want some, defined by my
app, who should be logged in as visitors. Is there anyway to do this?

Basically if users are logged in my site then they should enter the
room as participants, if not they should enter the room as visitors,
so that they can see past history and if possible current
conversation.

If this isn't possible, how would I go about about fetching the logs
for a given room and displaying them (even if the room wasn't
configured as persistent but still has some users in it so still has
some history).

This is a really important feature for my implementation of speeqe.
Can you help? Please.

Thanks thanks

Sofia

--
You received this message because you are subscribed to the Google Groups "speeqe" group.
To post to this group, send email to spe...@googlegroups.com.
To unsubscribe from this group, send email to speeqe+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/speeqe?hl=en.

Jack Moffitt

unread,
Apr 16, 2010, 11:52:07 AM4/16/10
to spe...@googlegroups.com
> Basically if users are logged in my site then they should enter the
> room as participants, if not they should enter the room as visitors,
> so that they can see past history and if possible current
> conversation.

I don't think you want to do quite this, as visitors have no speaking
privileges. Although perhaps you mean to "lock out" people not using
your client?

Both participant and visitor are roles in MUC, meaning they are
temporary assignments, not permanent ones. There are two ways you
could go about implementing this.

1) Write a bot that sits in the room with admin privileges and
responds to requests for participant status and grants them. Then the
webclient can be modified to send such a request after joining one of
your rooms. Or perhaps the bot can look for signs that the user is
using your speeqe client.

2) Write a MUC plugin to do the job the bot above would do. You'll
probably need to use Palaver as your chat server, as I don't think
ejabberd's mod_muc is easily extensible in this way.

jack.

sofia cardita

unread,
Apr 16, 2010, 12:03:50 PM4/16/10
to spe...@googlegroups.com
No, That's exactly what I want to do. If they're not logged in they can see (a user such as anonymmous12345 would be used) but not participate and that role would last as long as they're in the room. Then they would login in the site, the page would refresh and it would log them in as their user in the site.

Frankly I have no idea how I would start to write a bot that would automatically join all rooms (participants can create rooms as well) and do that.

Is there any way to display the rooms logs then?
Reply all
Reply to author
Forward
0 new messages