Понедельник, 29.04.2024, 08:57:1

Реклама:

  • Страница 1 из 1
  • 1
Форум » Система uCoz » Форум » Убирание колонки ответов в определённом разделе форума
Убирание колонки ответов в определённом разделе форума
scriptДата: Четверг, 01.09.2011, 17:13 | Сообщение # 1

Гость
Сообщений: 28
Награды: 0
Репутация: 1
Замечания: 0%

Code
<script type="text/javascript">
     <?if($URI_ID$='frForum9')?>
     $('td.gTableSubTop:contains("Ответы")').hide(); $('td.threadPostTd').hide();
     <?endif?>
     $(".forumLastPostTd").each(function () {
        
     if($(this).text() == 'Нет сообщений') { $(this).html('В данном форуме нет активности') }
     else {
     var TimesHref = $(this).find('a:first').attr('href');
     var TimesText = $(this).find('a:first').text();
        
     var MesImgHref = $(this).find('a:eq(1)').attr('href');
        
     var MessageHref = $(this).find('a:eq(2)').attr('href');
     var MessageText = $(this).find('a:eq(2)').text();
        
     var UserseHref = $(this).find('a:eq(3)').attr('href');
     var UserseText = $(this).find('a:eq(3)').text();
        
     $(this).html('<a href="'+MesImgHref+'" title="К первому непрочитанному сообщению"><img style="margin-bottom:-3px; margin-right:3px; margin-left:2px;" src="http://shpiller.in/ucoz/tic/1/last_post.png" border="0" alt=""></a> <a title="К первому непрочитанному сообщению" href="'+MessageHref+'"><b>'+MessageText+'</b></a><div style="margin-top:2px; color:#676767;">От: <a href="'+UserseHref+'">'+UserseText+'</a><img src="http://shpiller.in/ucoz/tic/1/user_popup.png" style="margin-bottom:-2px; margin-left:4px; margin-right:4px;" alt=""><a href="'+TimesHref+'" style="color:#898989;" title="К последнему сообщению">'+TimesText+'</a></div>');
     }
     });
     </script><?if($PAGE_ID$='forum' || $PAGE_ID$='recentthreads')?>
     <script type="text/javascript">
     $('a.modBut[title^="Изменить"]').html('<img style="margin-left:1px; margin-top:-<?if($USER_AGENT$='chrome')?>2<?else?>2<?endif?>px;" src="http://shpiller.in/ucoz/tic/1/icon_edit.png" align="absmiddle" border="0">');
     $('a.modBut[title^="Удалить"] img').attr({'src' : 'http://shpiller.in/ucoz/tic/1/icon_delete.png'}).css({'margin-left' : '2px', 'margin-top' : '-<?if($USER_AGENT$='chrome')?>2<?else?>2<?endif?>px'}).removeAttr('width').removeAttr('height');
     </script>
     <?endif?><?if($PAGE_ID$='uthreads' || $PAGE_ID$='recentthreads' || $PAGE_ID$='forum')?>
     <script type="text/javascript">
     $(".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();
     </script><?endif?>
Форум » Система uCoz » Форум » Убирание колонки ответов в определённом разделе форума
  • Страница 1 из 1
  • 1
Поиск:


Sitemap , Urllist.txt , RSS © Все права защищены Сайт оптимизирован под браузер FireFox Mozilla. SiteMap | SiteMap Forum.
Дизайн данного сайта полностью принадлежит администратору. Хостинг от uCoz