![]() |
Yep, that was the problem...... I'm sorry for the confusion....... Thankyou! :)
|
I have this hack installed, and it appears to be partially working:
the poll starts as schedule, but Isn't a new poll supposed to begin every week or x days? What does it do to the last poll results? I don't see it anywhere. Also, I don't see an option for UCash integration. |
Quote:
Quote:
|
I would like to run a poll every Friday GMT 10 pm or so. How should I set the timer and the cron?
Thanks for any ideas, -Mika |
- Create the Cronjob to run every day around 10PM.
- Set the schedule to run every 1 week. - Make sure you create the rule (or set to active) the first time on a friday. PS I might add a "Run every day X of the week" schedule type in the next release. |
Quote:
-Mika |
Quote:
Ok, people vote, and I see that clearly, but at the end of the week, where does it post results of which thread won? All cron and weight settings are set to default. I'm running VB306 |
When it is time to rune the Rule again according to the schedule, it will close the current poll, post the results (and give away the uCash points if set) and create a new Poll.
|
Any idea why trying to run the cron via ACDP scheduled tasks by pressing "run now!" gives this sql error:
Database error in vBulletin 3.0.3: Invalid SQL: UPDATE scll SET =+0 WHERE userid=11 mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '=+0 WHERE userid=11' at line 2 mysql error number: 1064 Date: Sunday 06th of March 2005 02:17:50 AM Script: http://www.soundchilds.net/loud_lounge/admincp/cronadmin.php?do=runcron&cronid=24 Referer: http://www.soundchilds.net/loud_lounge/admincp/index.php? Username: MikaK IP Address: nono Thanks for any ideas, -Mika |
Please tell me which version you're running, also php and MySQL versions.
scll is your uCash points table? Do you have uCash installed? How is the uCash integration set in the vB settings for Thread of the Week? |
Quote:
I have ToW 1.13 installed on vB 3.0.3. I tried to install ucash but rolled back to a previous backup since I had trouble with it. uCash setting in your script for this poll are the default ones: first three fields as 0 and the fourth empty. PHP version 4.3.10 MySQL version 4.0.23-standard. Regs, -Mika |
ACP->vBulletin Settings-->Thread of the Week-->uCah integration: No
That should solve your problem. |
Quote:
The message changed shape a tad: Warning: Invalid argument supplied for foreach() in /home/soundchi/public_html/loud_lounge/includes/cron/threadoftheweek.php on line 358 my file looks from row 358 like: PHP Code:
Regs, -Mika |
What a great hack! I'm sure my thread count will increase by installing this. Thank you!
Side note. Does anyone know how to give ucash for responding to polls? Thanks again!!!!! |
Hi,
I was wondering if the thread title could be automated to say "thread of the week for week of xxx to xxx" ? This way, while being specific, it will change the monotomy of title. |
Quote:
|
Quote:
Best thread for week ending $lastrundate (something to that extent using that parameter) |
Well that parameter is not implemented, only start weeknumber and i think start date if i remember correct.
|
I am getting the following error message, too: Warning: Invalid argument supplied for foreach() in /includes/cron/threadoftheweek.php on line 358 if I run it in the Scheduled Task Manager. I am using vBulletin. 3.0.7
|
Edit your includes/cron/threadoftheweek.php.
Find: PHP Code:
PHP Code:
1 Question, did the current poll maybe never get any votes? |
Quote:
I installed the hack last week. Told it that the poll should happen every 1 week. Because I wanted to start with the poll directly after I installed the hack I run it in the Scheduled Task Manager but nothing happened. It still said poll never run. Because I was busy with other stuff I didn't check any longer at it but then on saturday the poll started automatically but instead to show 3 poll options it just showed 2. I thought I made something wrong and deleted the thread. I reset date last run and reset previous polled threads. Again I tried to run it in the Scheduled Task Manager but this time I got the error message mentioned above. |
Quote:
I will post an update in an hour. |
Quote:
|
About only selecting 2 options, maybe there where not enough posts to select from based on the criteria.
Please test again, if your problems continue send me a PM and we will look at it. |
Quote:
But if I run the Scheduled Task Manager manually nothing is happening. Well it says DONE but in the Thread of the Weeks option it says that the poll is never run and it doesn't make any new poll at the forum. :( |
is their a way to uninstall this?
|
I have none of the problems described in this thread. The second poll ran itself as scheduled in cron while closing the first one.
2 minor details: 1-The closed thread says below are the winners and is empty 2-on forumdisplay.php the "Last Post" by has no username. I keep on manually adjusting the thread title to say Week Ending {today} instead of the plain Thread of the Week Poll. |
@lionel
Thanks, i will look inti that second issue. Can you PM me the config for the winners post, so i can look at your first problem. @snowbot Run the installer again, choose to uninstall and follow instructions. If you added the Manager to your ACP menu, you will have to manually remove that edit. The scheduled task also needs to be removed manually. |
Quote:
|
Here is the biggest problem with this hack. One cannot exclude certain forums not to choose from for the Thread of the week. Besides this it would be a great hack!
|
Quote:
|
Small update, see change log.
@lionel I have not forgotten your request, but i am a bit short on time atm. It will come as soon as i got a bit more time. |
Marco, there is a small typo in upgrade_queries.php, the last line
Quote:
Quote:
|
Quote:
Shouldn't get an error it is a numerical row, so no quotes needed. Oops i see it now, a comma on the end, will update in a few minutes. Edit: Updated. |
I followed your advice and upgraded to the latest.
I did get an error and fixed as per above. Quote:
|
Quote:
|
Quote:
This is what I am refering too, unless I am missing something here? Thread Selection Options: Select forums to analyze for selecting threads. You can only highlight the ones that are ordered together. For example: Forums named: My forum1 My forum2 My forum3 My forum4 My forum5 I only wanted to use forum1, forum2, and forum5 there is no way just to select those particualr ones. You can only select the ones that are all order together. Hope you understand what I mean? |
Try pressing the Control key while useing your mouse to select the thread (ctrl + Left mouse). You should then be able to select (highlight) any thread you wish. To unselect, use the control+left mouse again to un highlight. Hope I'm understanding what your asking and that the above helps.
|
Thanks I guess that works... Sorry never seen that approach yet! :D
|
Sorry, in my post above replace "thread" with "forum"
thread = forum Sorry if there was any confusion. |
All times are GMT. The time now is 05:12 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:
|