#37059
03/23/2000 3:46 PM
|
Joined: Jan 2000
Posts: 313
Member
|
Member
Joined: Jan 2000
Posts: 313 |
Ok well I worked on this most of last night, and I think it's ready for release. What this hack does is allow you to have a page that lists the current times in other time zones/cities around the world to help users who may have trouble figuring out what times are being used on your board. You can see in action at: http://www.vhlinks.com/cgi-bin/vhlforum/worldtime.cgi Right now, you can only have up to 16 different time zones displayed, I will be working on changing that in the future, and also might look into some other uses for this hack. Yes, there is a newly created control panel so you can easily change the server time offsets and name the time zones whatever you want. Everything you need is included in the zip file below, make sure and follow the directions very carefully! Enjoy. http://www.vhlinks.com/pages/ubbhacks/worldtime1.2.zip ------------------ Webmaster Van Halen Links.com http://www.vhlinks.com UBB Moderator http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi
|
|
|
#37060
03/23/2000 4:18 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
WOW! That is one cool hack. A snap to install. Thanx slurpee. ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif)
|
|
|
#37061
03/23/2000 5:16 PM
|
Joined: Aug 2000
Posts: 3,590
Moderator
|
Moderator
Joined: Aug 2000
Posts: 3,590 |
Excellent job Slurpee...
------------------ I wish I were a Canuck All they have to do is drink beer, play hockey, and say "Eh"
* No offense meant to any Canadians
|
|
|
#37064
03/24/2000 2:17 PM
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
Joined: Feb 1999
Posts: 1,379 |
Groovy Just a thought ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif)
|
|
|
#37065
03/24/2000 2:35 PM
|
Joined: Jan 2000
Posts: 34
Member
|
Member
Joined: Jan 2000
Posts: 34 |
Great - why not changing the display of the times like: 7:33PM - 19:33 Just a thought! ------------------ Gruß/Regards Stefan UBB Support GermanyUBB: Psychoterror - der Wahnsinn im Web. Deutsches UBB-Verzeichnis: German UBB List
Gruß/Regards Stefan Infopop Deutschland
|
|
|
#37066
03/24/2000 3:01 PM
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
Joined: Feb 1999
Posts: 1,379 |
I have suggested this as part of my modification. It would be much more readabe (and compact) Just a thought ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif)
|
|
|
#37067
03/24/2000 5:18 PM
|
Joined: Jan 2000
Posts: 313
Member
|
Member
Joined: Jan 2000
Posts: 313 |
Ok I just uploaded Version 1.1 of this hack. You can download the zip above again with the new version. There are two basic changes. 1. I fixed a typo I found that was preventing people from having there first zone show up sometimes. 2. Added a toggle in the Time Zone control panel to allow you to display the times in 24-hour format instead of AM/PM if you want. Thanks to Stefan for the suggestion. ------------------ Webmaster Van Halen Links.com http://www.vhlinks.com UBB Moderator http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi
|
|
|
#37069
03/24/2000 9:41 PM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
I dont exactly understand why you dont release it now. lol. It looks cool. So, release it. ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif)
|
|
|
#37071
03/25/2000 2:59 AM
|
Joined: Jan 2000
Posts: 313
Member
|
Member
Joined: Jan 2000
Posts: 313 |
Ok I've got version 1.2 up for download at the top of this thread. Here's the big change: 1. Time Zones and times now viewable in Ultimate.cgi at the bottom, as well as the worldtime.cgi page. Everything else is the same. Download the 1.2 zip above. ------------------ Webmaster Van Halen Links.com http://www.vhlinks.com UBB Moderator http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi
|
|
|
#37072
03/25/2000 5:59 AM
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
Joined: Feb 1999
Posts: 1,379 |
Slurpee - great hack, we should install it here (Ilya...) You should put the times in columns to make it more readable. Just a thought ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif)
|
|
|
#37073
03/26/2000 5:14 PM
|
Joined: Jan 2000
Posts: 103
Member
|
Member
Joined: Jan 2000
Posts: 103 |
The name of city "Rio De Janeiro" is wrong. Correct is: Rio de Janeiro.
Other info: The capital of Brazil is Brasília. And the most important city of Brazil is São Paulo.
I hate this guys! They stoled my credits from icon graphics. Do you hear me Cal and Leshrac!!!
|
|
|
#37074
03/26/2000 6:27 PM
|
Joined: Jan 2000
Posts: 56
Member
|
Member
Joined: Jan 2000
Posts: 56 |
Slurpee:
Great Hack. The only I would like to see is the retention of the information kept in the .file file instead of having to enter this each time.
Parker
|
|
|
#37075
03/26/2000 10:26 PM
|
Joined: Mar 2000
Posts: 2
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 2 |
This is a great hack and it comes at a great time for my site.
My problem is, I do not need to have 16 time zones, I really only need to have one. Sounds silly but all of my users go off of one clock... ZULU time (they are all pilots).
They have been requesting a clock on the forums for some time and I can not find one SSI program that will work properly with our site.
My question is: Can I delete all of the parts from this coding that are over and above the first time zone? or should I just install the complete works for safety and reliability?
I would also like to have the time display above the forums since I only need the one. If anyone can help, it would be appreciated.
Thank you.
|
|
|
#37076
03/26/2000 11:41 PM
|
Joined: Mar 2000
Posts: 50
Member
|
Member
Joined: Mar 2000
Posts: 50 |
Just one problem, the Sydney, Australia time is one hour fast.
This is understandable because we just finished daylight savings, so our clocks were turned back one hour, just yesterday. Maybe a daylight saving funtion could be added?
|
|
|
#37077
03/27/2000 12:02 AM
|
Joined: Mar 2000
Posts: 68
Member
|
Member
Joined: Mar 2000
Posts: 68 |
and the uk (gmt) is 1 hr slow It is now 05:00 AM here, british summertime has also just started.
|
|
|
#37078
03/27/2000 3:44 AM
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
Joined: Feb 1999
Posts: 1,379 |
Should you really be posting at 5am Liam? Get some sleep! Just a thought ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif)
|
|
|
#37079
03/27/2000 7:07 AM
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
maybe you should pre-program some times in there already? ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif)
|
|
|
#37080
03/27/2000 12:42 PM
|
Joined: Jan 2000
Posts: 56
Member
|
Member
Joined: Jan 2000
Posts: 56 |
I agree with MasterMind here. Have the codes preloaded and you can change it if you want. Also, like I said earlier see if you can see the information that is written to the new .file file in the control panel.
Thanks, Parker
|
|
|
#37081
03/27/2000 1:52 PM
|
Joined: Jan 2000
Posts: 313
Member
|
Member
Joined: Jan 2000
Posts: 313 |
The times I used are cities that are important to me, so if I didn't use cities you liked, that's why they are totally blank and are left for you to configure. A daylight savings time would work fine for US servers since that's where my server is, but obviously it doesn't know the times in Sydney for example, you'd have to fix those manaually. Also I like to use caps in my city names, hence Rio De Janeiro, not de. Whether that's offensive to some, I apologize, that's just how I like to display them. You can call them whatever you want. ------------------ Webmaster Van Halen Links.com http://www.vhlinks.com UBB Moderator http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi
|
|
|
#37082
03/27/2000 3:01 PM
|
Joined: Mar 2000
Posts: 68
Member
|
Member
Joined: Mar 2000
Posts: 68 |
I got some sleep... have only been up a few hours (it is now 8pm) but hey...
|
|
|
#37083
03/28/2000 7:09 AM
|
Joined: Mar 2000
Posts: 63
Member
|
Member
Joined: Mar 2000
Posts: 63 |
Great script, found a few errors re: changes to Ultimate.cgi:
Entries for 6 and 9 will not show because:
line1003
$tzdisplay = qq( $TimeZone1Format$TimeZone2Format$TimeZone3Format$TimeZone4Format$TimeZone5Format$TimeZone6Formatd$TimeZone7Format$TimeZone8Format$TimeZon9Format$TimeZone10Format$TimeZ one11Format$TimeZone12Format$TimeZone13Format$TimeZone14Format$TimeZone15Format$TimeZone16Format | );
***note d after entry for 6 ***note missing e for 9
also,
line880
$TimeZone6Format = " should be:
$TimeZone6Format = " Hope this helps...
|
|
|
#37084
03/28/2000 12:50 PM
|
Joined: Mar 2000
Posts: 9
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 9 |
Great hack Thanks Slurpee! I also noticed two other small typo's a close font tag is missing for $tzformat15 and a close quote to display the world.gif. I reformated the way it is displayed on Ultimate.cgi see it here http://www.dyno-tech.com/gcubb/Ultimate.cgi If anyone want I will post the code I used to do it this way. I hope I didn't step on your toes editing this script Slurpee. ------------------- Dynotech
|
|
|
#37085
03/28/2000 1:57 PM
|
Joined: Jan 2000
Posts: 313
Member
|
Member
Joined: Jan 2000
Posts: 313 |
Thanks for catching the typos guys I will fix them! Dynotech, feel free to post the code for that kind of display on the Ultimate.cgi, doesn't bother me, I'm just not a big fan of all those rows and columns on that main page. ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif) ------------------ Webmaster Van Halen Links.com http://www.vhlinks.com UBB Moderator http://www.scriptkeeper.com/cgi-bin/Ultimate.cgi
|
|
|
#37087
03/28/2000 2:33 PM
|
Joined: Mar 2000
Posts: 9
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 9 |
Thanks Slurpee, I wanted something easier to read. It does take up a lot of room though. I was even thinking about a third column that would be used for DST info for each TZ. This would require another field in the CP and code. The DST's can be a pain. Each location does whatever they want. I would rather put in the rules for the DST's and let the user know they would have to add or subtract an hour or whatever the case may be. Then you would only have to change the server offset twice a year for the TZ the server is, if it was in a location the uses DST. Ok here is the code to display the TZ name and day/time in two columns in Ultimate.cgi You must have installed the "Remove Moderator Column Hack" else you will have to tweak the colspan entries somewhere by one for each $TimeZoneFormat variable. Also this is on ver 1.2 of Slupees World Time Hack. THATS IT. AGAIN if you do not have the moderator hack increase the colspan by 1.
|
|
|
#37088
03/29/2000 4:11 AM
|
Joined: Feb 1999
Posts: 1,379
Programmer
|
Programmer
Joined: Feb 1999
Posts: 1,379 |
In a perfect world: the hack would look similar to it is on this board (all in one cell), but the times would be aligned in columns, making them easier to read. Just a thought ![[Linked Image]](http://ubbcodehacking.com/ubb/smilies/smile.gif)
|
|
|
#37089
03/29/2000 6:17 PM
|
Joined: Feb 2000
Posts: 7
Junior Member
|
Junior Member
Joined: Feb 2000
Posts: 7 |
i don't have "exit(0); # comply with SafePerl" in my cpanel.cgi so should i assume this hack will only work in 5.4x versions & not in 5.38a...?
(pls don't nag me to upgrade, i'm saving up for that!)
|
|
|
#37091
03/31/2000 7:21 PM
|
Joined: Mar 2000
Posts: 26
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 26 |
This hack dont work, I followed your instructions to the letter and it gives hella errors in the control panel
|
|
|
#37093
03/31/2000 10:10 PM
|
Joined: Mar 2000
Posts: 26
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 26 |
Error including the required files: Be sure you uploaded UltBB.setup, Styles.file, mods.file and forums.cgi in ASCII/Text mode to your CGI directory. [This is a manual setting on your FTP software] Make sure spelling and case are correct: UltBB.setup not ultbb.setup. syntax error at tzvariables.file line 2, near "$TimeZone1Name "
|
|
|
#37094
03/31/2000 10:16 PM
|
Joined: Mar 2000
Posts: 26
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 26 |
I sent you an email too, if you ever check [email protected]
|
|
|
#37095
04/01/2000 3:01 PM
|
Joined: Mar 2000
Posts: 9
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 9 |
With some help from Slurpee I have added another input field in the cpanel to enter a Time Zone Rule. This is then diplayed under the time zone name in Ultimate.cgi. I haven't added this code to the worldtime.cgi display. I like this because I didn't want to change all the time zones serveral times. Although I must change all server offsets for my web site twice a year. see it here: http://www.dyno-tech.com/gcubb/Ultimate.cgi ------------------ Dynotech http://www.dyno-tech.com
|
|
|
#37096
04/01/2000 5:23 PM
|
Joined: Mar 2000
Posts: 26
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 26 |
Very disappointed I wanted ths hack to work yet no one can even help me figure out what this error means.
|
|
|
#37097
04/01/2000 5:28 PM
|
Joined: Mar 2000
Posts: 9
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 9 |
Nevex are your UltBB.setup, Styles.file, mods.file, forums.cgi in the same dir as Worldtime.cgi ? Also cut and paste your tzvariable.file here so we can take a look at it. ------------------ Dynotech http://www.dyno-tech.com
|
|
|
#37098
04/02/2000 6:12 AM
|
Joined: Mar 2000
Posts: 26
Junior Member
|
Junior Member
Joined: Mar 2000
Posts: 26 |
Yes there are all in the same directory Its the way it came I never changed it ------------------
|
|
|
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.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|