I have tried adding the following under the smilies div in themesdefaultchat.html.tpl.php:
- Code: Select all
<form name="form1" action="javascript:void(0)">
change nick
<input type="text" name="newnick" class="input" id="MyTextBox">
<input type="submit" name="Submit" value="Submit" onclick="pfc.sendRequest('/nick ' + document.getElementById('MyTextBox'));">
</form>
It works only half. It *does* change the nickname, but not to the text entered in the textfield, but to "[object]"
As far as I can see, this javascript should do the trick. What am I missing?
Or is there a better way to go about this?
Thanks in advance.