Единый форум поддержки

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Единый форум поддержки » Вопросы по оформлению форума » Проблема: пропали 10 сообщений форума


Проблема: пропали 10 сообщений форума

Сообщений 1 страница 20 из 20

1

При установке аудиоплеера пропали 10 сообщений форума. Пр попытке восстановить их - код  не работает.

http://visitorfriend.ru/

0

2

Вдумчивый написал(а):

При установке аудиоплеера пропали 10 сообщений форума. Пр попытке восстановить их - код  не работает.

1. скопируйте код плеера в блокнот и запомните то место где он стоит у вас в html-низу
2. удалите его
3. сделайте восстановление
4. установите плеер туда откуда скопировали

0

3

Romych написал(а):

1. скопируйте код плеера

Попробуем

0

4

Romych написал(а):

скопируйте код плеера в блокнот

Не открывается блокнот... Странно, но он куда-то пропал. давненько я его уже не вижу. у меня там много скопированной информации. В чем дело?....

0

5

Журнал:

Код:
Сегодня 21:35:49 	Гость * 	109.184.34.69 * 	Ввод неверного пароля участника AVASDRYG
Сегодня 19:36:50 	AVASDRYG * 	109.184.34.69 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»
Сегодня 19:36:40 	AVASDRYG * 	109.184.34.69 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»
Сегодня 19:34:52 	AVASDRYG * 	109.184.34.69 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»
Сегодня 19:29:42 	AVASDRYG * 	109.184.34.69 * 	Изменение пароля участника AVASDRYG
Сегодня 11:10:27 	AVASDRYG * 	109.201.68.30 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»
Сегодня 11:08:14 	AVASDRYG * 	109.201.68.30 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»
Сегодня 11:04:00 	AVASDRYG * 	109.201.68.30 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»
Сегодня 10:59:43 	AVASDRYG * 	109.201.68.30 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»
Сегодня 10:48:42 	AVASDRYG * 	109.201.68.30 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»
Вчера 15:08:29 	puglenkov * 	188.186.212.34 * 	Удаление сообщения puglenkov в теме Петр Угленков
15-12-2016 14:00:05 	AVASDRYG * 	79.126.15.79 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»
14-12-2016 21:36:43 	AVASDRYG * 	82.208.127.94 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»
14-12-2016 21:32:32 	AVASDRYG * 	82.208.127.94 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»
14-12-2016 21:29:59 	AVASDRYG * 	82.208.127.94 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»
14-12-2016 09:34:04 	AVASDRYG * 	93.120.253.104 * 	Редактирование настроек форума «html_header, html_footer, html_reply, search_all_forums, regs_verify»

0

6

Romych написал(а):

1. скопируйте код плеера в блокнот и запомните то место где он стоит у вас в html-низу
2. удалите его
3. сделайте восстановление
4. установите плеер туда откуда скопировали

Все сделал, как Вы просили. Глянем на результат.

0

7

Без изменений... 10 сообщений форума не появились... :dontknow:

0

8

Да, кстати, долго стал грузиться плеер. http://visitorfriend.ru/viewtopic.php?id=856#p10790   Звук не появился...Может только повторно обновиться.

0

9

Еще один момент - не открывается констекстник - правая кнопка мыши не обновляет страницу...

0

10

Вдумчивый написал(а):

Да, кстати, долго стал грузиться плеер. http://visitorfriend.ru/viewtopic.php?id=856#p10790   Звук не появился...

хм, глянул по ссылке, плеер работает, задержек по скорости не заметил

Вдумчивый написал(а):

Без изменений... 10 сообщений форума не появились...

странно, не могли же они испариться, а все сообщения были в одной теме или в разных?

0

11

Убрал:

