[release vb2.0b3] World Timezones on indexpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mas*Mind
    Senior Member
    • Jun 2000
    • 1444

    [release vb2.0b3] World Timezones on indexpage

    This hack puts a list of the worldtimezones on your index page, instructions and needed files are in the attached zipfile..

    Currently there's no demo so if someone has installed it, plz add a link to it...

    I've not tested it thoroughly but it seems to be working well..

    enjoy
  • Mas*Mind
    Senior Member
    • Jun 2000
    • 1444

    #2
    I've coded all timezones very quickly, but if you wanna change it, just edit:

    PHP Code:
    $timezones[-12] = "Eniwetok, Kwajalein";
    $timezones[-11] = "Midway Island, Samoa";
    $timezones[-10] = "Hawaii";
    $timezones[-9] = "Alaska";
    $timezones[-8] = "Pacific Time (US & Canada)";
    $timezones[-7] = "Mountain Time (US & Canada)";
    $timezones[-6] = "Central Time (US & Canada), Mexico City";
    $timezones[-5] = "Eastern Time (US & Canada)";
    $timezones[-4] = "Atlantic Time (Canada)";
    $timezones[-3] = "Brazil, Buenos Aires, Georgetown";
    $timezones[-2] = "Mid-Atlantic";
    $timezones[-1] = "Azores, Cape Verde Islands";
    $timezones[0] = "London, UK";
    $timezones[1] = "Amsterdam, Netherlands";
    $timezones[2] = "Kaliningrad, South Africa";
    $timezones[3] = "Baghdad, Kuwait";
    $timezones[4] = "Tehran";
    $timezones[5] = "Ekaterinburg, Islamabad";
    $timezones[6] = "Almaty, Dhaka";
    $timezones[7] = "Bangkok, Hanoi";
    $timezones[8] = "Beijing, Perth, Singapore, Hongkong";
    $timezones[9] = "Tokyo, Seoul, Osaka";
    $timezones[10] = "Guam, Papua New Guinea";
    $timezones[11] = "Magadan, Solomon Islands";
    $timezones[12] = "Auckland, Wellington, Fiji"
    To reflect the correct zones...You can move some array-elements if you don't wanna display them...

    Comment

    • Mas*Mind
      Senior Member
      • Jun 2000
      • 1444

      #3
      Example shot:

      Comment

      • fastforward
        Senior Member
        • Nov 2000
        • 1013

        #4
        Now that's what I call quick service.

        Thanks!
        http://britishexpats.com/ - British expatriate community

        Comment

        • George L
          Former vBulletin Support
          • May 2000
          • 32996
          • 3.8.x

          #5
          wow that was quick ... *** runs off to install it ***
          :: Always Back Up Forum Database + Attachments BEFORE upgrading !
          :: Nginx SPDY SSL - World Flags Demo [video results]
          :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

          Comment

          • jojo85
            Senior Member
            • Jan 2001
            • 915

            #6
            Originally posted by Mas*Mind
            Example shot:
            Very nice!!
            Will install it monday !

            Comment

            • George L
              Former vBulletin Support
              • May 2000
              • 32996
              • 3.8.x

              #7
              came out strange for some reason ?

              :: Always Back Up Forum Database + Attachments BEFORE upgrading !
              :: Nginx SPDY SSL - World Flags Demo [video results]
              :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

              Comment

              • Mas*Mind
                Senior Member
                • Jun 2000
                • 1444

                #8
                Don't see anything from my hack on that page

                It looks a bit funny though..
                Last edited by Mas*Mind; Sat 24 Mar '01, 10:23am.

                Comment

                • George L
                  Former vBulletin Support
                  • May 2000
                  • 32996
                  • 3.8.x

                  #9
                  yeah i know i have no idea of what included that
                  :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                  :: Nginx SPDY SSL - World Flags Demo [video results]
                  :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                  Comment

                  • Mas*Mind
                    Senior Member
                    • Jun 2000
                    • 1444

                    #10
                    You really mean the installation of my hack included that funny timezone utility? Mabye you have to rename timezone.php to something else (don't forget to change the reference to include("timezone.php"); in index.php also..)

                    Comment

                    • Lost
                      Member
                      • Mar 2001
                      • 86

                      #11
                      Great hack
                      Thanx m8....

                      Comment

                      • Mas*Mind
                        Senior Member
                        • Jun 2000
                        • 1444

                        #12
                        The only reason that *might* explain it is that you maybe have an existing timezone.php in your php include-dir?

                        Comment

                        • George L
                          Former vBulletin Support
                          • May 2000
                          • 32996
                          • 3.8.x

                          #13
                          Originally posted by Mas*Mind
                          The only reason that *might* explain it is that you maybe have an existing timezone.php in your php include-dir?
                          LOL i forgot i had another timezone script i uploaded a while back -

                          seems to work now

                          http://animeboards.com/timezindex.php
                          :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                          :: Nginx SPDY SSL - World Flags Demo [video results]
                          :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                          Comment

                          • Mas*Mind
                            Senior Member
                            • Jun 2000
                            • 1444

                            #14
                            Hehehe

                            You just saved me from a headeache

                            Glad it works now

                            Comment

                            • fastforward
                              Senior Member
                              • Nov 2000
                              • 1013

                              #15
                              >>> Eastern Australian Standard Time (AEST), Guam, Papua New Guinea Sunday 05:48

                              Isn't this your timezone eva2000? If so, what are you doing up at this ungodly hour? GO TO BED!
                              http://britishexpats.com/ - British expatriate community

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...