تفضل يا اخي
var avacweb_chat_config = {
version : '1-8',
new_chat_title : 'الدردشة',
auto_log_in : 'open',
archives : 0,
sound_file : 'http://mp3.alshellah.net/uploads/13701779671.mp3',
stylesheet : 'http://chat.avacweb.net/avacweb_chat.css',
disable_timeout : 0,
allow_private_messaging : 1,
allow_user_resize : 0,
commands : {},
can_open_tabs : [1], http://user ids of users who can open new tabs.
tabs : {},
allow_copyrights : 0, http://please be kind and allow AWC to place small discreet copyrights and backlink on your forum.
// DO NOT TOUCH ANYTHING BELOW
message_hook:[],user_hook:[],events:{},add_event:function(t,f) {t=/^on/.test(t)?t:'on'+t;t in this.events?this.events[t].push(f):this.events[t]=[f]}};
document.write('
');
avacweb_chat_config.commands.s = {
description : '/s message - post a system message',
run : function(text) {
if(text && text.length) {
return '
';
}
return false;
}
};
avacweb_chat_config.commands.w = {
description : '/warning message - post a warning message',
run : function(text) {
if(text && text.length) {
return '
';
}
return false;
}
};
avacweb_chat_config.message_hook.push(function(row) {
var m = $('.system-message, .warning-message', row)[0];
if(m) {
var msg = m.getElementsByTagName('td')[0].innerHTML;
row.innerHTML = '
' + msg + '
';
}
});
avacweb_chat_config.add_event('onopen', function(e) {
e.preventDefault();
$('#avacweb_chat').fadeIn();
avacweb_chat.button.style.backgroundColor = '';
});
avacweb_chat_config.add_event('onclose', function(e) {
e.preventDefault();
$('#avacweb_chat').fadeOut();
});
avacweb_chat_config.user_hook.push(function(row) {
var l = row.getElementsByTagName('a')[0];
if(l) {
l.setAttribute('onclick', 'if(event) event.preventDefault(); ' + l.getAttribute('oncontextmenu'));
l.removeAttribute('oncontextmenu');
}
});
(function(awc) {
('Avacweb chat Plug in Poke System');
http://add out poke command :)
awc.commands.p = {
description : '/p username - Poke a user in the chatbox to get their attention.',
run : function(msg) {
var uid = avacweb_chat.get_user_data(msg).id;
if(!uid) {
avacweb_chat.popup(msg + ' ' + avacweb_chat.t('is not in the chat'));
return false;
}
http://store the user id's and send in a table
return '
';
}
row.innerHTML = '
' + avacweb_chat.get_user_data(poker).name + ' ' + avacweb_chat.t('Poked You') + '! ' + time;
}
else if(poker == avacweb_chat.user('id')) {
row.innerHTML = '
' + avacweb_chat.t('You poked') + ' ' + avacweb_chat.get_user_data(poked).name + '.' + time;
}
else {
row.innerHTML = '';
row.style.display = 'none';
}
});
awc.add_event('onload', function() {
avacweb_chat.pokes = {}, cookie = avacweb_chat.cookie('pokes');
if(JSON && cookie) avacweb_chat.pokes = JSON.parse(cookie);
});
awc.add_event('onnew', function() {
if(JSON && avacweb_chat.pokes) {
avacweb_chat.cookie('pokes', JSON.stringify(avacweb_chat.pokes), 0);
}
});
})(avacweb_chat_config);
الكود الثانى يوضع فى أكواد الجافا اسكربت و تسمى الكود "ترجمة الدردشة" و تختار جميع الصفحات