Код:
<script type="text/javascript" src="https://forumstatic.ru/files/0015/c4/3f/31001.js"></script>
    <div id=MyUser style="display:none;">
    <p>RoBiK,http://kino-pulse.ru/profile.php?id=5</p>
    <p>Neo,http://kino-pulse.ru/profile.php?id=6</p>
    <p>MaveriK,http://kino-pulse.ru/profile.php?id=7</p>
    <p>King,http://kino-pulse.ru/profile.php?id=8</p>
    <p>Logas,http://kino-pulse.ru/profile.php?id=9</p>
    <p>Promo,http://kino-pulse.ru/profile.php?id=10</p>
    <p>Tromnok,http://kino-pulse.ru/profile.php?id=11</p>
    <p>Mablon,http://kino-pulse.ru/profile.php?id=12</p>
    <p>Nemo,http://kino-pulse.ru/profile.php?id=13</p>
    <p>Rusak,http://kino-pulse.ru/profile.php?id=14</p>
    <p>BACEK,http://kino-pulse.ru/profile.php?id=15</p>
    <p>Cheetos,http://kino-pulse.ru/profile.php?id=16</p>
    <p>Po6oT,http://kino-pulse.ru/profile.php?id=17</p>
    <p>NoN1ck,http://kino-pulse.ru/profile.php?id=18</p>
    <p>Matkis,http://kino-pulse.ru/profile.php?id=19</p>
    <p>Monk,http://kino-pulse.ru/profile.php?id=20</p>
    <p>SLON,http://kino-pulse.ru/profile.php?id=21</p>
    <p>Name,http://kino-pulse.ru/profile.php?id=22</p>
    <p>Marko,http://kino-pulse.ru/profile.php?id=23</p>
    <p

После этого заработал. Но... по-прежнему не работает контекстное меню, когда захожу гостем

0

12

Romych написал(а):

а все сообщения были в одной теме

В низу форума в столбик: 10 сообщений форума.

0

13

Может проблема с запретом копирования для гостя? Или виноват сам браузер. Вроде произвел очистку... Короче.. - не пойму... :dontknow:

0

14

Вдумчивый написал(а):

по-прежнему не работает контекстное меню, когда захожу гостем

Вдумчивый написал(а):

не открывается констекстник - правая кнопка мыши не обновляет страницу...

может быть это код у вас блокирует? проверьте

Код:
<!-- Запрет копирования -->
    <script>var GroupNoCopy=[ 3,4 ]; //Группы с запретом копирования</script>
    <div class="nscr"><span id=disable000 title="No Copy!"></span>
    <style>#disable000{position:fixed;width:100%;height:100%;top:0;left:0;right:0;bottom:0;z-index:99999;}
    .punbb a,.punbb input,.punbb textarea{position:relative;z-index:100000;}</style></div><script>
    $("#disable000").parent().remove();if(GroupNoCopy.indexOf(GroupID)!=-1){var z=['TEXTAREA','INPUT','SELECT'];
    $("body").on("copy contextmenu dblclick mouseup mousedown",function(e){if(z.indexOf(e.target.tagName)==-1){
    try{window.getSelection().removeAllRanges();}catch(e){document.selection.empty();};return false}})}
    </script>

или

Код:
 <script type="text/javascript">$(document).ready(function(){$("#pun-viewtopic .topic").each(function () {
    var a=$(this);var x = a.width()+20;var y = a.height()+20;var Post_off=false;if($("#pun-navlinks #navlogin").length){Post_off=true}if(Post_off){a.prepend('<div class="Nocopy"><img title="No Copy!" src="/i/blank.gif" style="margin:-10px;position:absolute!important;z-index:1000!important;width:'+x+'px!important;height:'+y+'px!important;"/></div>')}})})
    </script>

0

15

Romych, мне кажется здесь проблема в браузере, или все же нет? Уже на главной не открывается правая кнопка мыши... Что за черт. не могу обновиться...

0

16

Вдумчивый написал(а):

В низу форума в столбик: 10 сообщений форума.

скрипт вывода 10 последних сообщений? ну так бы и сказали, а то я уж подумал у вас кто-то сообщения поудалял и восстановление из резервной копии не помогает

0

17

Romych написал(а):

может быть это код у вас блокирует? проверьте

Слепурка - никак не найду...

0

18

Код:
<!-- Подфорумы "не скриптом" © Alex_63 / Ч.2 в начало HTML низ -->
    <script type="text/javascript">setSubforums()</script>
 <!-- Мультитрековый плеер в постах (плеер с плейлситом) v1.0-->
