The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
TOTW: Thread of the Week Poll - Version 1.16 Details »» | |||||||||||||||||||||||||||
TOTW: Thread of the Week Poll - Version 1.16
Developer Last Online: Dec 2010
Thread of the Week Poll - Version 1.16
Description With this hack it is possible to setup an automated system for electing a "Thread of the Week". Based on 1 or more rules you define it will select a number of threads from your board and will post a poll to let your members select their favourite thread. This hack was written based on a requestion made here previously: https://vborg.vbsupport.ru/showthread.php?t=63969 Tested on - vB 3.0.7 - vB 3.0.6 - vB 3.0.5 - vB 3.0.3 (Will probably also work on earlier versions) Install Information Installation using HIS installer included (HIS by Link14716 https://vborg.vbsupport.ru/showthrea...staller+system) Uninstaller included Install time: 2 minutes, easy File edits: 0 Template edits: 0 Database modifications: 2 new tables Features
If enough request i am think of the following to add in a future release. More suggestions are welcome - Integration with more existing Award system, already rewards possible using uCash - More selection criteria Support Support will be given in this thread. If you have problems, please first check the following: - Did you set the uCash/uShop correct in ACP->vB Options->Thread of the Week (On/Off) - Turn on logging in the Scheduled Taks for Thread of the Week. Check the Scheduled Task Log for any messages. If you still have problems, please post the following information, so i can quickly try to help you: - vBulletin version - PHP and MySQL Version - Version of this hack - The schedule options you have set in the Rule Manager - Selection Options - When is it scheduled to run in the Scheduled Task Manager - Any other relevant information Thanks to A big thanks to link14716 for the installer and to trafix for letting me use a script as a starting point for the admin settings, saved me a lot of time. Also a huge thanks to sabret00th for testing (now i got someone to blame if there are still any errors left ). Donations I will not charge for this hack. But if you like it and are looking for a way to spend your money, paypal donations are always welcome (marcoh64@msn.com) Please click Install if you are using this hack Change log: Version 1.16: - Fixed bugs in updating Username/Userid/Thread Title in posted thread and forum info - Removed 2 unneeded queries - Added replacement variables for Thread Title: - {date} - Current date formatted according to vB settings - {beginofweek} - Date (formatted) of the start of the current week (sunday is start) - {endofweek} - Date (formatted) of the end of the current week (saturday is end) - {beginofweekmon} - Date (formatted) of the start of the current week (monday is start) - {endofweekmon} - Date (formatted) of the end of the current week (sunday is end) - Added {date} replacement variable to Poll Title - Made all replacement variables case-insensitive - Admin Help pages updated accordingly Version 1.15: - Add the option to override the default calculation for the cutoff date when selecting candidates. Now possible to enter a number of days to go back when selecting candidates. Version 1.14: - Bug that would make the cronjob crash if the current poll thread was deleted. - Fixed version number in Manager script Version 1.13: - uCash Integration. Activate in ACP Settings to show them. - Setable uCash price money for place 1, 2 and 3. - Date selection can now be based on Thread Start Date or Last Reply Date. Selection can be made for every Rule. - Optional result post on closing of Poll, user configurable text. - Thread title with replacement variables. See Admin help!! - Poll title with replacement variables. See Admin help!! - Result post with replacement variables. See Admin help!! - Help added to the Admin screen. - Some minor modifications and bug fixes - Removed debugging lines - Scheduled task will now log information on the processing of the Rules in the Scheduled Task Log - INSTALLER WILL ALSO UPGRADE FROM PREVIOUS VERSIONS, SEE UPGRADE NOTES. Version 1.12: - Fixed bug where threadoftheweek.php would not run correct (or even generate a database error) when running through the scheduler (as oppsed to running it with "Run Now") - Added loads of debug information. To activate debugging, change includes/cron/threadoftheweek.php and uncomment the line "// $TOTW_DEBUG = TRUE;". Debug lines will go to the Scheduler log. - Forum counters will now be updated when a new poll is posted. - Fixed bug where "Run on day x of month" didn't work. - Some minor changes - The first time the rule is run, only threads with a last postdate in the time interval which is set for the rule will be selected as Candidates. In the older versions all threads where considered on the first run. Show Your Support
|
Comments |
#22
|
||||
|
||||
I just did the 3.06 upgrade, which has screwed up a bunch of my hacks. So, I'm not sure it's your hack that's doing this, I was just wondering if you thought it might. (I'm still dealing with some Shoutbox issues, LOL). The rule settings for the poll look fine to me, as does the functioning of the hack within the AdminCP. But the only two new Cron additions were the Statistics hack by PDFreak, and yours. So, I was just wondering if you had seen this error before, or, if you might recognize it.
|
#23
|
|||
|
|||
Well the hack is pretty stand alone, an upgrade shouldn't effect anything except maybe some phrases.
Yes this query is part of the cronjob for this hack. What this cronjob does is read the rules table and then execute for every rule some code. This query that give you an error is inside the part that gets triggered for each rule that needs to be run (meaning that there IS a rule row in the database that needs to be run). So given the fact that this part of the code can only be executed if there is a rule, i really dont get why this query have no values from the rules row. The line [sql], ((views * ) + (replycount * )) AS score[/sql] should have the values of the weight for views and replies inserted there. So for example: [sql], ((views * VIEWWEIGHT) + (replycount * REPLYWEIGHT)) AS score[/sql] If you have access to the database, please check if there is somehow an empty row in the 'threadofweekrules' table. Otherwise all i can think of is to clear all rules, and add them again. |
#24
|
|||
|
|||
Thanks for the fun hack! Good Job!
|
#25
|
||||
|
||||
This is what is in the database:
Quote:
Now, I did set this up so that it ran for one day. And, it seemed to have worked. So, I'm not saying that this doesn't work; I just don't understand where this error came from. I wanted you to be aware of it. let me know what I can do to help, if need be. |
#26
|
|||
|
|||
It doesn't work as advertised. On my forum I have it set for the last 7 days but it shows threads from months ago in the poll!!
|
#27
|
||||
|
||||
Quote:
|
#28
|
||||
|
||||
Quote:
Quote:
|
#29
|
||||
|
||||
I have the same issue that docvader does so there is an issue there. I am just not sure of the resolution.
|
#30
|
|||
|
|||
Quote:
Quote:
Quote:
score = (views * weight_views) + (replies * weight_replies) General: Will look soon into a uShop integration. |
#31
|
||||
|
||||
Quote:
Thanks!!!!! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|