Студия креативных разработок DevArt.PRO.
Разработка сайтов и форумов под ключ!
Сильнейшая команда в России по vBulletin - читать подробнее...
 
 
 
 

 
 
Здесь скоро опять что то будет...
 
 
 
 
 
 
Loading

Вернуться   форум vBSupport.org > vBulletin > vBulletin 3.5.x > Хаки, моды и скрипты 3.5

Объявления
  • Изменения в правах
  • Каталог Фрилансеров
  • Добро пожаловать!
  • Premoderation
  • Новичкам!
  • For English speaking users
Ответ
 
Опции темы Опции просмотра
Старый 06.01.2006, 04:50   #1
Администратор
Неадекватный
 
Аватар для КотЪ
Guests may only view first page of thread / Только первая страница темы для гостей

Как ясно из названия, эта модификация позволяет гостям видеть только первую страницу темы, причем вместо ХХ вы подставляете кол-во постов, которые им доступны.

-------------------------------------------------------------------


in the following,
XX is the number of posts shown in a thread
(i think default was 25)
you need to replace this in the first 2 lines according to your posts/page

postbit legacy

add to the very beginning:

PHP Code:
Код:
<if condition=&quot;$post[postcount] > XX and !$bbuserinfo['userid']&quot;>
<if condition=&quot;$post[postcount]%XX == 1&quot;>
<!-- Start Error Message -->
<if condition=&quot;$show['spacer']&quot;>
    $spacer_open
    <div id=&quot;edit$post[postid]&quot; style=&quot;padding:0px 0px $stylevar[cellpadding]px 0px&quot;>
    <if condition=&quot;!$post['islastshown']&quot;><!-- this is not the last post shown on the page --></if>    
</if>
<table id=&quot;post$post[postid]&quot; class=&quot;tborder&quot; cellpadding=&quot;$stylevar[cellpadding]&quot; cellspacing=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; align=&quot;center&quot;>
<tr><td class=&quot;alt1&quot; id=&quot;td_post_$post[postid]&quot;>
<div><b>Guests may only view the first page of a thread. You need to register to get full access. <a href=&quot;register.php&quot; rel=&quot;nofollow&quot;>Click here to register.</a>
</b></div>
</td></tr>
</table>
<if condition=&quot;$show['spacer']&quot;>
    </div>
    $spacer_close
</if>
<!-- End Error Message -->
<else /></if><else />


and add to the end of the template:

PHP Code:
Код:
 </if>
  Ответить с цитированием
Рекламка
Реклама на форуме
Ответ

Закладки

Опции темы
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.



 
 

Текущее время: 05:43 25.05.2012. Часовой пояс GMT +4.


Powered by vBulletin® Version Free Edition
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd. Перевод: zCarot