[Resolved] Dunstan’s time_of_day anyone?
Has anyone worked on setting up dunstan’s time of day function into a WP plugin/hack?
I would’ve loved doing this if I knew any PHP….
You get plugins sooner than you can think them up !
from the wiki Plugin page (http://wiki.wordpress.org/Plugin )
What about the time_since one? Ok, maybe I’m asking for too much!!!
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.
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.
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
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.
That must be it. It has ?> but I didn’t think to check for new lines. I’ll check and get it uploaded.
I’ve edited the file at the download location so you should (hopefully) no longer get this issue.
That solved it. No more leaks. I also made a plugin for comments links. Kind of sloppy though. It’s called Dumb Comments Link.
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?
@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.
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”.
Can you tell me the time value that the plugin is failing on?
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.
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.
- The topic ‘[Resolved] Dunstan’s time_of_day anyone?’ is closed to new replies.