Support » Plugins » Dunstan’s time_of_day anyone?

Viewing 15 replies - 1 through 15 (of 23 total)
  • carthik

    (@carthik)

    You get plugins sooner than you can think them up !
    http://www.ifelse.co.uk/archives/2004/07/24/time-of-day/
    from the wiki Plugin page (http://wiki.wordpress.org/Plugin )
    Enjoy!

    Vohiyaar

    (@vohiyaar)

    Sweet!
    What about the time_since one? Ok, maybe I’m asking for too much!!!
    🙂

    masquerade

    (@masquerade)

    Dustan, did you get the e-mail that I sent you about the source code? I want to use it but I need to be sure it is open source and not proprietary.

    carthik

    (@carthik)

    Vohiyaar, if it is there, it should be there on the wiki plugin page, the link to which I posted.
    Masquerade, dunstan doesn’t seem to know of this thread.

    Anonymous

    Nice plugin, but when I try to change options in the Admin > Options area, I get this php error:
    Warning: Cannot modify header information – headers already sent by (output started at /public_html/journal/wp-content/plugins/time-of-day.php:72) in /public_html/journal/wp-admin/options.php on line 115
    Any suggestions?

    ifelse

    (@ifelse)

    Hi all,
    This is my first plugin so if anyone has any suggestions, coding or otherwise, feel free to suggest them.
    Anyways, Anonymous, can you check that the last line of the plugin file is ?> and that there are no trailing carriage returns or new lines.

    Anonymous

    That must be it. It has ?> but I didn’t think to check for new lines. I’ll check and get it uploaded.

    ifelse

    (@ifelse)

    I’ve edited the file at the download location so you should (hopefully) no longer get this issue.

    Anonymous

    Thanks, ifelse.
    That solved it. No more leaks. I also made a plugin for comments links. Kind of sloppy though. It’s called Dumb Comments Link.

    mufflonen

    (@mufflonen)

    I do also have the problem with using this between 7 & 10..I will disable it on my blog and try to solve this. any ideas?

    wairoanz

    (@wairoanz)

    @mufflonen: Glad it’s not only me… If you figure it out please post back here. I’ll do the same.
    @fernando: I’m not sure how to install the Dumb Comments Link plugin…. I uploaded and activated the plugin, then incerted <?php dumb_comment_link() ?> into my index.php… but when trying to view the web pages I get:

    Fatal error: Call to undefined function: dumb_comment_link() in /home/httpd/vhosts/wairoa.com/httpdocs/index.php on line 98

    Is there something else I need to do to get this working? Please advise, thanks.

    ifelse

    (@ifelse)

    @mufflonen/@wairoanz
    I can’t seem to reproduce this 7-10 error. For example, I altered the timestamp in the following entry to 7:16 am but I get the correct entry of “early morning”.
    http://www.ifelse.co.uk/archives/2004/07/26/discussion-board/
    Can you tell me the time value that the plugin is failing on?

    wairoanz

    (@wairoanz)

    @ifelse
    I have avtivated the plugin again, see: http://www.wairoa.com/
    Please see this article http://www.wairoa.com/2004/07/27/slices-of-wairoa/ filed at 09:34:20 am just shows “Filed under: District Info” and not “Filed in the morning under: District Info” (as it should be.
    Postings outside the 7am to 10am timeframe show as they are intended, i.e. http://www.wairoa.com/2004/07/26/trout-fishing-ruakituri-river-new-zealand/ shows… “Filed late morning under: District Info”
    To be honest, I can’t see how it can be a problem with the script, there must be something else at play… but if two people are getting the same problem I guess there will me others soon too.
    If you need any more information please let me know.

    wairoanz

    (@wairoanz)

    Update: Well, make a lier out of me! 🙂 I just found one morning post, filed at 07:10:50 am that IS showing correctly… http://www.wairoa.com/2004/07/23/waikaremoana-hut-fees-increase/
    So I don’t know… 🙁 seems too wierd.

    ifelse

    (@ifelse)

    Thanks for that update. The date/time value allowed me to replicate the issue on my system.
    I’ve uploaded a new version of the code at:
    http://www.ifelse.co.uk/code/timeofday.php
    Could you test if this solves your issue?

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Dunstan’s time_of_day anyone?’ is closed to new replies.