Форум о социальных сетях Поиск по форуму Инвестиции SMM обучение SMM курсы
Форум о социальных сетях Поиск по форуму Инвестиции SMM обучение SMM курсы
  • Страница 1 из 1
  • 1
Помощь со скриптом
#1
Суббота, 27.08.2011, 01:35
dr-palevo
Пользователь
Сообщения: 15
Репутация: 10
<script type="text/javascript">
$(".forumModerFuncs").css({'text-align' : 'left'});
$(".forumModerFuncsT").removeAttr('width');
$("input.fastNav").hide();
$("input.fastNav").before('<div class="input_submit alt" onclick="$(\'input.fastNav\').click();" style="margin-left:3px; padding:3px 8px;"><b>Ок</b></div>');
$("select.moderOptions, select.fastNav").wrap('<div style="float:left; clear:both; height:21px; width:205px !important;"></div>');
$(".legendBlock").parent('td').parent('tr').parent('tbody').parent('table').hide();
$("td.switch:contains('…')").addClass('switch2');
$(".forumLastPostTd").each(function () {
forum_obn_t = [$(this).find('a:first').attr('href'),$(this).find('a:first').text()]
forum_obn = [$(this).find('a:eq(1)').attr('href'),$(this).find('a:eq(2)').attr('href'),$(this).find('a:eq(2)').text()];
forum_obn_u = [$(this).find('a:eq(3)').attr('href'),$(this).find('a:eq(3)').text()]
$(this).html('<a href="'+forum_obn[0]+'"><img style="margin-bottom:-3px; margin-right:3px; margin-left:2px;" src="/images/last_post.png" border="0" alt=""></a> <a title="К первому непрочитанному сообщению" href="'+forum_obn[1]+'"><b>'+forum_obn[2]+'</b></a><div style="margin-top:2px; color:#676767;">От: <a href="'+forum_obn_u[0]+'">'+forum_obn_u[1]+'</a><img src="/images/user_popup.png" style="margin-bottom:-2px; margin-left:4px; margin-right:4px;" alt=""><a href="'+forum_obn_t[0]+'" style="color:#898989;" title="К последнему сообщению">'+forum_obn_t[1]+'</a></div>');
});
<?if($PAGE_ID$='category')?>
$(".gTableTop:first").html('<a class="catLink" href="/forum">Форум</a> » <a class="catLink" style="color:#888;" href="'+$(".forumNamesBar a:eq(1)").attr('href')+'">'+$(".forumNamesBar a:eq(1)").text()+'</a>');
<?endif?>
<?if($PAGE_ID$='forum' || $PAGE_ID$='recentthreads' || $PAGE_ID$='uthreads')?>
$(".gTableSubTop:contains('Ответы')").attr({'width' : '8%'}); $(".gTableSubTop:contains('Просмотры')").attr({'width' : '8%'}); $(".gTableSubTop:contains('Обновления')").attr({'width' : '18%'});
$(".gTableSubTop:contains('Автор темы')").hide();
$(".threadAuthTd").each(function () {
uIPB = [$(this).find('a.threadAuthorLink').attr('href'),$(this).find('a.threadAuthorLink').text()];
$(this).prev().prev().prev('.threadNametd').find('a:first').after(' <span style="color:#aaa; margin-left:5px;">От <a style="color:#929292;" href="'+uIPB[0]+'">'+uIPB[1]+'</a></span>');
}).hide();
$(".threadLastPostTd").each(function () {
tema_obn = [$(this).find("a.forumLastPostLink").attr('href'),$(this).find("a.forumLastPostLink").text(),$(this).find("a.forumLastPostLink").next().attr( 'href')];
tema_obn_u = [$(this).find("a.lastPostUserLink").attr('href'),$(this).find("a.lastPostUserLink").text()];
$(this).html('<a href="'+tema_obn[2]+'" title="К первому непрочитанному сообщению"><img src="/images/user_popup.png" style="border:0px; margin-bottom:-1px; margin-right:4px;" alt=""></a><a style="color:#898989;" title="К последнему сообщению" href="'+tema_obn[0]+'">'+tema_obn[1]+'</a><div style="margin-top:2px; color:#676767;">От: <a href="'+tema_obn_u[0]+'">'+tema_obn_u[1]+'</a></div>');
});
$(".postpSwithces").each(function () {
$(this).html($(this).html().split('[').join('').split(']').join('')); $(this).html($(this).html().split('…').join('<span class="SwitPost">…</span>'));
});
$("a.forumModer").parent('td').parent('tr').hide();
$(".switches:first").css({marginBottom: '4px'}); $(".gTableTop:first").html('<a class="catLink" href="/forum">Форум</a> » <a class="catLink" href="'+$(".forumNamesBar a:eq(1)").attr('href')+'">'+$(".forumNamesBar a:eq(1)").text()+'</a> » <a class="catLink" style="color:#888;" href="'+$(".forumNamesBar a:eq(2)").attr('href')+'">'+$(".forumNamesBar a:eq(2)").text()+'</a>');
<?endif?>
</script>

Проблема в опциях модератора, функция выбирается, а как только кнопку ок нажимешь, так перекидывает в раздел темы, и выбранное действие не выполняется.
Проблему вроде нормально описал.
О_о
  • Страница 1 из 1
  • 1
Поиск:
Форум
Социальные сети
Хостинг от uCoz