![]() |
I need to know what version of vBulletin you two are running.
The cron draw works fine in 4.1.3 and 4.1.4. (just tested it again) However, if it's not working for you with the $, remove it as Trek did. So far are the draw date and time goes, it uses vBulletin's TIMENOW so it should match whatever vBulletin is running at. I will look into this a little more though. EDIT: I just removed the $ from line 195 and it runs for me that way too. So I will remove it in the next update. |
I'm running vb 4.1.4 and the latest version of your raffle mod for download here at vb.org.
Like I said, the cron was easy to fix, there's a typo on that line in the source file. Just remove the extra $ and you're set. The larger issue for me was the time one. Where the dates I set in the adminCP for the raffle, showed differently than when viewing the raffle as a user. |
Quote:
15 Draw raffles 15:15, 2nd Jul 2011 Start drawing raffles 16 Draw raffles 15:15, 2nd Jul 2011 Draw raffle Test - winner Snog 17 Draw raffles 15:15, 2nd Jul 2011 Finished Drawing Raffles Quote:
Quote:
Quote:
|
I may have this date/time thing sorted out. It's very hard to explain, and I'm running short of time today. I'll try to post an explanation tomorrow morning.
|
Quote:
|
Quote:
First, this isn't a bug with setting the end date of the raffle. When you set an end date, the program converts that date to it's proper Unix timestamp. When it is displayed on the Raffle Edit page, it is displayed in it's originally entered format. When it is displayed anywhere else, it is displayed in the date/time format chosen by the member viewing the raffle. (the same thing vBulletin itself does with date/time data) Remember, the time displayed is NOT the time being used by vBulletin. It is just a DISPLAY format. Not a data storage format. All times stored in the database are in your Servers time zone. Not in the time zone you chose to display as a user or the one used as the default display in vBulletin. Scheduled Tasks use the server's date/time to run. (this is a function of vBulletin, not the Raffle system) So, in this case... If you're in the Eastern time zone and you're server is -8 hours from your time zone, and you're expecting the raffle to draw at 10:00am your time. That will never happen with any Scheduled Task in vBulletin. The server time hasn't reached the 10:00am time yet. By editing the raffle, you actually did nothing to make the task run. The raffle was already waiting to be drawn at 10:00am server time. Which was still somewhere near 8 hours away. By running the task manually you did find a bug in the one line. But I'm not so sure it's as much a bug as it might be a PHP version difference. I say that because it runs without a hitch on PHP 5.2.4 and PHP 5.2.9 with or without the '$' in that line. Again, I'll remove the '$' from it for compatibilty sake in a release later today. Back to the time problem and a possible fixes.. If you are on a dedicated server, the fix should be obvious. Change your server's time from your control panel (or via SSH) to match the time zone you want it to match. (may require a server reboot) And if you're using PHP 5.1 or later, you might also need to edit php.ini because it might be using a different time zone. (see first link below) It's as simple as that. But remember, members will see that date as it should be shown for their date/time display choice. If you're on a shared server, there are a couple of possibilities... 1) If you use PHP 5.1.0 or later and have access to PHP.INI for your site, edit PHP.INI so it includes the date.timezone setting. See this page for more information.. http://www.php.net/manual/en/datetim....date.timezone 2) If you don't have access to PHP.INI and your PHP version is equal or greater than 5.0 you can TRY adding the date_default_timezone_set to vBulletin's config.php. MAKE IT THE FIRST ENTRY AFTER THE COPYRIGHT NOTICE. See this page for more information.. http://www.php.net/manual/en/functio...mezone-set.php NOTE: Item 2 has not been tested. The worst thing that could happen is vBulletin would refuse to run and you would have to remove that new line from the config file. 3) If neither of those work, or your PHP version is prior to 5.0, you will need to live with the server time for Scheduled Tasks. |
How difficult will it be to change it from saying 'raffle' to 'prize draw'?
|
Quote:
I'll continue to see if I can duplicate it. |
Quote:
Edit the phrases in Phrase Manager. |
As an addendum to my post about date/time.
I somewhat overstated what is happening. The date is being displayed as it should be. But, if you select to have the time displayed with it, that IS a bug. More a missed item than a bug. The time being displayed on the Raffle pages IS the raw unconverted time that the task is scheduled to run at. It is NOT being converted to the members date/time zone display choice. I'll see what I can do with that in the next release. ( possibly tomorrow ) In the mean time, do not display the draw time to your members. |
All times are GMT. The time now is 03: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:
|