Good day, I have a very important problem. Avacweb log in and log out buttons does not work. I managed to log in, from the original chat but my messages are not sent. It says only: [18:23:50] away,Ben,
Here is the javascript with plugin list.
And here is the modified CSS for plugins.
and here is the CSS, for the chat itself.
I guess the problem will be in the CSS code, because I removed all of plugins + translation, and the issue was there. I also removed them one by one, and no idea. Please help.
Here is the javascript with plugin list.
- Code:
var avacweb_chat_config = {
version : '1-9-1',
new_chat_title : 'Legend of Avatars',
stylesheet : 'http://chat.avacweb.net/avacweb_chat_2.css',
allow_private_messaging : 1,
allow_user_resize : 1,
allow_appear_offline : 1,
commands : {
kick: {
run: function(){
var staffID = [1,2,39,57]; // change the numbers between the brackets as you like
for(var i=0;i<staffID.length;i++){
if(staffID[i]===avacweb_chat.user_id) {
return true;
} else continue;
}
return false;
}
}
},
custom_placement : null,
can_open_tabs : [1],
tabs : {
"Staff Szoba" : [1, 2,14],
"Spam" : [],
},
allow_copyrights : 0, //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 in this.events?this.events[t].push(f):this.events[t]=[f]}};
document.write('<script type="text/javascript" src="http://chat.avacweb.net/v' + avacweb_chat_config.version + '.js" id="achat_script"></sc' + 'ript>');
// END OF AWC CONFIG
window.avacweb_chat_translation = {
'log in' : 'Belépés',
'log out': 'Kijelentkezés',
'chat' : 'Chatfal',
'on' : 'Be',
'off' : 'Ki',
'close' : 'Bezárás',
'smilies': '',
'colors' : 'Színek',
'send' : 'Küldés',
'archives' : 'Archívum',
'message': 'Üzenet',
'refresh': 'Frissítés',
'you are disconnected. click log in to join the chat.' : 'Jelenleg ki vagy jelentkezve,
kattints a "Belépés" gombra a csevegéshez.',
'user options' : 'Felhasználói beállítások',
'color' : 'Szín',
'sound' : 'Hang',
'bold' : 'Kihúzott betűk',
'underline' : 'Aláhúzott betűk',
'strike' : 'Áthúzott betűk',
'italic' : 'Dőlt betűk',
'private message' : 'Privát Üzenet',
'loading smilies...' : '',
'this command is not available or does not exist' : 'Nem létező parancs.',
'user not found' : 'Nem található ilyen felhasználó',
'view profile' : 'Profil megtekintése',
'send private message' : 'Privát üzenet küldése',
'kick from chat' : 'Kirúgás a chatfalról',
'remove from moderators' : 'Eltávolítás a Moderátorok közül',
'send friend request' : 'Megjelölés Barátként',
'add to moderators' : 'Hozzáadás a moderátorokhoz',
'away' : 'Távol',
'reading' : 'Olvasó mód',
'start private conversation' : 'Privát beszélgetés kezdése',
'conversation with' : 'Beszélgetés vele',
'public' : 'Publikus',
'started by' : 'Létrehozta',
'add a new tab' : 'Új chatfal létrehozása',
'private message' : '*Suttogja*',
'away' : 'Távol',
'no users online' : 'Nincs online felhasználó',
'sorry this command is only for staff.' : 'Ezt parancsot csak staff tag használhatja.',
'no banned users to display.' : 'Nincs megjeleníthető bannolt felhasználó',
'tab names must be more than 2 characters.' : 'A névnek több mint 2 karaktert kell tartalmaznia!',
'choose a name for the new tab' : 'Válassz nevet a chatszobának',
'newest first' : 'Új üzenetek mutatása először',
'merge messages' : 'Üzenetek összekapcsolása',
'appear offline' : 'Megjelenítés offline-ként',
'disable timeout' : 'Automatikus kijelentkezés kikapcsolása'
};
(function(awc){
awc.add_event('onload', function() {
this.settings.add('sound', 0, true).add_ui('sound');
$('body').append('<span id="achat_sound"></span>');
});
awc.add_event('onnew', function() {
var sound_file = 'http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3'; //change this URL to your own sound file if you want
if( this.settings.on('sound') ) {
document.getElementById('achat_sound').innerHTML = '<embed src="' + sound_file + '" hidden="true" autostart="true" loop="false"/>';
}
});
})(avacweb_chat_config);
avacweb_chat_config.add_event('onload', function () {
$(avacweb_chat.id('achat_color_button')).after('<div class="achat_button" onclick="do_selectsmilies(event);">Emotikonok</div>');
});
avacweb_chat_config.commands.system = {
description : '/system message - post a system message',
run : function(text) {
if(text && text.length) {
return '[table class="system-message"][tr][td]' + text + '[/td][/tr][/table]';
}
return false;
}
};
(function(awc) {
('Avacweb chat Plug in Poke System');
//add the poke command.
awc.commands.poke = {
description: '/poke 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('nem tartózkodik a chaten.'));
return false;
}
return '[table class="achat_poke" rel="' + uid + '"][tr][td][/td][/tr][/table]';
}
};
awc.message_hook.push(function(row, username, user_id) {
var poke = $('.achat_poke', row)[0]
, ac = avacweb_chat;
if(poke) {
var poker = parseInt(user_id)
, poked = parseInt(poke.getAttribute('rel'))
, time = $('.date-and-time', row)[0].innerHTML;
if(!ac.user('id') || !poker || !poked) {
return row.innerHTML = '';
}
//if we are being poked...
if(poked === ac.user('id')) {
if( !ac.pokes[time] ) {
ac.pokes[time] = 1;
document.title = username + ' ' + ac.t('megbökött téged') + '!';
$('body').append('<embed src="http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3" hidden="true" autostart="true" loop="false" />');
//save the pokes.
JSON && ac.cookie('pokes', JSON.stringify(ac.pokes), 0);
}
row.innerHTML = '<span class="poke">' + username + ' ' + ac.t('megbökött téged') + '!</span></span></span>' + time;
}
else if(poker === ac.user('id')) {
row.innerHTML = '<span class="poke">' + ac.t('Megbökted őt:') + ' ' + ac.get_user_data(poked).name + '.</span></span></span>' + time;
}
else {
row.innerHTML = '';
row.style.display = 'none';
}
}
});
//load the pokes.
awc.add_event('onload', function() {
avacweb_chat.pokes = {};
avacweb_chat.original_title = document.title;
var cookie = avacweb_chat.cookie('pokes');
if(cookie && JSON) {
avacweb_chat.pokes = JSON.parse(cookie);
}
});
awc.add_event('onsend', function() {
document.title = this.original_title;
});
})(avacweb_chat_config);
avacweb_chat_config.add_event('onopen', function() {
var o = document.getElementById('awc-overlay');
if(!o) {
o = document.createElement('div');
o.id = 'awc-overlay';
document.body.appendChild(o);
$(o).click(function() { avacweb_chat.settings.toggle('open'); });
}
o.style.display = '';
});
avacweb_chat_config.add_event('onclose', function() {
var o = document.getElementById('awc-overlay');
if(o) o.style.display = 'none';
});
avacweb_chat_config.message_hook.push(function(row, username, userid, usr, msg) {
row.innerHTML += '<span class="awc-quote" onclick="parent.avacweb_chat.quote_msg(\'' + username.replace(/'/g, "\\'") + '\', this.parentNode)">Idézés</span>';
});
avacweb_chat_config.add_event('onload', function() {
avacweb_chat.quote_msg = function(user, row) {
avacweb_chat.insert_text( '[quote="' + user + '"]' + $('.msg', row).text() + '[/quote]' );
};
});
avacweb_chat_config.user_hook.push(function(row, username, user_id) {
if( 'u' + user_id in this.settings.value('ignored') ) {
row.className = 'ignored-user';
}
});
avacweb_chat_config.add_event('onlogout', function(e) {
if( !confirm('Biztosan ki akarsz lépni?') ) return e.preventDefault();
avacweb_chat,toggle('close');
});
And here is the modified CSS for plugins.
- Code:
#awc-overlay {
-moz-opacity: 0.5;
-webkit-opacity: 0.5;
background: #FFF; /* CHange this to #000 for darker themed boards */
filter: alpha(opacity=50);
min-height: 100%;
left: 0;
opacity: 0.5;
position: fixed;
top: 0;
width: 100%;
z-index: 999;
}
.awc-quote { float: right; font-weight: bold; text-shadow: 0 1px white; cursor: pointer; }
a:link {
text-decoration: none;
text-shadow: none;
-webkit-transition: 200ms linear 0s;
-moz-transition: 200ms linear 0s;
-o-transition: 200ms linear 0s;
transition: 200ms linear 0s;
outline: 0 none;
}
a:link {
text-decoration: none;
text-shadow: none;
-webkit-transition: 200ms linear 0s;
-moz-transition: 200ms linear 0s;
-o-transition: 200ms linear 0s;
transition: 200ms linear 0s;
outline: 0 none;
}
a:link:hover, a:link:focus
{
text-shadow: -1px 1px 8px #ffc, 1px -1px 8px #fff;
}
p.page-bottom + .h3, p.page-bottom + .h3 + div.page-bottom, #chatbox_popup {
display: none;
}
avacweb_chat_config.add_event('onload', function () {
$(avacweb_chat.id('achat_color_button')).after('Smileys');
});
#LGquick_search {
position: fixed;
top: 0px;
right: 5%;
background: #DDD;
padding: 15px 20px;
border-radius: 0 0 3px 3px;
-moz-border-radius: 0 0 3px 3px;
-webkit-border-radius: 0 0 3px 3px;
border: 1px solid #CCC;
border-top: none;
text-shadow: 0 1px white;
box-shadow: inset 0 0px 10px #EEE;
-moz-box-shadow: inset 0 0px 10px #EEE;
-webkit-box-shadow: inset 0 0px 10px #EEE;
}
#LGquick_search input {
background-color: white;
color: #666;
}
div.achat_button:nth-child(4){display: none}
td.row1, td.row2, td.row3, td.row3Right, #chatbox{
background-image: url(http://img0.picup.hu/4qq1g2s.png);
}
#chatbox_header, #chatbox_footer {
background-image: url(http://i38.servimg.com/u/f38/19/04/29/65/thead10.jpg);
box-shadow: none!important;
color: #fff;
-webkit-border-top-left-radius: 10px;
-webkit-border-top-right-radius: 10px;
-moz-border-radius-topleft: 10px;
-moz-border-radius-topright: 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
padding-top: 3px;
padding-left: 5px;
text-shadow: none!important;
font-family: segoe UI;
}
#chatbox_footer {
background-image: url(http://i38.servimg.com/u/f38/19/04/29/65/thead10.jpg);
box-shadow: none!important;
color: #fff;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
and here is the CSS, for the chat itself.
- Code:
#chatbox_header, #chatbox_footer {
background-image: url(http://i38.servimg.com/u/f38/19/04/29/65/thead10.jpg);
box-shadow: none!important;
color: #fff;
-webkit-border-top-left-radius: 10px;
-webkit-border-top-right-radius: 10px;
-moz-border-radius-topleft: 10px;
-moz-border-radius-topright: 10px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
padding-top: 3px;
padding-left: 5px;
text-shadow: none!important;
font-family: segoe UI;
}
#chatbox_footer {
background-image: url(http://i38.servimg.com/u/f38/19/04/29/65/thead10.jpg);
box-shadow: none!important;
color: #fff;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
#chatbox { font-family: segoe ui; font-size: 13px;}
body.chatbox {
background-color: transparent!important;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 0px 0px 9px 0px rgba(50, 50, 50, 0.56);
-moz-box-shadow: 0px 0px 9px 0px rgba(50, 50, 50, 0.56);
box-shadow: 0px 0px 9px 0px rgba(50, 50, 50, 0.56);
background-image: url(http://img0.picup.hu/4qq1g2s.png);
}
#avacweb_chat iframe { border: none!important;
background-color: transparent!important;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 0px 0px 9px 0px rgba(50, 50, 50, 0.56);
-moz-box-shadow: 0px 0px 9px 0px rgba(50, 50, 50, 0.56);
box-shadow: 0px 0px 9px 0px rgba(50, 50, 50, 0.56);}
.member-title { border: none!important; }
.achat_row {
border: none!important;
}
I guess the problem will be in the CSS code, because I removed all of plugins + translation, and the issue was there. I also removed them one by one, and no idea. Please help.