Comment Plugin (0.9.3)
|
Aug 2, 2008 08:58
259 posts
|
I'm not sure if anyone cares. It took me a few to figure out how the dates under each of the comments, using the new comment plugin, are created. So, I figured I'd post something to save someone else a headache. In your file: /frog/plugins/comment/index.php Find the line that looks like (approximately line 160):
Currently that formats a page to look like: Fri, 1 Jan 2008 It is formatted according to the strftime() standards. Therefore,
Will produce results that look like: at 01:25 pm on Fri, 1 Jan 2008 Hope that helps someone. |
|
Aug 2, 2008 09:34
818 posts
|
That is a help ... but it is even easier that this looks! In the documentation on displaying the date of a page you can see some date setting code. In the default installation, you get this on the "Articles" page, for example:
You can simply insert mtylerb's code into this line:
I have noticed one little "problem" with pages that have not been updated. Instead of getting nothing, or the create date, you get 1 Jan 1970 ... or some date from 1970, anyway! To solve this problem for my site where I have a little "This page last updated:" line on every page, I have this:
There is probably a more elegant way of doing it, but that works for me! Learning all the time...!! :) |