|
Joined: Jan 2003
Posts: 250
Member
|
Member
Joined: Jan 2003
Posts: 250 |
They added it... will know if it works on the 12th!
"Some dream of doing great things, while others stay awake and get on with it." -- Anonymous
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Worked.... finally had a day with no bdays. I updated the inital post too... so people dont' download the wrong thing. 
|
|
|
|
Joined: Aug 2002
Posts: 218
Member
|
Member
Joined: Aug 2002
Posts: 218 |
Thanks Josh, its working fine for me. It gives a message SENDING MAIL TO . Hopefully it had not send any mail  For the posting its definetly working...
|
|
|
|
Joined: Jan 2003
Posts: 250
Member
|
Member
Joined: Jan 2003
Posts: 250 |
Was that the update I sent you, Josh?
"Some dream of doing great things, while others stay awake and get on with it." -- Anonymous
|
|
|
|
Joined: Jan 2003
Posts: 250
Member
|
Member
Joined: Jan 2003
Posts: 250 |
Yeah! Our host is in Oz so they are a day ahead. Our April 12th b-day showed up as expected, and logging to the admin log happened (I added this instead of standard output, Josh).
"Some dream of doing great things, while others stay awake and get on with it." -- Anonymous
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Yes, cool. Thank you. 
|
|
|
|
Joined: Jan 2003
Posts: 250
Member
|
Member
Joined: Jan 2003
Posts: 250 |
Hey Josh, Our servers are hosted in Oz... so I had to write a bit of code to accomodate the time diff. If you replace the first two lines of the mod to UBBTHREADS.PHP: <br />$thismonth = date("M");<br />$today = date("d");<br /> with this: <br />$currtime = time ();<br />$currtime = $currtime+($user['U_TimeOffset']*3600);<br /><br />$date = date("d", $currtime);<br />$thismonth = date("M", $currtime);<br /> It will generate the correct date for the query provided the user has filled in their TimeOffset.
"Some dream of doing great things, while others stay awake and get on with it." -- Anonymous
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
$currtime = time (); $currtime = $currtime+($user['U_TimeOffset']*3600);
could be simplified to
$currtime = time() + $user['U_TimeOffset'] * 3600;
|
|
|
|
Joined: Jan 2003
Posts: 250
Member
|
Member
Joined: Jan 2003
Posts: 250 |
Thanks, Dave. This also needs to be added: <br />$currtime = time()+($user['U_TimeOffset']*3600);<br />$whatistoday = date("F jS",$currtime);<br /> below the lines: <br />// Require the threads library<br />require ("main.inc.php");<br />$userob = new user;<br />$user = $userob -> authenticate("U_TimeOffset");<br /> in BIRTHDAYCRON.PHP Don't forget to remove the setting of $whatistoday up in the variables section.
"Some dream of doing great things, while others stay awake and get on with it." -- Anonymous
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
This works for 6.2 and 6.3. It has been reposted here. Discussions continued there.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|