Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 4 1 2 3 4
Joined: Jan 2003
Posts: 250
Member
Member
Offline
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
Sponsored Links
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
Offline
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
Offline
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
Offline
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
Sponsored Links
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
Offline
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:

Code
<br />$thismonth = date("M");<br />$today = date("d");<br />


with this:
Code
<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
Offline
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
Offline
Joined: Jan 2003
Posts: 250
Thanks, Dave.

This also needs to be added:
Code
<br />$currtime = time()+($user['U_TimeOffset']*3600);<br />$whatistoday = date("F jS",$currtime);<br />


below the lines:
Code
<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.

Sponsored Links
Page 4 of 4 1 2 3 4

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)