======iJab parameters description===========
iJab has many parameters to custome and config it and let me describe them
to you.
You could find them in ijab_config.js file.
var iJabConf =
{
client_type:"xmpp",
app_type:"bar", // iJab would support bar/stand-alone/live-support modes in future version, now you just could set this to bar
theme:"standard", // in iJab directory you could find a standard directory which includes css file and image for iJab, you cuold write your own theme.
avatar_url:"http://www.ijab.im/avator?user={username}", // iJab would replace {username} with userid in iJab to get user's photo from your website, you should write this script in your
// website yourself which should return a image content
enable_roster_manage:true, // let user could add/delete his roster or not
enable_talkto_stranger:true, // let user talk to users not in his roster list or not
expand_bar_default:false, // expand bar by default or not
enable_login_dialog:true, // Open login dialog while click Chat button while iJab disconnected
hide_online_group:false, // Show online special group or not
disable_option_setting:false, // Disable option setting button or not
disable_msg_browser_prompt:false, // Disable showing receiving message notification on brower window title or not
xmpp:{
domain:"ijab.im", // Domain that your XMPP server served
http_bind:"/http-bind/", // http-bind address, you should config correct rewrite rules or proxy for http-bind request to your http-bind server
host:"", // You XMPP server host, leave it be empty if you don't use third-party http-bind server
port:5222, // XMPP server listening port(not http-bind port)
server_type:"ejabberd", // iJab supports ejabberd/openfire/tigase now
auto_login:false, // Enable iJab auto login with your website or not
none_roster:false, // Make iJab not get roster from XMPP server
get_roster_delay:true, // Let iJab get roster when clicking Chat button, not get it soon after login
username_cookie_field:"username", // If enable auto login, iJab would try to get username from cookie use this key
token_cookie_field:"SID", // If enable auto login, iJab would try to get auth token from cookie use this key
anonymous_prefix:"", // If enable anonymouse login on your XMPP server, set how to make anonymouse username
max_reconnect:3, // If enable auto login, how many times iJab would try to login to XMPP server
enable_muc:true, // Enable MUC(Group Chat) or not
muc_servernode:"conference.ijab.im", // MUC component JID
vcard_search_servernode:"vjud.ijab.im", // Vcard search component JID
gateways: // Configure transports here
[
{
icon:"http://example.com/msn.png",
name:"MSN Transport",
description:"",
servernode:"msn-transport.ijab.im"
}
]
},
disable_toolbox:false, // Disable toolbox or not
tools:
[
{
href:"http://www.google.com",
target:"_blank",
img:"http://www.google.cn/favicon.ico",
text:"Google Search"
},
{
href:"http://www.xing.com/",
target:"_blank",
img:"http://www.xing.com/favicon.ico",
text:"Xing"
}
],
shortcuts: // It would disable shortcuts if make this empty
[
{
href:"http://www.anzsoft.com/",
target:"_blank",
img:"http://www.anzsoft.com/favicon.ico",
text:"Go to anzsoft"
},
{
href:"http://www.google.com",
target:"_blank",
img:"http://www.google.cn/favicon.ico",
text:"Google Search"
}
],
ijabcometd:{ // iJab would support Cometd server in the future, not used now
}
};