When calling the function to add a user to Jabber the following source is not passing the correct variable. When the function is passing the variable, it only passes the Teamspeak formatted name as the username instead of the Jabber formatted username. I have isolated the function being called, just not the callee of the function. I could not get the function to use the UserService plugin for various reasons, which I think is because jabber isn't located in my /var/www/html directory, but is located elsewhere on the server.
To replicate this issue, comment out the lines in the file I have listed above, then add a new user into Jabber. When viewing the database for the Jabber service itself, the username is shown as the Teamspeak username rather than the Jabber username. I can be reached at mancuso.christopher@gmail.com if you have any further questions.
When calling the function to add a user to Jabber the following source is not passing the correct variable. When the function is passing the variable, it only passes the Teamspeak formatted name as the username instead of the Jabber formatted username. I have isolated the function being called, just not the callee of the function. I could not get the function to use the UserService plugin for various reasons, which I think is because jabber isn't located in my /var/www/html directory, but is located elsewhere on the server.
Server Hardware: Dell PowerEdge R610 Ram: 8 GB HD: 500 GB OS: Ubuntu 14.04 LTS (64 bit)
File Location: /Sources/TEA_Jabber_OF.php
function add_user($uname, $pw, $name, $email, $groups) { $secret = $this -> modSettings['tea_jabber_secret']; $groups = implode(",", $groups); $uname = strreplace("'", "", $uname); $uname = strreplace(" ", "", $uname); $name = strreplace("'", "", $name); $name = strreplace(" ", "", $name);
To replicate this issue, comment out the lines in the file I have listed above, then add a new user into Jabber. When viewing the database for the Jabber service itself, the username is shown as the Teamspeak username rather than the Jabber username. I can be reached at mancuso.christopher@gmail.com if you have any further questions.