Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Thread Promotion System Details »»
Thread Promotion System
Version: 1.0.2, by IdanB IdanB is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.2 Rating:
Released: 05-09-2009 Last Update: 05-25-2009 Installs: 19
DB Changes Uses Plugins
 
No support by the author.


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:
  • [S]All threads are moved to target forum in certain condition[/S] - 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

Download Now

File Type: xml product-thread_promotion.xml (12.2 KB, 108 views)

Screenshots

File Type: jpg plugin_options_admincp.jpg (23.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-22-2009, 11:29 PM
GhoHan's Avatar
GhoHan GhoHan is offline
 
Join Date: Oct 2007
Location: Jakarta - Indonesia
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Attached Files
File Type: xml product-thread_promotion.xml (12.2 KB, 11 views)
Reply With Quote
  #13  
Old 05-23-2009, 07:06 AM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by i-comers.com View Post
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.
Reply With Quote
  #14  
Old 05-23-2009, 07:10 AM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ishare View Post
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.
Reply With Quote
  #15  
Old 05-23-2009, 07:37 AM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by OcR Envy View Post
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
Reply With Quote
  #16  
Old 05-23-2009, 07:59 AM
lm3a.net's Avatar
lm3a.net lm3a.net is offline
 
Join Date: May 2009
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great jop

thanks man
Reply With Quote
  #17  
Old 05-25-2009, 05:42 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 05-26-2009, 01:57 PM
IdanB's Avatar
IdanB IdanB is offline
 
Join Date: May 2009
Location: Israel
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sweeks View Post
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.
Reply With Quote
  #19  
Old 05-26-2009, 05:41 PM
Sweeks Sweeks is offline
 
Join Date: Jul 2008
Posts: 633
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, reinstalled I honestly thought all the threads from that forum had been wiped, glad it is fixed as this is a decent modication.
________
Expert Insurance
Reply With Quote
  #20  
Old 12-08-2009, 12:17 PM
testbot testbot is offline
 
Join Date: Feb 2009
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #21  
Old 12-08-2009, 07:21 PM
elrafei elrafei is offline
 
Join Date: Jan 2005
Location: Egypt
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks !
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 04:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09156 seconds
  • Memory Usage 2,335KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete