Technically this is the second plugin for WordPress, but it's the first that actually does something useful. :)
As background, the next version of WP and the current nightlies have a new plugin architecture that makes installing "hacks" as easy as dropping a file in a directory. These are so easy we're not going to call them hacks, they're called "plugins." Anyway I'm so excited about this I packaged a plugin for everyone to try out the new system. Note you must be using a version of WordPress from 3-25-2004 or newer.
WordPress Blogtimes --- Download (2k)
- Unzip
wp-blogtimes.zip
- Upload blogtimes.php into your
wp-content/plugins folder.
- There must be a writable file in
wp-images called blogtimes.png. There are a couple of ways to do this:
- CHMOD your
wp-images directory 766.
- Upload an image, rename it blogtimes.png, CHMOD it 666.
- Linux command line:
touch blogtimes.png; chmod 666 blogtimes.png
- Go to the plugins screen and "Activate" the blogtimes plugin. Now whenever you post it'll regenerate the image automatically to reflect the latest times.
I guess I need to upgrade so I can test this puppy out. I've been wanting this capability, so thanks for adding the blogtimes plugin!
I wouldn't recommend running a nightly build on your live site. Wait for a beta or release candidate if you're really anxious.
*whine* I followed the directions EXACTLY...and i have no blogtimes. It doesn't appear in my plugins screen...using latest CVS. Help?
mine is the nightly... but cvs should work... ermmm...
Its funny really, I have been using nightlies for my production blog for well at least 2 months and never had a real problem.
I have converted all the plugins that I use (mine and others I have found here) to plugins and the new system is excellent. A real step up for WP in usability. I think more people will be taking advantage of some of the better hacks here, now that they can so easily implement them.
hey if u have the hacks in the plugin versions, maybe u can add them to the wiki...
i would like to clear up my hack file :)
Having problems with this.
I'm using the 3-26 nightly.
I uploaded an image, and made the correct CHMODs on the wp-images directory and the blogtimes.png but the image doesn't update when I make a new post.
Any ideas why it wont update?
did u download the plugin?
u uploaded it?
activated it from the backend?
just a few questions...
Just curios, but which was the first plugin?
download the latest nightly. the first plugin is built in ;)
An April Fool's bonus. :)
I am dying, out of curiosity.
Lemme guess, the first plugin is the plugin manager, or what?
Oh well, I really cant do the nightly thingy, 'cause I am in the Wuhwuh camp for now ;)
Hmm.... can't figure this one.
Where should I be looking for the 'new' image ?
its a plugin that is there just to prove that there is a plugin pluggedin WP.
Sorry to bring this up again.
I followed the instructions and yet nothing happens.
Like Podz, i do not see anything.
Pls advise
The image is just created, it isn't linked anywhere. You need to link to the image in your template using an <img> tag.
Anonymous
Unregistered
Posted 5 years ago #
It can depend on if you are using permalinks or not. In my case, I am so the tag has to be:
<img src="/wordpress/wp-images/blogtimes.png" alt="Blogtimes image" />
Anonymous
Unregistered
Posted 5 years ago #
Speaking of plugins. Allusion, the next time you make a change to plugins.php, maybe you could fix the spelling error in "seperately" ? Life is good when that's all I have to complain about :-)
nope, i still cannot get anything...
Real dissapointed...
what am i doing wrong?
my site is here: http://www.linguagymnastics.com
Dang, left the site up on my browser but my login must have expired. Did you include the call in your index file?
<?php getPostTimes(); ?>
Hmmm.........
I tried this when it first came out with no success, and still the same.
png file, and folder, is writable
I can see that the png has been updated
I include that call above at the end of the content div ....
That did the trick !
Many thanks Beel :)
result when testing with latest nightly (25th may)
---
Database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (TO_DAYS(CURRENT_DATE) - TO_DAYS(post_date)) <= 30 A]
SELECT HOUR(post_date)*60+MINUTE(post_date) AS totmins FROM WHERE (TO_DAYS(CURRENT_DATE) - TO_DAYS(post_date)) <= 30 AND post_status = 'publish' ORDER BY totmins ASC
Warning: Invalid argument supplied for foreach() in d:\apache group\apache\htdocs\wordpress\wp-content\plugins\blogtimes.php on line 132
---
Anonymous
Unregistered
Posted 5 years ago #
Looks good .. in case anyone is still running b2,
my version of this plugin is at
http://sastools.com/b2/post/79393981
Sanjay
eke: put this in the file: $tableposts = $wpdb->posts;
i got this on my test site
Fatal error: Call to undefined function: getposttimes() in /home/linguagy/public_html/test/index.php on line 1
after i took out the first line, it works now.... =))