Авторизация
Мини-Чат
Есть вопросы? - На форум.
Здесь они игнорируются!






150x200
  • Страница 1 из 1
  • 1
Убирание колонки ответов в определённом разделе форума
LolqaaaДата: Понедельник, 19.09.2011, 23:03 | Сообщение # 1
Группа: Пользователи
Сообщений: 58
ICQ: 395531942
Репутация:  2 


Кто хочет может себе под другой раздел переделать!

Вставляем на форуме в общий вид после: BODY
Code
<script type="text/javascript">   
    <?if($URI_ID$='frForum9')?>   
    $('td.gTableSubTop:contains("Ответы")').hide(); $('td.threadPostTd').hide();   
    <?endif?>   
       
    // autor: iWebb   
    // autor: usite.su   
    $(".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://noxchi.at.ua/Icons/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://usite.su/images/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://usite.su/images/new/icon_edit.png" align="absmiddle" border="0">');   
    $('a.modBut[title^="Удалить"] img').attr({'src' : 'http://usite.su/images/new/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?>
  • Страница 1 из 1
  • 1
Поиск:
Наверх