<style type="text/css">
#form-audio {background: url(https://forumstatic.ru/files/0017/d8/50/90072.png) no-repeat 50% 5px;}  
@font-face {font-family: 'Material Icons'; font-style: normal; font-weight: 400; src: local('Material Icons'), local('MaterialIcons-Regular'), url(https://fonts.gstatic.com/s/materialicons/v17/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format('woff2'),url('https://forumstatic.ru/files/0017/d8/50/55034.woff') format('woff'), url('https://forumstatic.ru/files/0017/d8/50/69630.ttf') format('truetype');}
.material-icons {font-family: 'Material Icons';font-weight: normal;font-style: normal; font-size: 24px;line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;-webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}
     
div[id^="r-"] { background-color: #9f9f9f;  border: 2px solid #59add4; background-image: -webkit-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));background-image: -moz-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));
background-image: -ms-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));background-image: -o-linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0)); background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));-moz-border-radius: 4px;border-radius: 4px;khtml-border-radius:4px;-webkit-border-radius:4px;-moz-box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;margin:3px;z-index:200;overflow:hidden;width:430px;opacity: 0.9;text-shadow: 0 1px 0 rgba(255,255,255,.4);font-weight: bold;padding: 10px;}
     
#play {background: transparent url(https://forumstatic.ru/files/0012/72/15/89476.png) no-repeat scroll 0 -22px;border: 0 none;cursor: pointer;display: block;float: left;height: 31px;left: 13px;margin: 7px;vertical-align: super;width: 31px;}
#prev,#next {border: 0 none;cursor: pointer;height: 10px;margin-left: 9px;width: 21px; vertical-align: middle;}
#prev {background: transparent url(https://forumstatic.ru/files/0012/72/15/89476.png) no-repeat scroll 0 0;}
#next {background: transparent url(https://forumstatic.ru/files/0012/72/15/89476.png) no-repeat scroll 0 -11px;}
#volume{-webkit-appearance:none;border-radius:4px;box-shadow:inset 0 0 1px#333;background-color:#999;cursor: pointer;height:4px;left: 40px;position: absolute;top: 9px;vertical-align: bottom;width:70px;}
input[type='range']::-moz-range-progress {background:url(//papercraft.su/plate/img/plate_progress.png) repeat-x scroll 0 -45px;}
input[type='range']::-moz-range-track{-moz-appearance:none;border-radius:4px;box-shadow:inset 0 0 1px#333;height:4px;}
input[type='range']::-moz-range-thumb{-webkit-appearance:none !important;background: url(https://forumstatic.ru/files/0012/b1/41/89973.png) no-repeat scroll 0 0;  border: 0; height: 19px;width:19px;cursor: pointer; filter: drop-shadow(3px 3px 7px slategrey);}
input[type='range']::-webkit-slider-thumb{-webkit-appearance:none !important;background: url(https://forumstatic.ru/files/0012/b1/41/89973.png) no-repeat scroll 0 0;border:0;height:19px;width:19px;cursor: pointer;-webkit-filter: drop-shadow(3px 3px 7px slategrey);}
#seekbar { -webkit-appearance:none !important;background: #999;border-radius:4px; box-shadow:inset 0 0 1px#333;height:4px;width: 160px; vertical-align: super;}
.volume{background:url(https://forumstatic.ru/files/0012/72/15/67036.png)no-repeat scroll 0-75px rgba(0,0,0,0);content:"";display:inline-block;height:25px;margin-top:0;position:relative;right:-5px;vertical-align:middle;width:25px;}
 button:focus, input:focus {outline:none;}
#duration, #end {font-size: 0.8em; vertical-align: super;}
#timebox {margin: 2px;}
#track { font-size: 0.8em;overflow: hidden;padding: 5px; text-align: left;width: 420px;}#track li{cursor: pointer;}
#track li:nth-child(odd) {background: #dadada;}
#track li:nth-child(even) {background:#cdcdcd;}
#track li.active {background:#bddeee;}
.spin {-webkit-animation: spin 1.8s infinite linear;-moz-animation: spin 1.8s infinite linear;-o-animation: spin 1.8s infinite linear;animation: spin 1.8s infinite linear;}
@-moz-keyframes spin {0% {-moz-transform: rotate(0deg);}100% {-moz-transform: rotate(359deg);}}
@-webkit-keyframes spin {0% {-webkit-transform: rotate(0deg);}100% {-webkit-transform: rotate(359deg);}}
@-o-keyframes spin {0% {-o-transform: rotate(0deg);}100% {-o-transform: rotate(359deg);}}
@keyframes spin {0% {-webkit-transform: rotate(0deg);transform: rotate(0deg);}100% {-webkit-transform: rotate(359deg);transform: rotate(359deg);}}
#action {color: #fffff0;display: inline-block;float: right;font-size: 15px;overflow: hidden;text-shadow: 0px 3px 2px rgba(150, 150, 150, 1);width: 250px;animation: marquee 15s linear infinite;}
#action:hover {animation-play-state: paused}
     
@-moz-keyframes marquee { 0% {-moz-transform: translate(0, 0);}100% {-moz-transform: translate(-30%, 0);}}
@-webkit-keyframes marquee {0% {-webkit-transform: translate(0, 0);}100% {-webkit-transform: translate(-30%, 0);}}
@keyframes marquee {0%{ transform: translate(0, 0); }100% { transform: translate(-30%, 0); }}
     
.adinput {display: table;}
 .adinput::before {color: #888;content: attr(data-i) ". ";}
span[data-i="1"] #deltrack {display: none !important;}
#addtrack {color: #009900;background: linear-gradient(#009900, #006600); background: -webkit-linear-gradient(#009900, #006600);background: -o-linear-gradient(#009900, #006600);background: -ms-linear-gradient(#009900, #006600);}
#deltrack {color: #cc0000;background: linear-gradient(#cc0000, #990000); background: -webkit-linear-gradient(#cc0000, #990000);background: -o-linear-gradient(#cc0000, #990000);background: -ms-linear-gradient(#cc0000, #990000);}
#addtrack,#deltrack {cursor: pointer;font-size: 20px;vertical-align: sub;-webkit-background-clip: text;-webkit-text-fill-color: transparent;}
     
input[name="n"]::-moz-placeholder {background:#f0fdf0;font-size: 11px;}input[name="n"]::-webkit-input-placeholder {background:#f0fdf0;font-size: 11px;}input[name="n"]:-ms-input-placeholder {background:#f0fdf0;font-size: 11px;}
input[name="u"]::-moz-placeholder {background:#ffffe0;font-size: 11px;}input[name="u"]::-webkit-input-placeholder {background:#ffffe0;font-size: 11px;}input[name="u"]:-ms-input-placeholder {background:#ffffe0;font-size: 11px;}
input[name="c"]::-moz-placeholder {font-size: 11px;}input[name="c"]::-webkit-input-placeholder {font-size: 11px;}input[name="c"]:-ms-input-placeholder {font-size: 11px;}
form#tr-list {max-height:600px;position: fixed;right: 30%;bottom: 15%;margin: 0 auto;overflow-y:auto;z-index: 9;}
</style>
<script type="text/javascript">
 $('#form-buttons tr').append('<td id="form-audio" title="Музыка"><img src="/i/blank.gif"></td>');var fr='<form id="tr-list" class="container" autocomplete="off" style="display:none;min-width:40%;"><h1>Плейлист для плеера <i style="cursor: pointer;float: right;" class="material-icons" onclick="changeVisibility(\'tr-list\')" title="Закрыть">clear</i></h1><div class="a-box" style="text-align: center;"><p class="adsubmit"style="text-align: left;"><span data-i="1" class="adinput"><input type="text"maxlength="100" size="30" placeholder="Название трека (исполнитель)" name="n" required> <input type="url" pattern="https?://.+" required maxlength="200"size="30" placeholder="http://Ссылка на аудиофайл" name="u">&nbsp;<input type="url" pattern="https?://.+" maxlength="200" size="38" placeholder="http://Ссылка на изображение (неважно)" name="c" title="необязательно"><i class="material-icons" id="addtrack" title="добавить ещё один трек">add_circle_outline</i>&nbsp;<i class="material-icons" id="deltrack" title="удалить трек" onclick="var d=this.parentNode; d.parentNode.removeChild(d);">highlight_off</i></span></p><br><input type="submit" id="fin" value=" Готово " class="button" onclick="gotovo()"></div></form>';$('form#post').before(fr);$('#form-audio').on('click',function(){changeVisibility('tr-list');});var j=2;$('#addtrack').live('click',function(e){e.preventDefault();$(this).parents('.adinput').clone().attr('data-i',j++).appendTo('.adsubmit');});window.gotovo=function(){$('#tr-list').submit(function(e){e.preventDefault();});var ss,ee=[];$('[name="u"]').each(function(i){ee[i]=$(this).val();if(ee[i].length<=13){return;}else{ss=$('#tr-list').serializeArray();}});s=JSON.stringify(ss);var emp=$('[name="u"]');s=s.replace(/\{"name":"n","value":"(.*?)"},{"name":"u","value":"(.*?)"},{"name":"c","value":"(.*?)"\}/g,'{n:"$1",u:"$2",c:"$3"}');s=s.replace(/\}\,/g,"},\n");insert('[player]'+s+'[/player]');changeVisibility('tr-list');}
    $('div[id$="-content"] p:contains("[/player]")').map(function(){var ud=$(this).parent('.post-content').attr('id').split('-')[0];var txt=$(this).html();txt=txt.replace(/\[player\](\[\{n\:\".*?\"\,u\:\".*?\"\}\])\[\/player\]/gm,'<div id="r-'+ud+'"><div id="cover"><img height="86"width="86"align="left"src="https://forumstatic.ru/files/0012/72/15/53582.png"style="overflow: hidden; left: 0px; top: 0px; margin: 0px; max-width: none; max-height: none; border: medium none; line-height: 1; background-color: transparent; backface-visibility: hidden; width: 86px; height: 86px;filter: drop-shadow(0px 1px 3px DimGrey); -webkit-filter: drop-shadow(0px 1px 3px DimGrey); opacity: 1;"></div><button id="play"title="play/stop"></button><button id="prev"title="предыдущий"></button>&nbsp;<button id="next"title="следующий"></button><span class="volume"style="padding-right: 5px;"><input id="volume" min="0" max="10" value="5" type="range"step="1" title="громкость"></span><div id="timebox"><span id="duration">0.0</span>&nbsp;<input type="range" step="any" id="seekbar" value="0" max="">&nbsp;<span id="end"></span><i id="plist"class="material-icons"style="cursor: pointer;margin-left: 5px;vertical-align: sub;"title="показать/скрыть плейлист">list</i></div><div id="action"></div><div id="track"></div><div id="pl" style="display:none">$1</div></div>');$(this).html(txt);var pt=$('#r-'+ud+' #pl').text();var audio=new Audio();var i=0;var playlist=(new Function('return '+pt+';')());if(!playlist){return;};audio.src=playlist[0].u;var t='<ul>';
    for(var i=0,max=playlist.length;i<max;i++){var nm=playlist[i].n;var ur=playlist[i].u;var cov=playlist[i].c;i<9?t+='<li data-audio-url="'+ur+'" data-cover-src="'+cov+'">0'+(i+1)+'. <img src="'+cov+'" height="16"width="16"> '+nm+'</li>':t+='<li data-audio-url="'+ur+'" data-cover-src="'+cov+'">'+(i+1)+'. <img src="'+cov+'" height="16"width="16"> '+nm+'</li>';}t+='</ul>';$('#r-'+ud+' #track').append(t);audio.volume=0.5;$('#r-'+ud+' #volume').live('change keyup input',function(){audio.volume=parseFloat(this.value/10);if(this.value<=2){$('#r-'+ud+' .volume').css('background-position','0 0');}
    else if(this.value<=4){$('#r-'+ud+' .volume').css('background-position','0 -25px');}else if(this.value<=6){$('#r-'+ud+' .volume').css('background-position','0 -50px');}
    else{$('#r-'+ud+' .volume').css('background-position','0 -75px');};return false;});if(!sessionStorage['act']){sessionStorage['act']='stop';};function playAct(){sessionStorage['act']!='stop'?audio.play():audio.pause()};function listAct(){$('#r-'+ud+' #track li').each(function(){var a=$(this).data('audio-url');var b=audio.src;var ti=$(this).text();if(a.indexOf(b)!=-1){$(this).addClass('active').siblings('li').removeClass('active');$('#r-'+ud+' #action').text(ti);}});}
    function vinil(){var c=$('#r-'+ud+' li.active').data('cover-src');if(c=='undefined'||c==''){$('#r-'+ud+' #cover img').attr('src','https://forumstatic.ru/files/0012/72/15/53582.png').addClass('spin');}else{$('#r-'+ud+' #cover img').attr('src',c).removeClass('spin');}}
    $('#r-'+ud+' #play').live('click',function(){if(audio.paused){err();audio.play();sessionStorage['act']='play';listAct();vinil();$(this).css({'background-position':'0 -53px','filter':'drop-shadow(0px 1px 2px deepskyblue)','-webkit-filter':'drop-shadow(0px 1px 2px deepskyblue)'});}else{audio.pause();sessionStorage['act']='stop';$(this).css({'background-position':'0 -22px','filter':'none','-webkit-filter':'none'});$('#r-'+ud+' #cover img').removeClass('spin');$('#r-'+ud+' #action').text('');}});var seekbar=$('#r-'+ud+' #seekbar')[0];function setupSeekbar(){seekbar.max=audio.duration;var min=parseInt(audio.duration/60,10);var sec=parseInt(audio.duration%60);var endTime=min+'.'+sec;if(seekbar.max=='Infinity'){endTime='<i class="material-icons" style="font-size: 1.4em;vertical-align: sub;">all_inclusive</i>'};$('#r-'+ud+' #end').html(endTime);}
    audio.ondurationchange=setupSeekbar;audio.addEventListener('durationchange',setupSeekbar);audio.addEventListener('timeupdate',function(){var s=parseInt(audio.currentTime%60);var m=parseInt((audio.currentTime/60)%60);$('#r-'+ud+' #duration').html(m+'.'+s);$('#r-'+ud+' #seekbar').attr('max',audio.duration);$('#r-'+ud+' #seekbar').val(audio.currentTime);var p=Math.ceil((audio.currentTime/audio.duration)*100);$('#r-'+ud+' #seekbar').css({'height':'4px','background-image':'-webkit-linear-gradient(left, #6ac3d4 '+p+'%, #999 '+p+'%)','background-image':'linear-gradient(to right, #6ac3d4 '+p+'%, #999 '+p+'%)'});return false;});$('#r-'+ud+' #seekbar').live('change',function(){audio.currentTime=$(this).val();});$('#r-'+ud+' #next').live('click',function(){i=$('#r-'+ud+' #track').find('li.active').index();i=++i<playlist.length?i:0;audio.src=playlist[i].u;listAct();vinil();audio.currentTime=0;playAct();});$('#r-'+ud+' #prev').live('click',function(){i=$('#r-'+ud+' #track').find('li.active').index();i=--i>-1?i:playlist.length-1;audio.src=playlist[i].u;listAct();vinil();audio.currentTime=0;playAct();});$(audio).live('ended',function(){$('#r-'+ud+' #next').trigger('click');});$('#r-'+ud+' #track li').live('click',function(){audio.src=$(this).data('audio-url');listAct();playAct();$('#r-'+ud+' #play').trigger('click');});function err(){audio.addEventListener('error',function failed(e){switch(e.target.error.code){case e.target.error.MEDIA_ERR_SRC_NOT_SUPPORTED:$.jGrowl('Утраченная ссылка на аудио. Или неподдерживаемый этим браузером формат');break;}},true);}
$('#r-'+ud+' #plist').live('click',function(){$('#r-'+ud+' #track ul').slideToggle('slow');});});
</script>

Может код подфорумы конфликтует... Странно

0

19

видимо вы какой-то блок таблицу с id=sm1 удалили, скрипт вывода последних 10 сообщений заточен под него

если заменить вот эту строку

$("#sm1").find("table:first td:first").html(name)

на эту, то работать будет

<!--Последние сообщения пользователей-->
    <script type="text/javascript">
    if($("#pun-index").length){$.getScript("/export.php?type=js&max=10", function(){
    var html='';
    var ts = '';
    var mo = '';
    var hh = '';
    var mm = '';
    var i = 0;
    for(i=0;i<content.length;i++) {
    ts = new Date();
    ts.setTime(1000*content[i][0]);
    mo = ts.getMonth()+1;
    if (mo<10) mo='0'+mo;
    hh = ts.getHours();
    mm = ts.getMinutes()+'';
    if (mm<10) mm='0'+mm;
    ts = ts.getDate()+'.'+mo+' '+hh+':'+mm;
    html2="</tr></tbody></table></div>"
    html1="<style>#StatTbl tr.false{background-color:#B3B7B4}#StatTbl td,#StatTbl{border-collapse:collapse;border:0 none transparent!important;padding:2px!important;}</style><div style=\"padding:0;width: 100%; height: 210px;overflow-x: hidden; overflow-y: auto;\"><div align=center><b>Последние 10 сообщений форума</b></div><table id=StatTbl border=\"0\" cellspacing=\"0\" width=105%><thead><tr><th scope=\"col\">Автор</th><th scope=\"col\">Время</th><th scope=\"col\">Последнее сообщение</th></tr></thead><tbody class=\"hasicon\">"
    var chet=(Math.round(i/2) -i/2)>0 ;
    html+='<tr class="'+chet+'"><td align=left>'+content[i][1]+'</td><td style=\"font-size:9px;\" class=\"tc2\">'+ts+'<td class=\"tcr\"><a href=\"'+content[i][2]+'\" target=\"_blank\">'+content[i][3]+'</a><br /></td></tr>';
    }
    name=html1+""+html+""+html2;
    $("#pun-stats h2").after(name);
    });}
    </script>
    <!--Конец последние сообщения пользователей-->

+1

20

Romych, по дизайну ваш код не смотрится. Решил оставить тот, что был - старый.  Кое что добавил:

Код:
<!-- Последние 10 сообщений форума -->
<style>#tablstat10 td{padding-left:20px;}</style>
<script type="text/javascript">
if($("#pun-index").length){$.getScript("http://visitorfriend.ru/export.php?type=js&max=10", function(){
var html='';
var ts = '';
var mo = '';
var hh = '';
var mm = '';
var i = 0;
for(i=0;i<content.length;i++) {
	ts = new Date();
	ts.setTime(1000*content[i][0]);
	mo = ts.getMonth()+1;
	if (mo<10) mo='0'+mo;
	hh = ts.getHours();
	mm = ts.getMinutes()+'';
	if (mm<10) mm='0'+mm;
	ts = ts.getDate()+'.'+mo+' '+hh+':'+mm;
html2="</tr></tbody></table></div>"
html1="<h2>Последние 10 сообщений форума</h2><div class=\"container\"><table cellspacing=\"0\" width=100%><thead><tr><th scope=\"col\">Автор</th><th scope=\"col\">Время</th><th scope=\"col\">Последнее сообщение</th></tr></thead><tbody class=\"hasicon\">"
html+='<tr align=left id=tablstat10><td>'+content[i][1]+'</td><td class=\"tc2\">'+ts+'<td class=\"tcr\"><a href=\"'+content[i][2]+'\" target=\"_blank\">'+content[i][3]+'</a><br /></td></tr>';
}

var arr=document.getElementsByTagName("div")
i=0
str=document.URL
while(arr[i] ){
if((str.substring(str.lastIndexOf('/')+1)=="" || str.substring(str.lastIndexOf('/')+1)=="index.php") && arr[i].className=="statscon"){
name=arr[i].innerHTML
name=name.substring(0)
arr[i].innerHTML=""+html1+""+html+""+html2+"<br><h2>Общая статистика</h2>"+name+""
}
i++
}

});}
</script>
<meta name='yandex-verification' content='68098b92b3c8e88b' />

0


Вы здесь » Единый форум поддержки » Вопросы по оформлению форума » Проблема: пропали 10 сообщений форума