|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions [REQ] Mini Chat New Message Notification |
[REQ] Mini Chat New Message Notification |
Welcome! I know mini chat new message notification is possible via custom scripting. I know ucoz not tolerate / help in custom scripting but please help to resolve this magik In Russian/Source File archive: http://webuilder.info/load/0-0-1-136-20 How does the script work: 1) If you send a message by clicking on buttok OK or by pressing CTRL + ENTER - You will hear sound/Message sent/First sound 2) If message in chat is not written by you - Second sound will be played Installation: 1) To start, go to Personal Page of User, now find: Code [id: <b>$_USER_ID$</b>] Change it to: Code [id: <b><span class="stat">$_USER_ID$</span></b>] 2) In appearance of entries in mini-chat, paste this at the very top: Code <div id="name"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1" height="1"> <param name="movie" value="http://www.apo-ucoz.com/flash/newmes.swf"> <param name="quality" value="high"> <embed src="http://www.apo-ucoz.com/flash/newmes.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"width="1" height="1"></embed> </object> </div> <script> $('#name').hide(); </script> <script type="text/javascript"> $.get('/index/8', function (data) { if($('span.stat', data).html() != $USER_ID$) $('#name').show(); }); </script> 3) In adding chat messages, find a code similar to this: Code $FLD_MESSAGE$ Change it to: Code <span onKeyDown="if (event.keyCode==10 || (event.ctrlKey && event.keyCode==13)) {$('.ch_s').slideDown(500).slideUp(1000);}">$FLD_MESSAGE$</span> Next on this page find this: Code $SUBMIT$ Change it to: Code <input onclick="$('.ch_s').show(3000).hide(100);" type="submit" value="OK" class="mchat" id="mchatBtn" style="width:30px;"> <img style="display:none;" id="mchatAjax" src="http://www.apo-ucoz.com/img/44.gif" width="15" border="0"> <div class="ch_s" style="display:none;position:absolute;opacity:0.5;top:0;right:0;"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="1" height="1"> <param name="movie" value="http://www.apo-ucoz.com/flash/send.swf"> <param name="quality" value="high"> <embed src="http://www.apo-ucoz.com/flash/send.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"width="1" height="1"></embed> </object> </div> In the attached files archive, their are two flash objects with sound + image indicator Hit that "Thanks" button. :)
In life there's ALWAYS limits but do not plan above them. Post edited by VZ - Saturday, 2014-06-28, 9:51 PM
|
| |||
| |||