hello
in muckl.html modify these:
find this which is at line 703:
// create a unique resource if (typeof(ANONHOST) == 'undefined') jid += '/' + hex_sha1(navigator.userAgent + Date.UTC(new Date()) + nick);
comment it out:
// create a unique resource /* if (typeof(ANONHOST) == 'undefined') jid += '/' + hex_sha1(navigator.userAgent + Date.UTC(new Date()) + nick); */
and add the code another way, it will look so, with commented out old code:
// create a unique resource /* if (typeof(ANONHOST) == 'undefined') jid += '/' + hex_sha1(navigator.userAgent + Date.UTC(new Date()) + nick); */ if (typeof(ANONHOST) == 'undefined') { var ts = new Date(); jid += '/' + hex_sha1( navigator.userAgent + Date.UTC(ts.getFullYear(), ts.getMonth(), ts.getDate(), ts.getHours(), ts.getMinutes(), ts.getSeconds()) + nick ); }
>i add at 2009-07-30: i have read about this patch at trac.jwchat.org/muckl/ticket/23.<
then find this near line 718, it is immediately after the code that i have just said:
/* get style */ if (opener && opener.myStyle) stylesheet = THEMESDIR + "/" + opener.myStyle + "/" + stylesheet; else if (passedArgs['myStyle']) stylesheet = THEMESDIR + "/" + passedArgs['myStyle'] + "/" + stylesheet;
and comment it out:
/* get style */ /*if (opener && opener.myStyle) stylesheet = THEMESDIR + "/" + opener.myStyle + "/" + stylesheet; else if (passedArgs['myStyle']) stylesheet = THEMESDIR + "/" + passedArgs['myStyle'] + "/" + stylesheet; */
this code produced error message like “have not permission to get style” and it caused stopping of muckl on start.
then edit config.js file:
BACKENDTYPE option is set to polling by default. it does not work. it does not work with new firefoxes, as i remember. if you set it to binding it works with most of browsers. except konqueror and may be others like it.
find
var BACKENDTYPE = 'polling';
at line 31 and modify it like this:
//var BACKENDTYPE = 'polling'; var BACKENDTYPE = 'binding';
then find
var HTTPBASE = "/http-poll/";
at line 44 and modify it this way:
//var HTTPBASE = "/http-poll/"; var HTTPBASE = "/http-bind/";
may be you will need write another address instead of “/http-bind/”, according to what is set up on your jabber server or jabber to http-bind bridge/gate.
you can install muckl on external domain while jabber server is in internal domain, i have now installed it just so and
var XMPPDOMAIN = "localhost";
is not modified on my installation.
name and password:
var MUCKLJID = "muckl"; // username var MUCKLPASS = "muckl"; // password
you should first create a user i.e. to register an account on the jabber server especially for muckl. i use for it user with name ccccc and with password 123456. name and password can be simple, because they are open through directly opening config.js file from browser (or saving and opening with text editor). i have modified this place this way:
//var MUCKLJID = "muckl"; // username //var MUCKLPASS = "muckl"; // password var MUCKLJID = "ccccc"; // username var MUCKLPASS = "123456"; // password
then i have modified this place:
name:'test', description:'some room for testing',
i have written it this way:
//name:'test', name:'kukmara_region', description:'Attention! <a href="http://kukmara.ru/chat2/logs/kukmara_region@conference.localhost/" target="_blank">Sometimes talks are logged and published</a>!',
i have previously created that room which is at “name” field, “kukmara_region” in this example, and set it persistent, though if you do not set it persistent it also will work. but if it is persistent, you will be “owner” of the room. if it is not persistent, then if all people quit the room and somebody enters it first then, he will became owner, because he creates room, because when all people quit, room is destroyed if it is not persistent.
do not use that muckl’s account (ccccc in this example) to create the room.
also i have written that talks may be published here and link to the published talks, this description appear at login page before user enters, so he can select appropriate username and look at published talks before he enters the room.
i have used name of room with bottom line character instead of space, as i remember i could not create room with space in name using pidgin, may be it is restriction of jabber/xmpp but i am not sure now, may be it is possible to create room with space in name using other jabber client program.
also i have made several modifications in html files in my installations:
link to main site at top left corner of login page,
“switch to russian language” link under login rectangle which is with rounded corners, also made it in span tag with switching in onclick attribute in another installation of the chat,
“instruction” link near sound and exit icons in chat,
“sometimes is published” attention again in right side from “send” button.
Hello!
Did you translate MUCkl into Russian yourself? I need a Russian translation for Kaliningrad Linux User Group. Can you send it to me? Contact me via e-mail. Thank you!
yes, i translated it myself. soon i will set it for downloading. (also talked this at http://kukmara.ru/chat2/logs/%d0%ba%d1%83%d0%ba%d0%bc%d0%b0%d1%80%d0%b0_%d1%80%d0%b0%d0%b9%d0%be%d0%bd%d1%8b@conference.kukmara.ru/2009/08/24.html#09:47:37 … ).
i have written about translation and set it to download, see http://dinarkurbanov.wp.kukmara-rayon.ru/2009/08/24/muckl-%D0%BF%D0%BE-%D1%80%D1%83%D1%81%D1%81%D0%BA%D0%B8/ (russian text) , also there are some suggestions: install it in iframe for users can copy and give address of the chat to other people, and set chat itself which is in iframe content to separate domain to make separate log file. also in that version pidgin’s sounds and fixing a bug with “/kick” and a bug with sounds.
somebody searched about showing date and time in muckl. date and time are already available through “title” attribute of phrases, appear after holding mouse cursor on the phrase. probably it is not hard to edit it to show as normal text.
somebody searched “How to create persistent room in muckl”. i think you should not create persistent room with muckl… may be it even has not support of command for doing so. you should create it with pidgin or jwchat or other client. in pidgin you can change persistency and other options in window which opens if you run /configure command in chat room. also you can change them just after creation of new room. you should not create it by same user as muckl user but by user whose password is secret.
hello,
I tried to change the “MUCKLJID” as another username like u :
//var MUCKLJID = “muckl”; // username
//var MUCKLPASS = “muckl”; // password
var MUCKLJID = “ccccc”; // username
var MUCKLPASS = “123456”; // password
but when i visite my web site : localhost/www/muckl/index.html
after the loging, it will alert: “Authorization failed”…(if i do not change the MUCKLJID, it will be fine.)
So i would like to ask if someone know what should i do to be allowed to change it???????
Think u for ur help.
that username and password should be registered at jabber server. you can register that with regular jabber client.