форум vBSupport.ru > vBulletin > vBulletin 4.2.x > Хаки, моды и скрипты 4.2.x
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
OlgaB
Специалист
 
OlgaB's Avatar
Default Thread Splitter
4

При определённом количестве постов тема автоматически закрывается и создаётся такая же новая, но уже "Part 2".
Источник - http://www.vbulletin.org/forum/showthread.php?t=275237

Quote:
This creates a new thread once a thead has reached a certain size and a user posts a new reply to the thread. The new thread will have the same title with a Part # attached to it.

As with the original mod:
You are able to enable and disable the mod from the settings.
You are able to assign a user id for the posts that close and open threads
You can set the number of replies that can be made before the thread is split
Allow certain forums to continue to have long posts
Update Subscriptions
Unsticky threads

My additions:
You can keep the original author for the new threads
You can add links to the new thread's first post so that a table of contents of other thread breaks is created

In addition, I've made it so it updates the thread and post counters. And user post counts. I also switched the order of the posts for the newly created parts from the original mod. Now the original first post is in the first post and a message that this is a continuation thread is in the second place.

NOTE
It adds a new row to the thread table
it adds a new bbcode to your forum, so that the topic continue doesnt open a new window/tab

Install guide
Import product-threadsplitter.xml into the Adminstration Control Panel
Goto the BBCode Manager and open it. click to edit the Split bbcode. Save it. Ignore the warning about it not being formed correctly and click continue. For whatever reason it won't function correctly without doing the edit and save.
Протестировано на 4.2.0 PL4



Этот хак для 3.х тут


P.S. Если у кого-то в темах появляется вместо ссылок что-то типа "[split]2[/split]", то откройте в админке ББ-код Split и там нажмите просто "сохранить"...
Attached Files
File Type: xml product-threadsplitter.xml (26.7 KB, 18 views)

Last edited by OlgaB : 03-08-2014 at 01:15 PM.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 
 
liner
Эксперт
 
liner's Avatar
Default
0

Не желает вставать, ошибка БД
но м.б. только у меня.
 
 
Sven
Front-End Developer
 
Sven's Avatar
Default
0

@liner, ты видимо ставил хак для 3-ки.
Зайди в пма и удаляй, что он требует. Это в таблице bbcode - тег split и в таблице thread - колонка contnum (кажется так пишется)
 
 
liner
Эксперт
 
liner's Avatar
Default
0

@Sven, ну в первом посте продукт для чего? для 4 ?
 
 
Sven
Front-End Developer
 
Sven's Avatar
Default
1

Quote:
Originally Posted by liner View Post
для 4 ?
Да.
Я тебе про версию для 3-ки говорю. Если ставил, то за ним нужно подчистить, там нет кода удаления "следов" хака
 
 
Kronshtadt
Заказчик-извращенец
Default
0

Мне об этом рано еще задумываться, но так, на будущее - а в чем фишка закрывать тему при определённом количестве постов и создавать такую же новую?

Last edited by Kronshtadt : 03-08-2014 at 03:00 PM.
 
 
Dyuhaha
Эксперт
 
Dyuhaha's Avatar
Default
1

Quote:
Originally Posted by Kronshtadt View Post
Мне об этом рано еще задумываться, но так, на будущее - а в чем фишка закрывать тему при определённом количестве постов и создавать такую же новую?
Здесь есть обсуждение этого момента: http://vbsupport.ru/forum/showthread.php?t=20318
 
 
Sven
Front-End Developer
 
Sven's Avatar
Default
1

@Kronshtadt, например вот http://vbsupport.ru/forum/showthread.php?t=49195
 
 
liner
Эксперт
 
liner's Avatar
Default
0

Quote:
Originally Posted by Sven View Post
Если ставил, то за ним нужно подчистить, там нет кода удаления "следов" хака
спасибо, теперь понял
пошел удалять

liner добавил 08.03.2014 в 14:54
@Sven, спасибо еще раз, встало, проверяю работу

Last edited by liner : 03-08-2014 at 03:54 PM. Reason: Добавлено сообщение
 
 
liner
Эксперт
 
liner's Avatar
Default
0

Встало, но не работает
пойду проверю наличие крона.
Если его нет, что там создать - написать?
 


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 10:47 AM.


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