форум vBSupport.ru > vBulletin > Old vB versions (3.0.x & 2.x.x) > vBulletin 3.6.x > Hacks, mods and scripts [3.6.x]
Register Меню vBsupport Изображения Files Manager О рекламе Today's Posts Search
  • Родная гавань
  • Блок РКН снят
  • Premoderation
  • For English speaking users
  • Каталог Фрилансеров
  • If you want to buy some product or script
  • Администраторам
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
Блок РКН снят, форум доступен на всей территории России, включая новые терртории, без VPN
На форуме введена премодерация ВСЕХ новых пользователей

Почта с временных сервисов, типа mailinator.com, gawab.com и/или прочих, которые предоставляют временный почтовый ящик без регистрации и/или почтовый ящик для рассылки спама, отслеживается и блокируется, а так же заносится в спам-блок форума, аккаунты удаляются
for English speaking users:
You may be surprised with restriction of access to the attachments of the forum. The reason is the recent change in vbsupport.org strategy:

- users with reputation < 10 belong to "simple_users" users' group
- if your reputation > 10 then administrator (kerk, Luvilla) can decide to move you into an "improved" group, but only manually

Main idea is to increase motivation of community members to share their ideas and willingness to support to each other. You may write an article for the subject where you are good enough, you may answer questions, you may share vbulletin.com/org content with vbsupport.org users, receiving "thanks" equal your reputation points. We should not only consume, we should produce something.

- you may:
* increase your reputation (doing something useful for another members of community) and being improved
* purchase temporary access to the improved category:
10 $ for 3 months. - this group can download attachments, reputation/posts do not matter.
20 $ for 3 months. - this group can download attachments, reputation/posts do not matter + adds eliminated + Inbox capacity increased + files manager increased permissions.

Please contact kerk or Luvilla regarding payments.

Important!:
- if your reputation will become less then 0, you will be moved into "simple_users" users' group automatically.*
*for temporary groups (pre-paid for 3 months) reputation/posts do not matter.
Уважаемые пользователи!

На форуме открыт новый раздел "Каталог фрилансеров"

и отдельный раздел для платных заказов "Куплю/Закажу"

Если вы хотите приобрести какой то скрипт/продукт/хак из каталогов перечисленных ниже:
Каталог модулей/хаков
Ещё раз обращаем Ваше внимание: всё, что Вы скачиваете и устанавливаете на свой форум, Вы устанавливаете исключительно на свой страх и риск.
Сообщество vBSupport'а физически не в состоянии проверять все стили, хаки и нули, выкладываемые пользователями.
Помните: безопасность Вашего проекта - Ваша забота.
Убедительная просьба: при обнаружении уязвимостей или сомнительных кодов обязательно отписывайтесь в теме хака/стиля
Спасибо за понимание
 
 
 
 
Diablos
Эксперт
 
Diablos's Avatar
Default vB_Cement
3

This is a mod based on a PHPBB mod.

It allows you to 'weigh' threads, give them precedence over others. If you have a lot of stickies, this is very useful. Through edit thread you can set the weight. This has two simple plugins and one template mod to install.

The way it works is simple. By default, all threads are weighted at 0, anything above that will take precedence over the rest that don't have a higher weight.

This is my first modification that I've made, so any feedback is appreciated.

This is compatible with VB 3.6.4 and 3.6.5, it has not been tested on any other versions at this point. It is very simple, so I don't see any issues with other versions being likely.
Attached Files
File Type: rar vB_Cement.rar (1.3 KB, 33 views)
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
Fan
Простоузер
Default
0

А чё нить по русски про Цемент Мона и скины чё делает этот цемент...
 
 
Dev
Эксперт
 
Dev's Avatar
Default
0

Diablos, на самом деле тож не совсем понял ч эта шняга делает, поясни глупым плиз=)
 
 
Phaeton
Знаток
 
Phaeton's Avatar
Default
13

Этот хак основывается на аналогичном для PHPBB

Хак: 2 плагина и 1 измение в шаблоне

Он позволяет присваивать "вес" темам", тем самым предоставляя им преимущество перед другими. Если у вас много прикрепленных тем, это может быть весьма полезно. Через редактирование темы вы можете установить ее "вес".

Способ работы этого хака прост. По умолчанию, всем темам присвоен "вес" равный 0. В зависимости от "веса" темы будут иметь определенное преимущество перед остальными.

Хак тестировался на версии vB 3.6.4 и 3.6.5 однако проблем с другими вериями быть не должно.


Кратко: хак предназначен для упорядочивания прикрепленных тем.


Переводить там было нечего, перевел readme и install
Attached Files
File Type: rar vB_Cement_rus.rar (1.7 KB, 77 views)
 
 
lexx
Простоузер
Cool Выделение цветом важных тем для vb_Cement
3

Для хака vb_Cement сделал выделение цветом важных тем, вес которых больше нуля.

Установка:

Основная таблица css -> Дополнительные определения CSS.
дописываем
Code:
td.supv a 
{ 
    color: brown;
    font-weight: bold; 
} 
td.supv a:hover 
{ 
    color: green;
    font-weight: bold;  
}
Шаблон threadbit.
ищем
Code:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
меняем на
Code:
<if condition="$thread[sticky]">
  <if condition="$thread[threadweight] > 0">
      <td  class="supv" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
  <else />
      <td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
  </if>

<else />
  <td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
</if>
Изменения в файле forumdisplay.php
Оффтоп
ищем
Code:
$tachy_columns = 'thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views';
заменяем на
Code:
$tachy_columns = 'thread.threadweight, thread.lastpost, thread.lastposter, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views';
тестировалось на линейке 3.8.х
 
 
liner
Эксперт
 
liner's Avatar
Default
0

Quote:
Originally Posted by lexx View Post
<if condition="$thread[sticky]">
<if condition="$thread[threadweight] > 0">
<td class="supv" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
<else />
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
</if>
если удалить условие <sticky>, то работает для любых тем.

liner добавил 25.03.2013 в 10:18
Quote:
Originally Posted by liner View Post
если удалить условие <sticky>, то работает для любых тем.
Нет, не удалить, а заменить на <if condition="$thread[threadweight]
ибо если удалить, ломается шаблон списка тем.

Last edited by liner : 03-25-2013 at 12:18 PM. Reason: Добавлено сообщение
 
 
lexx
Простоузер
Default
1

Quote:
Originally Posted by liner View Post
для любых тем
да, не стал писать, т.к. у меня задача была выделить именно эти "суперважные" темы )
ну и тогда еще тут можно экспериментировать - выделять по разному весу разными цветами, меняя цифру в условии
Code:
<if condition="$thread[threadweight] > 0">
дописав в css дополнительные определения типа td.supv1 , td.supv2 и поправив вывод в шлаблоне с class="supv" на class="supv1", class="supv2" и тп.

Last edited by lexx : 03-25-2013 at 03:15 PM.
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT +4. The time now is 03:25 AM.


Powered by vBulletin® Version 3.5.7
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.