Mod Name / Version: Time-Offset Support for IIP Index Page
Description: This adds time-offset support for those who have IIP installed. 'News' posts will now display the correct time for registered users. ie. the same time that is displayed for them on the message boards.
NOTE: This modification is *only* for those who specifically have their news section set to 'disable cache' in the IIP configuration settings. ie '0' in the box where it states...
"Should we cache this information to decrease page generation times?
If so, how many minutes should lapse before updating? ( 0 disables )
(this option used only when force public is turned on above)"
...otherwise it will simply have no effect.
Working Under: UBB.Threads 6.3-6.4-6.5
Mod Status: Finished
Any pre-requisites: IIP Installed
Author(s): Twisty
Date: 08/15/04
Credits: Files Altered: pals/newspal.php
New Files: Database Altered: no
Info/Instructions: In newspal.php
1-A) CHANGE THIS:
$date = $html -> get_date();
TO THIS:
// ----------------- <br />// Get the user info <br /> $userob = new user; <br /> $user = $userob -> authenticate("U_TimeOffset"); <br /> $Username = $user['U_Username']; <br /> $toffset = ""; <br /> isset($user['U_TimeOffset']) && $toffset = $user['U_TimeOffset']; <br /> $date = $html -> get_date();
1-B) CHANGE THIS:
$date = $html -> convert_time($palPosted);
TO THIS:
$date = $html -> convert_time($palPosted,$toffset);
Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.