Sorry if this is in the wrong section or something, it's my first post xD Anyway, I think it was included in a previous version, but is it possible to have a plugin where the chatbox lights up a color (red for example) when a new message has been entered. Thank you soo much if you can help!
Like SystemFri 15 Oct 2021, 04:50
Auto Save MessagesFri 26 Feb 2021, 13:31
New tutorial questionMon 15 Feb 2021, 08:12
Support iOS Emojis (and other platforms)Sun 14 Feb 2021, 01:25
Does anybody have the original Avacweb Chat CSS?Tue 09 Feb 2021, 13:40
Page 1 of 1 •
Request: Chatbox lights up when there's a new message
FineryWorkshop
Status : No status yet...
Posts : 6
Join date : 2015-03-27
Posts : 6
Join date : 2015-03-27
Sat 28 Mar 2015, 00:10
brandon_g
Status : No status yet...
Posts : 81
Join date : 2015-01-13
Age : 26
Location : USA
Posts : 81
Join date : 2015-01-13
Age : 26
Location : USA
Sat 28 Mar 2015, 01:50
This already happens, it is supposed to anyway. If you configured it correctly. What forum version do you have?
FineryWorkshop
Status : No status yet...
Posts : 6
Join date : 2015-03-27
Posts : 6
Join date : 2015-03-27
Sat 28 Mar 2015, 03:04
phpbb3 and here's the code I have:
- Code:
var avacweb_chat_config = {
version : '2-0-test',
chat_title : 'Finery Workshop',
stylesheet : 'http://chat.avacweb.net/awc_2-0.css',
allow_private_messaging : 1,
allow_user_resize : 1,
custom_placement :null,
commands : {},
filters : {},
tabs : {Test:[1,2]},
allow_copyrights : 0, //please be kind and allow AWC to place small discreet copyrights and backlink on your forum.
// DO NOT TOUCH ANYTHING BELOW
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>');
(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);
LGforum
Status : Working to restore AWC!
Posts : 2806
Join date : 2011-10-05
Age : 30
Location : UK
Posts : 2806
Join date : 2011-10-05
Age : 30
Location : UK
Sat 28 Mar 2015, 07:40
Yes this already happens, if you have the chatbox closed and new messages are posted the button will light up.
The only thing that can prevent it is a js error in a plug in or something your css relating to the avacweb chat button.
The only thing that can prevent it is a js error in a plug in or something your css relating to the avacweb chat button.
Sponsored content