You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 51 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Setting / Adding Timezone GMT Half-values [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12403


PostPosted: Fri Oct 14, 2005 8:44 pm Reply with quoteBack to top

This only applies to getting the forums to work, as phpBB designs.

First, your users table needs the following change
Code:

ALTER TABLE nuke_users CHANGE user_timezone user_timezone DECIMAL( 5, 2 ) NOT NULL DEFAULT '0.0'


Now all the half-value timezones (GMT -3.5, etc) should be selectable from the Forums profile

---

If we wanted to add other timezones (say the missing GMT -2.5 one)
We'll need to do some more modifications

OPEN
modules/Forums/language/lang_english/lang_main.php

FIND
Code:

$lang['-3'] = 'GMT - 3 Hours';


ADD AFTER

Code:

$lang['-2.5'] = 'GMT - 2.5 Hours';



FIND
Code:

$lang['tz']['-3'] = 'GMT - 3 Hours';


ADD AFTER

Code:

$lang['tz']['-2.5'] = 'GMT - 2.5 Hours';


Repeat these steps for others you want to add


Hope that helps everyone!

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Xyberian
Colonel
Colonel


Joined: Mar 14, 2004
Posts: 1921

Location: Behind you

PostPosted: Mon Oct 17, 2005 9:50 pm Reply with quoteBack to top

Great TIPS! Evaders99.
I have never looked at that.
So fresh tips!

_________________
NukeKorea Dev. Network.
NukeKorea Laboratories
Find all posts by XyberianView user's profileSend private messageVisit poster's website
dpakoh
Nuke Soldier
Nuke Soldier


Joined: Mar 30, 2005
Posts: 22

Location: Pensacola, FL

PostPosted: Wed Jun 28, 2006 2:12 pm Reply with quoteBack to top

I know this is old, but can you do the same thing with removing timezones? So that, say leaving only one or 2 choices or maybe just having a default for the site.

I am running a location specific site that doesn't cross any timezones, and a few users are complaining that the 'site time' is off. The forums admin shows it is set for the right time, I can only assume they set, or have not set at all, their timezones in the 'Your Account>Info" page.

I guess What I really would like, would be a way to disable that feature and just have it set all for local time.
Find all posts by dpakohView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12403


PostPosted: Tue Oct 24, 2006 12:30 pm Reply with quoteBack to top

I believe so? Try it

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.177 Seconds - 259 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::