skip to main content

kiesler.at

Clock 0.3 for phpWebSite
updated by rck, 2005-03-26

Have a lot of visitors from different timezones? Always to late because you're playing around with your homepage? Bored to death and want something that changes after a while on your screen?

Or do you simply want to create your very own phpWebSite module? If you answered yes to any of those questions clock is for you.

0.3 now contains the danish language file, translated by Lasse Skov from LiquidArt. Thank you!

The img-directory

Here boost will look for the graphics referred to in the file conf/controlpanel.php.

The class-directory

Here are all your class files - your actual phpWebSite code! I usually include the config-file in the constructor.

The inc-directory

There's something special about the inc-directory. If it contains a file called runtime.php, that file will be called on every page of your site!

That way, you can easily show boxes outside of your module.

The docs-directory

It is a good habit to maintain at least a changelog and a quick guide, what your module is about. And please include some kind of contact-information. Where should people go, if they need support? If they have ideas? If they want to give you loads of money?

index.php

index.php is the dispatcher for your module. Always make sure, that the core has been loaded in memory. Here's also the place to instantiate your classes and fill the boxes with actual content. The clock-module demonstrates a minimal way of filling your main-box with content.




RSSComments - Make a comment
The comments are owned by the poster. We are not responsible for its content.
  • Clock Module

    Posted on 2005-05-03 04:34:56 By Anonymous

    I, and probably many others, have a small problem with the time settings on phpws. Not a phpws problem, but a problem because there is no way to change the time settings for phpws.

    I use a hosting company in USA (because it is cheap and reliable), however, I am based in Singapore and phpws obviously takes its time from the server. The problem being that I can never make sense of stats (daily stats are split over 2 days because of time zone mismatch) and calender is always half a day behind.

    Could clock evolve to become a standard module for phpws which controls all time settings for the site and allow time zone offset selection?

    Cheers,

    Brett Shadbolt
    http://www.censere.com

    [Reply ]

    • Re: Clock Module

      Posted on 2005-05-04 22:56:08 By rck[110]

      changed On 2005-05-04 22:57:20 Edited By rck (reason: )

      To be honest: I don't think so. Right now, the time configuration is read out of a config-file during the startup of phpWebSite. Making clock do these kinds of things would require hacking core classes which I don't like to do as phpWebSite is constantly evolving and I'd have to provide patches all the time.

      But: You could do a feature request on SourceForge, maybe in a more abstract form like "I'd like to be able to configure phpWebSite through a webinterface instead of the command line". And give the timezones thing as an example.

      you have a very nice site, btw!

      [Reply ]

  • Clock

    Posted on 2005-08-11 23:13:03 By Anonymous

    Maybe I can't see it for looking at it,
    but I think you should have the clock module visible/running on your page.
    If it is there, sorry to bother you.
    But I'd like to see what it does before I install it.
    Thanks

    [Reply ]

    • Re: Clock

      Posted on 2005-08-12 08:08:05 By rck[110]

      I don't have it running here, sorry. Maybe you can set up a test installation and run it there? If you'd like to do some developing, I'd recommend a dedicated test site for that anyway.

      [Reply ]

RSSAll Articles
2008, 2007, 2006, 2005, 2004

What's Related

Article Manager

Modules

Latest Updates

AdministrativeTexts
updated by freddiemac1993, 2013-06-14
wiki

Re: adventures
created by brittdavis10, 2012-02-23 (1 rply, 3 views)
thread

Re: how to run phpwebsite...
created by alexander, 2011-08-25 (2 rpls, 3607 views)
thread

Re: Forum tags
created by HaroldFaragher, 2011-08-22 (3 rpls, 8488 views)
thread


Zu den KO2100 Foren