View Full Version : Miscellaneous Hacks - Thread Promotion System
IdanB
05-09-2009, 10:00 PM
Thread Promotion System
By: Idan B.
1. Description & Usage:
Thread Promotion Sytem hack will allow the forum admin to set auto promotion system that will move thread from Forum A to Forum B once passed certain replycount.
Usage Example: "promote" popular threads to a subforum, so that new threads do not get drowned out by popular ones.
2. Installation:
Please click Mark as Installed.
Installation is pretty easy - just download & install:
Goto: AdminCP->Plugin System->Manage Products : Choose "Add/Import Product" and import this product xml (product-thread_promotion.xml)
3. Upgrade From Older Version:
1. uninstall previous version.
2. install new version as described in previous section.
4. Configuration:
Once installed, the "Forum Manger" under admincp will have extra section for each forum:
Section name: "Thread Promotion System"
Enabled ? - Yes/No
Reply Count - Text (INT)
Forum Target - Selection box
5. Known Bugs:
All threads are moved to target forum in certain condition - fixed in v1.0.2
6. TO-DO's LIST (Next Versions):
Allow to add redirect thread on original forum.
Allow to set redirect on forum category instead of configuring this per each forum.
Allow to promote vs. matching of cutom field (such as date).
7. Extras (How-To Tutorials):
I've written a complete "walk-through" of this modifcation development.
Read it here: https://vborg.vbsupport.ru/showthread.php?t=213316
Enjoy hack & dont forget to click Mark as installed :)
IdanB
05-10-2009, 01:48 PM
26 May 2009 - Version 1.0.2 released :
CRITICAL BUG FIX: certain condition caused all threads being moved to target forum (instead just the one that should be moved). This is marked as critical bug, should any1 have previous version(s) installed, please upgrade now.
23 May 2009 - Version 1.0.1 released :
BUG FIX: TABLE_PREFIX was missing on hook queries. Special thanks goes to i-comers.com - thanks for the headsup, i've neglected to add it
isatice
05-10-2009, 02:19 PM
first :D , thanks , great job , really needed this hack , but i think if it was based on thread view , it would be more useful , any idea ?
yes thread view, or would be even better to see this working with post ranking:
https://vborg.vbsupport.ru/showthread.php?t=203801
IdanB
05-10-2009, 03:07 PM
Any ideas & requests to further enhance this modification are all welcome & will surely be coded into next version(s).
I simply awaiting on community feedback, so i can know what needs improving / fix :)
EDIT: Edited mod post to add link of the How-To guide i've written - there i'm showing how this modification was developed step-by-step.
ArnyVee
05-10-2009, 09:53 PM
Sorry to have this silly question....but, what sort of instances would you use this type of mod?
IdanB
05-11-2009, 02:57 AM
one of main uses of this hack, as the original requester described it:
"Just for more insight, I will be using this modification to "promote" popular threads to a subforum, so that new threads do not get drowned out by popular ones."
OcR Envy
05-22-2009, 12:33 PM
I'd love too see an option for polling.
IE:
If Poll Results 1 > Poll Results 2 Move To Forum A
If Poll Results 1 < Poll Results 2 Move To Forum B
ishare
05-22-2009, 06:45 PM
This mod would be very useful for me if it was with "time period" instead of reply count. I would love to use this great hack on my movie review website.
I have a category such as "Coming soon Movies". When we post a new thread in this category, we do enter the showing on cinemas date also. so instead of moving all threads manually, with this mod i could be able to move the threads to the "Movies in Cinemas" category.
Do you think its possible ?
Regards
GhoHan
05-22-2009, 11:12 PM
Coder forget about TABLE_PREFIX when call SQL Database
this modification just working if you don't have TABLE_PREFIX or you can modification that manualy. :)
I hope coder release the product using " . TABLE_PREFIX . " for query or select sql database.
Best Regards
GhoHan
05-22-2009, 11:29 PM
I'm Mark as Installed.
I have release his/her product using just add " . TABLE_PREFIX . " for select or query when call SQL Database command if you are using tabel perfix
I just say this a good idea for promotion that thread
Fantastic idea :up:
Best Regards,
IdanB
05-23-2009, 07:06 AM
Coder forget about TABLE_PREFIX when call SQL Database
this modification just working if you don't have TABLE_PREFIX or you can modification that manualy. :)
I hope coder release the product using " . TABLE_PREFIX . " for query or select sql database.
Best Regards
Thanks for the headsup, totally forgot about that in this hack, only added it to install code but neglected to add it on hook as well.
it was fixed in version 1.0.1 - now available.
IdanB
05-23-2009, 07:10 AM
This mod would be very useful for me if it was with "time period" instead of reply count. I would love to use this great hack on my movie review website.
I have a category such as "Coming soon Movies". When we post a new thread in this category, we do enter the showing on cinemas date also. so instead of moving all threads manually, with this mod i could be able to move the threads to the "Movies in Cinemas" category.
Do you think its possible ?
Regards
Is this "cinema date" field under the forum table ?
I could add support for promotion based on date. i'll add some support for it (custom field) on next version.
IdanB
05-23-2009, 07:37 AM
I'd love too see an option for polling.
IE:
If Poll Results 1 > Poll Results 2 Move To Forum A
If Poll Results 1 < Poll Results 2 Move To Forum B
i'll see what i can do :)
lm3a.net
05-23-2009, 07:59 AM
great jop
thanks man
Sweeks
05-25-2009, 05:42 PM
Doesnt work seemingly. It has moved ALL of the posts within one forum and promoted them to the one I set automatically when some of these threads have had 0 replies when I had it set to 500. Uninstalled until this is ironed out.
Thank you :)
________
Marijuana card (http://medicalmarijuanacard.info)
IdanB
05-26-2009, 01:57 PM
Doesnt work seemingly. It has moved ALL of the posts within one forum and promoted them to the one I set automatically when some of these threads have had 0 replies when I had it set to 500. Uninstalled until this is ironed out.
Thank you :)
o.O
Sounds weird, as i've tested it on my server & it seemed to be working.
To be on the safe side, i'll do complete code review & should any bug found i'll release quick update during next couple of hours.
EDIT:
You are right !! :(
I had mistake in the MYSQL query condition. I'm really sorry about this.
I've uploaded an updated version (1.0.2) - grab it - it will fix the issue.
Sweeks
05-26-2009, 05:41 PM
Thank you, reinstalled :D I honestly thought all the threads from that forum had been wiped, glad it is fixed as this is a decent modication.
________
Expert Insurance (http://xpertinsurance.com/)
testbot
12-08-2009, 12:17 PM
i'm adding a category option to threads, how hard would it be to modify this to move threads that haven't been posted in 7 days and uses the categories to determine where to move them?
elrafei
12-08-2009, 07:21 PM
thanks !
bada_bing
12-08-2009, 07:35 PM
Great idea will tag this for future use.
ConfusedCartman
01-13-2010, 03:08 AM
Hey, any chance you could update this to work with vB 4.0? We updated our forums but we lost this mod in the process.
SoloX
08-20-2010, 04:25 AM
need this as well ... does anyone know if this will work on vb4?
VIPER-MAN
09-04-2010, 03:25 AM
Ditto, will it work on vb4?
BirdOPrey5
09-04-2010, 05:18 PM
If the designer is still looking for possible features for this mod I'd love a way to return promoted threads back to their original forum after x amount of time (in days or hours).
da_judge
09-25-2011, 07:30 PM
If the designer is still looking for possible features for this mod I'd love a way to return promoted threads back to their original forum after x amount of time (in days or hours).
Thats a great idea... im after something along them lines... Move threads after say 48 hours from a vip forum to a regular members forum
:D
BirdOPrey5
09-25-2011, 07:38 PM
Wow what a difference a year makes... I can't for the life think of why I would have requested that feature... WEIRD. But move a thread after certain time, yeah, that I can understand the use for.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.