![]() |
Sent it to you. Hope that helps.
|
I will have a look at your feedback, thanks for sending.
Hope i can do this this weekend, otherwise on monday. |
Quote:
Is Ucash support in this one? thanks! -Jason |
ok, well yesterday was the first of the month and it failed to create a new poll :(
|
My excuses for all that have been waiting for a fix to this hack, but i have hardly been online due to some unexpected family things i had to take care of.
With the help of the debug information provided by 'docvader' (thanks for this) i finally pinned the problem down to a strange difference in the way a Cron Job handles variables when using the "Run Now" or when it is run started by the Scheduler. This is sorted now and should solve all the problems mentioned in this thread. I decided to release this now and not to wait until uShop integration will be finished, because it makes the hack almost useless without. You can simply patch your installation by replacing the "includes/cron/threadoftheweek.php" with the new supplied version 1.12. Changes in this version: - 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. |
Quote:
|
Optional maybe?
|
Nice 1 ;)
*The geek toggles his install switch |
Quote:
|
Quote:
Just a thought :) |
Quote:
|
Quote:
I also noticed that the mod doesn't seem to be working. Isn't a poll/thread supposed to appear in the forum you specify? Help! |
Are you using the 1.12 version of the threadoftheweek.php?
This one is downloadable seperate in this thread (look at the hack in the top). PS This week there will be a new version with some extra's like uCash integration. I will post it as soon as i had time to finish upgrade/installer and it is tested. But a bit busy with normal work atm. |
Quote:
|
Think i may try this out.
/me clicks install |
Appears to have stopped again !?
Last run 5.2.2005 .. run the cron job manually and see message "Thread of the Week Done", but no new poll !? |
After you run it manually, it still say last run 5.2?
It could be that there are not enough candidate threads selected. |
Edit: On what schedule is this Poll set in the Rule?
|
Quote:
I've changed the The weight the number of thread views has in the selection process and The weight the number of replies has in the selection process to just 5 and still no joy. |
Quote:
First run was fine. Since then, scheduled or manually running it doesnt work. Looking at the cron log, it keeps telling me it is updated - but no new thread. Just ran with debugging on and got this: PHP Code:
|
What settings do you use in the rule for Schedule Options for Rule?
|
see attachment :)
|
At "Post Poll in Forum" you have set it to "Main". Is this a postable forum, not a section?
|
Quote:
|
BTW:
I got it to work by deleting the lastrun value from the rule. I also changes the sql critera so that it pulled based on dateline not lastpost. Really old threads that had been bumped within the last week appeared and it was a tad confusing. Since it should be thread of the week I assumed that the thread would have started within the time frame. Anyway - just thought I would throw that in if it helps. BTW: Why check when the lastrun was? If its a cron job then that runs automatically whenever you specify. If I wanted twice a week, I would set the cron job up accordingly. What is happening is that the lastrun date is never lower than the $cut date so it doesnt run the do_run_rule |
Thanks for looking into it. I have a new version being beta tested and one of the new options is the choice of selecting threads based on thread start or on last post. Also it will have uShop integration, posting of the result in a "Winners Post", replacement variables in the thread title, and some more small things.
About testing the lastrun, you can have multiple rules, 1 running every day, and one running on a weekly or monthly schedule. The cronjob will need to run every day in this scenario, and only execute those rules that are supposed to be executed. Don't get what you say about lastrun never being lower then $cut, but will check it against the code tomorrow. PS If you are just starting up, you could also help beta testing the new version ;) |
Quote:
|
Quote:
|
Quote:
|
New version released, now with uCash integration.
Please check out the change log. All reported bugs should be solved. If you find any (new) bugs, please report them again. |
fantastic update, thank you, you've done some great work here :)
|
Quote:
PS sabre, you might wanna download the released version and upload the threadoftheweek.php to your board, made some minor changes after your last test. |
Another week passes and still waiting for this to work, either via cron or manually running cron :ermm:
|
I think this hack might do what I'm after but I'm curious about the rules.
Would I be able to create a rule so that the selection criteria is ... Select the first X amount of threads between date X & date Y sorted by descending (high to low) rating by replies by views? |
It ran once for me and then never worked again even manually running the script and seems abandoned. I dunno.....
|
Quote:
@all who have problems. What version are you running? If you have problems, please post the version you're running, the settings for schedule you're using, the settings for the weights, and how often the cronjob is run. |
Quote:
Please see my remark above, about posting your config in case of problems. If you want you can also send it to me by PM. |
Sorry about that..... I am running 1.13 and getting database errors when running the cronscript:
Invalid SQL: SELECT * FROM vb3_threadoftheweekpolloption WHERE threadofweekrulesid = 1 mysql error: Table 'vb.vb3_threadoftheweekpolloption' doesn't exist mysql error number: 1146 It's inserting and extra vb into the table name for whatever reason. |
So installed.
Quote:
|
Quote:
What do you mean with the "extra vb"? "vb is probably your databasename and "vb3_" your table prefix. |
All times are GMT. The time now is 09:50 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|