Have been playing with PHP to add users to Wildfire, that works just fine. However, I was unable to allow them to use the conference room (groupchat) without restarting wildfire.
Looking through the plugins I found UserService. Now let’'s assume I would add the following to it:
import org.xmpp.muc.JoinRoom
and add
joinRoom = new JoinRoom(email, name_of_room/username);
component.sendPacket(joinRoom);
to:
public void createUser(String username, String password, String name, String email)
throws UserAlreadyExistsException
{
userManager.createUser(username, password, name, email);
putting it somewhere here.
}
Would that work, or should I feed it name_of_room/username as one string?
But also, if I would feed users via something like this, would Wildfire allow them to join the room immediately or would I still have to restart Wildfire? Access is limited to users who have been granted access.
Before I try to figure out how to compile it I would appriciate a word of advice… Being new to java doesn’'t make it easier
If there was a simple method to get wildfire to refresh it’'s data conference room users from the database then that would be a lot easier to use…
TIA…