Outputs an accurate post time in, optionally, your choice of formatting. Use in your template, date formatted according to PHP standards.
bbPress plugin browser »
Accurate Post Time (0.1)
Average Rating





Your Rating
Author: fel64
-
I'm confused why csseur3 is publishing plugins by other people and why such a mini-plugin is being put into the browser?
I find it much more helpful to simply put the real time as the title of the time since.
ie.
Posted <span class="timetitle" title="<? echo date("r",strtotime($bb_post->post_time)); ?>"><?php printf( __('%s ago'), bb_get_post_time() ); ?></span>That way when you mouse-over the time since, you get the popup title of the real time. I use the css class of "timetitle" to put a faint underline on the text to indicate it has more info available.
Posted: 3 months ago # -
"I'm confused why csseur3 is publishing plugins by other people"
Because the "other people" don't do that, and the forums are filled with identical requests. Publish plugin gives visibility to the tip and reduces new research. Many astute codes can still be plugin, and I find it unfortunate that the original authors did not do.That said, I make mention of sites of the original author, and I may transfer ownership of its place in the svn:)
"I find it much more helpful to simply put the real time as the title of the time since." Not me :p
Posted: 3 months ago # -
Is there a method of adjusting for a user's timezone?
Posted: 3 months ago # -
citizenkeith, I think there is a custom timezone plugin for users around here, possibly adapted from the wordpress side.
csseur3, IMHO don't take it upon yourself to publish other people's plugins unless you significantly enhance them (and the original is GPL compatible). If they don't want to publish it, that's their choice, and there might be a good reason. I have about two dozen mini-plugins like this and if I found you re-publishing them here I'd be upset. fel64 is a long time member and has a few plugins already published and he knows what he is doing.
Forcing a server to do an include for a tiny scrap of code like this is a very bad idea performance-wise. Much better to do it inline in the template directly since it's one single PHP call.
<?php echo date('r',strtotime($bb_post->post_time)); ?>Posted: 3 months ago # -
okay okay ck, i just want to help other people.
So, your code doesn't work. I have this for result: "Thu, 01 Jan 1970 01:00:00 +0100" are you sure about your method?
bye
Posted: 3 months ago # -
It may need a
global $bb_post;before theechosorry.Publishing the plugin doesn't mean people will find it, so it can't help them.
A topic where the mini-plugin is listed will be rich in keywords but the plugin page may not be. Unfortunately bbPress's internal search is very poor so people will hopefully use google instead.
I try to flag any topic with a helpful mini-plugin with the tag
mini-pluginie.
http://bbpress.org/forums/tags/mini-plugin
(please don't publish all those)Posted: 3 months ago # -
"It may need a global $bb_post; before the echo sorry." Lol. this is the same method, no?
"(please don't publish all those)" ahaha, great joke. But i can't publish them, i haven't a big donate icon for integrate it :)
Posted: 3 months ago #
Add a Comment
You must log in to post.