[dev] DST/Summer Time V1.0 BETA Mod

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
MercAngel
Registered User
Posts: 20
Joined: Tue Sep 03, 2002 7:18 pm
Contact:

[dev] DST/Summer Time V1.0 BETA Mod

Post by MercAngel »

This is my first MOD and my first time useing PHP
I Need some users to test it for me and tell me if there is anything i can do to make it better.

This MOD will auto set the DST/Summer Time When Enable base off the Settings that have has been set
(EX. DST Start Time: First Sunday in April at 02:00:00 am
DST Stop Time: First Sunday in October at 02:00:00 am)

from the start time to the end time it will add the number of hours you set
from the end time to the start time it will not add any hours.

here is the link to the mod http://www.bhca.org/dstmod/dst.txt
Last edited by MercAngel on Tue Sep 17, 2002 11:42 pm, edited 1 time in total.

User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix »

The page cannot be found
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:

SFGrimoire
Registered User
Posts: 10
Joined: Sat Sep 14, 2002 3:16 am
Location: Arizona

Re: DST/Summer Time V1.0 BETA Mod

Post by SFGrimoire »

Does this mod set DST per user or globally?

User avatar
Black Fluffy Lion
Former Team Member
Posts: 6057
Joined: Sat Dec 15, 2001 11:37 am

Post by Black Fluffy Lion »

The correct URL is http://www.bhca.org/dstmod/dst.txt

Looks interesting, though a lot of files to edit. and it doesn't follow the MOD template (which would get it rejected I believe)...check http://www.phpbb.com/phpBB/viewtopic.php?t=11548 for more details on that

surtin3xposed
Registered User
Posts: 154
Joined: Sat Aug 10, 2002 10:40 am
Location: Chicago, IL
Contact:

Post by surtin3xposed »

anyone other then me trying this out? also is there a demo?

surtin3xposed
Registered User
Posts: 154
Joined: Sat Aug 10, 2002 10:40 am
Location: Chicago, IL
Contact:

Post by surtin3xposed »

i just finished installing and everything seems to work, except when you set DST in the admin panel it still doesn't change the time for DST when you're a guest user, is it suppposed to or no...

MercAngel
Registered User
Posts: 20
Joined: Tue Sep 03, 2002 7:18 pm
Contact:

Post by MercAngel »

I think for the guest user you will have to change the data in the user table for the Anonymous user to get it to work right.

Black Fluffy Lion all i have to do is change the words for the open and add after lines for it to be ok and what about the lines for the data base i did not see any thing in the Template for that

surtin3xposed
Registered User
Posts: 154
Joined: Sat Aug 10, 2002 10:40 am
Location: Chicago, IL
Contact:

Post by surtin3xposed »

ahh ok i see... will it be possible to just set DST globally maybe?

MercAngel
Registered User
Posts: 20
Joined: Tue Sep 03, 2002 7:18 pm
Contact:

Post by MercAngel »

Black Fluffy Lion can you check again i have updated to follow the MOD template can you let me know if it is ok.

surtin3xposed
what do you mean by global, if you want every one on your board to use the settings from th admin pannel no matter what the use has set just change $userdata to $board_config in the this code from the mod

Code: Select all

$DSTStartDay = intval($userdata['dst_start_day']);
$DSTStartDayA = intval($userdata['dst_start_day_a']);
$DSTStartMonth = intval($userdata['dst_start_month']);
$DSTStartTime = $userdata['dst_start_time'];
$DSTEndDay = intval($userdata['dst_end_day']);
$DSTEndDayA = intval($userdata['dst_end_day_a']);
$DSTEndMonth = intval($userdata['dst_end_month']);
$DSTEndTime = $userdata['dst_end_time'];
$DSTOffSet = $userdata['dst_offset'];
$DSTOn = 0;
if ($userdata['dst_enable'])
{
        check_dst($gmepoch);
}
if ($DSTOn)
{
     $tz += $DSTOffSet;
}

MercAngel
Registered User
Posts: 20
Joined: Tue Sep 03, 2002 7:18 pm
Contact:

Post by MercAngel »

Has any one found any bugs now the the file has been downloaded 31 times

MercAngel
Registered User
Posts: 20
Joined: Tue Sep 03, 2002 7:18 pm
Contact:

Post by MercAngel »

Made change to the txt file so that the file will work with easymod

surtin3xposed
Registered User
Posts: 154
Joined: Sat Aug 10, 2002 10:40 am
Location: Chicago, IL
Contact:

Post by surtin3xposed »

great, haven't had a problem with the mod since u first released it...

surtin3xposed
Registered User
Posts: 154
Joined: Sat Aug 10, 2002 10:40 am
Location: Chicago, IL
Contact:

Post by surtin3xposed »

what version of easy mod did u make it compatible with? because i can't get it to work with 0.0.7 it stops with a error...

Code: Select all

General Error 
admin_users.php : Could not find [$sql = "UPDATE " . USERS_TABLE . "SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . "WHERE user_id = $user_id";] 

User avatar
BarryMoore
Registered User
Posts: 52
Joined: Thu Dec 20, 2001 4:37 pm
Location: UK

Post by BarryMoore »

MercAngel wrote: Has any one found any bugs now the the file has been downloaded 31 times


Not a bug as such but you are aware that the start and end dates for DST are different depending on which country you're in?

surtin3xposed
Registered User
Posts: 154
Joined: Sat Aug 10, 2002 10:40 am
Location: Chicago, IL
Contact:

Post by surtin3xposed »

the mod lets you change them

Post Reply

Return to “[2.0.x] MODs in Development”