neok Дата: Суббота, 25.04.2015, 20:35 | Сообщение # 1
Admin сайта Neok
Администраторы
Сообщения: «347»
Страна: Украина
1)Загрузить все из папки "В ФМ" в Файловый менеджер 2)Установить в шаблоны чата из документов "Вид материалов.txt","Форма добавления.txt" 3)Установить (или заменить $CHAT_BOX$ если он у вас уже стоит) в то место где хотим видеть чат Форма добавления сообщения: Код
<div align="left"><br></div><div style="border-spacing: 0px; position: absolute; margin-left: 318px; margin-top: -204px; opacity: 1; display: block;" class="chatradio-elem"> <table style="border-spacing: 0px; position: absolute; margin-left: 318px; margin-top: -204px; opacity: 1; display: block;" cellpadding="0" cellspacing="0"> <tbody><tr><td style="background: url('/images/chat.png') no-repeat 0 -235px;height: 9px;width: 9px;" width="9px"></td><td style="background: url('/images/chat.png') repeat-x 0 -500px;height: 9px;" height="9px"></td><td style="background: url('/images/chat.png') no-repeat -9px -235px;height: 9px;width: 9px;" width="9px"></td></tr> <tr><td style="background: url('/images/chat.png') no-repeat -18px -235px;width: 9px;" width="9px"></td><td style="background: #ffffff;"><object height="180" width="160"><param name="movie" value="http://www.zaycev.fm/zaycev_banner.swf"><param name="wmode" value="transparent"><param name="allowFullScreen" value="false"><embed src="http://www.zaycev.fm/zaycev_banner.swf" type="application/x-shockwave-flash" wmode="window" allowfullscreen="false" height="180" width="160"></object></td><td style="background: url('/images/chat.png') no-repeat -27px -235px;width: 9px;" width="9px"></td></tr> <tr><td style="background: url('/images/chat.png') no-repeat 0px -244px;height: 9px;width: 9px;" valign="top" width="9px"></td><td height="15px"><table cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td valign="top"><div style="background: url('/images/chat.png') repeat-x 0 -509px;height: 9px;"></div></td><td width="15px"><div style="background: url('/images/chat.png') repeat-x 0 -259px;height: 15px;width: 15px;"></div></td><td valign="top" width="45px"><div style="background: url('/images/chat.png') repeat-x 0 -509px;height: 9px;"></div></td></tr></tbody></table></td><td style="background: url('/images/chat.png') no-repeat -9px -244px;height: 9px;width: 9px;" valign="top" width="9px"></td></tr> </tbody></table></div> <table style="margin: 0px auto;" width="95%"><tbody><tr> <td style="text-align: center; vertical-align: middle; letter-spacing: 0px; word-spacing: 0px;" width="325px"> <div id="chatik"> <div id="chatik"> <?if($USER_LOGGED_IN$)?><input onkeypress="enter(event)" class="mchat" id="mchatMsgF"></input><?else?><input onkeypress="enter(event)" class="mchat" id="mchatMsgF" value="Для добавления сообщения нужна Авторизация..."><?endif?> </div></td><td><?if($USER_LOGGED_IN$)?><a onclick="chat_post()" class="chat-btn"><b id="ready">20</b><span class="btn">Отправить</span></a><?else?><a class="chat-btn"><b id="ready">20</b><span class="btn">Отправить</span></a><?endif?></td> <td> <td><a class="chat-bold" href="javascript:void('Apply to')" onclick="bbCode('b');return false;"></a><a class="chat-italic" href="javascript:void('Apply to')" onclick="bbCode('i');return false;"></a><a class="chat-decor" href="javascript:void('Apply to')" onclick="bbCode('u');return false;"></a><a class="chat-smiles" href="$SMILES_URI$"></a><a class="chat-edit" href="$MSGCTRL_URI$"></a><a class="chat-onsound" onclick="ChatSoundCookie();" title="Звук включен"></a><a class="chat-offsound" onclick="delChatSoundCookie();" title="Звук выключен"></a></td> <td style="text-align:right;"><a class="chat-radio radioon" onclick="showradio();" title="Онлайн Радио"></a><a class="chat-radio radiooff" onclick="hideradio();" title="Онлайн Радио"></a></td> <td style="text-align:right;" width="7%"><a class="chat-btn" onclick="rules();"><span class="btn">Правила!</span></a></td> </tr></tbody></table> <span style="display:none;">$SUBMIT$</span> <script> function bbCode(tg, param) { $("#blocksize").fadeOut(100); var o = '[' + tg + (param ? ("=" + param) : "") + ']', c = '[/' + tg + ']', doc = $('#mchatMsgF')[0]; doc.focus(); if (window.attachEvent && navigator.userAgent.indexOf('Opera') === -1) { var s = doc.sel; if (s) { var l = s.text.length; s.text = o + s.text + c; s.moveEnd("character", -c.length); s.moveStart("character", -l); s.select(); } } else { var ss = doc.scrollTop; sel1 = doc.value.substr(0, doc.selectionStart); sel2 = doc.value.substr(doc.selectionEnd); sel = doc.value.substr(doc.selectionStart, doc.selectionEnd - doc.selectionStart); doc.value = sel1 + o + sel + c + sel2; doc.selectionStart = sel1.length + o.length; doc.selectionEnd = doc.selectionStart + sel.length; doc.scrollTop = ss; }; return false; } </script> <link type="text/css" rel="StyleSheet" href="/css/chat.css"> <script type="text/javascript" src="/js/chat.js"></script> <script type="text/javascript"> cookieToggle = function(id) { if ($.cookie('hideid_'+id)!=null) {$.cookie('hideid_'+id, null);} else {$.cookie('hideid_'+id, '');} $('#'+id).slideToggle(1000); } cookieToggleCheck = function(id) { if ($.cookie('hideid_'+id)!=null) {$('#'+id).hide();} } cookieToggleCheck('4at'); </script> <script type="text/javascript"> function enter(e) { if (e.keyCode == 13) { chat_post(); } } </script> <script> var chatradiowidth = $('.chat-content .chat-shadow .chat-bg').width() - $('.chatradio-elem').width() - 24; var chatradioheight = $('.chat-content .chat-shadow .chat-bg').height() - $('.chatradio-elem').height(); $('.chatradio-elem').css({"marginLeft" : chatradiowidth , "marginTop" : chatradioheight - 30 , "opacity" : 0}); $('.radiooff , .chatradio-elem').hide(); function rules() {new _uWnd('','Общие правила чата',380,200,{autosize:1,maxh:300,minh:100},'<div style="text-align:left;"><b>В чате строго запрещено следующее:</b><div>• Запрещено обсуждение действий администрации, оскорбление пользователей сайта не зависимо от их группы.</div><div>• Использование аватаров и (или) подписей, содержание которых оскорбляет и (или) унижает пользователей.</div><div>• Проявление расовой, национальной и религиозной неприязни, пропагандирование терроризма, экстремизма, наркотиков.</div><div>• Засорение чата комментариями или сообщениями, не имеющими смысла (флуд).</div><div>• Распространение ссылок на другие проекты, сайты, файлы. Сначала выдается предупреждение, в случае игнорирования - бан.</div><div>• Распространение материалов порнографического характера.</div></div>');}; function showradio() { $('.radiooff , .chatradio-elem').show(); $('.radioon').hide(); $('.chatradio-elem').stop().animate({marginTop : chatradioheight , opacity: 1} , 350); } function hideradio() { $('.radioon').show(); $('.radiooff').hide(); $('.chatradio-elem').stop().animate({marginTop : chatradioheight - 30 , opacity: 0} , 350); setTimeout(function(){$('.chatradio-elem').hide();},400); } </script> <script type="text/javascript">function initTimer( id, overtext, callback ) {var tim = setInterval( init, 1000 );function init() {var timer = document.getElementById( id );if ( timer.innerHTML == 1 ){timer.innerHTML = overtext,clearInterval( tim );if ( callback ) {callback.call( timer );var timer = document.getElementById('mchatIfm2').src='/mchat/?'+Math.random();return false;}} else {timer.innerHTML--;}}}</script> <script>initTimer( 'ready', '', function () {this.innerHTML = 60;initTimer( this.id, '', arguments.callee );});</script>
Вид материалов: Код
<link type="text/css" rel="StyleSheet" href="/css/chat.css"> <div style="padding:4px 9px 8px 11px;" id="chathomepage"> <div class="chat_message Block" style="padding:2px;border-top:1px solid #fff;"> <table width="99%" border="0" cellspacing="2" cellpadding="1"><tbody><tr> <td width="45px" valign="top" align="center" style="border-right:1px dashed #ccc;padding:2px;"> <a href="/index/8-0-$NAME$" target="_blank" title="В профиль $NAME$"><?if($AVATAR_URL$)?><img src="$AVATAR_URL$" border="0" width="35px" style="border-top-left-radius: 10px; border-bottom-right-radius: 10px; border-bottom-left-radius: 0px;padding:2px; border:1px solid #e4e4e4; background-color:white;"><?else?> <img data-src="http://hostfreetorr.at.ua/505901438.jpg" width="75" height="110" border=0 style="border-top-left-radius: 10px; border-bottom-right-radius: 10px; border-bottom-left-radius: 0px;padding:2px; border:1px solid #e4e4e4; background-color:white;"><?endif?></a> </td><td valign="top"><div style="background:rgb(233, 253, 196);height: 20;"> <div style="border-radius: 4px 4px 6px; background: url('/images/chat.png') no-repeat 0 -27px; display: inline-block; height: 19px; line-height: 18px; padding: 0px 2px 0px 6px; color: #ffffff; font-size: 12px; text-shadow: 0px 1px 0px #6fa413;float: right;">$DATE$ - $TIME$</div> <a href="javascript:void('Apply to')" onclick="parent.window.document.getElementById('mchatMsgF').focus();parent.window.document.getElementById('mchatMsgF').value+='[b]$NAME$[/b], ';return false;"><b><spam style="color:#656761">$NAME$</spam></b></a> </a> </b> </div><span id="fp" style="color:#737373">$MESSAGE$</span></td> </tr></tbody></table></div> </div></div></div>
Работающий чат для Ucoz
МИНИ, ЧАТ, N-TORRENTS, V.1
Админ этого сайта. Лежать стоять оп оп БАН!
Сообщение отредактировал