WordPress.org

Ready to get started?Download WordPress

Forums

First WP Plugin: blogtimes (88 posts)

  1. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    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)

    1. Unzip wp-blogtimes.zip
    2. Upload blogtimes.php into your wp-content/plugins folder.
    3. 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
    4. 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.
  2. Hella
    Member
    Posted 10 years ago #

    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!

  3. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    I wouldn't recommend running a nightly build on your live site. Wait for a beta or release candidate if you're really anxious.

  4. OperaManiac
    Member
    Posted 10 years ago #

    like always i am presenting myself as a guinea pig...
    http://blog.sushubh.com/archives/2004/03/26/wp-plug-in/

  5. Cena
    Member
    Posted 10 years ago #

    *whine* I followed the directions EXACTLY...and i have no blogtimes. It doesn't appear in my plugins screen...using latest CVS. Help?

  6. OperaManiac
    Member
    Posted 10 years ago #

    mine is the nightly... but cvs should work... ermmm...

  7. Chris J. Davis
    Member
    Posted 10 years ago #

    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.

  8. OperaManiac
    Member
    Posted 10 years ago #

    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 :)

  9. bain
    Member
    Posted 10 years ago #

    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?

  10. OperaManiac
    Member
    Posted 10 years ago #

    did u download the plugin?
    u uploaded it?
    activated it from the backend?
    just a few questions...

  11. carthik
    Member
    Posted 10 years ago #

    Just curios, but which was the first plugin?

  12. OperaManiac
    Member
    Posted 10 years ago #

    download the latest nightly. the first plugin is built in ;)

  13. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    An April Fool's bonus. :)

  14. carthik
    Member
    Posted 10 years ago #

    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 ;)

  15. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Hmm.... can't figure this one.
    Where should I be looking for the 'new' image ?

  16. OperaManiac
    Member
    Posted 10 years ago #

    its a plugin that is there just to prove that there is a plugin pluggedin WP.

  17. J3r0m3
    Member
    Posted 9 years ago #

    Sorry to bring this up again.
    I followed the instructions and yet nothing happens.
    Like Podz, i do not see anything.
    Pls advise

  18. Matt Mullenweg
    Troublemaker
    Posted 9 years ago #

    The image is just created, it isn't linked anywhere. You need to link to the image in your template using an <img> tag.

  19. Anonymous
    Unregistered
    Posted 9 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" />

  20. Anonymous
    Unregistered
    Posted 9 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 :-)

  21. J3r0m3
    Member
    Posted 9 years ago #

    nope, i still cannot get anything...
    Real dissapointed...
    what am i doing wrong?
    my site is here: http://www.linguagymnastics.com

  22. Beel
    Member
    Posted 9 years ago #

    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(); ?>

  23. Mark (podz)
    Support Maven
    Posted 9 years ago #

    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 ....

  24. Mark (podz)
    Support Maven
    Posted 9 years ago #

    That did the trick !
    Many thanks Beel :)

  25. eke
    Member
    Posted 9 years ago #

    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
    ---

  26. Anonymous
    Unregistered
    Posted 9 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

  27. Beel
    Member
    Posted 9 years ago #

    eke: put this in the file: $tableposts = $wpdb->posts;

  28. eke
    Member
    Posted 9 years ago #

    ahh thanks!

  29. J3r0m3
    Member
    Posted 9 years ago #

    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

  30. J3r0m3
    Member
    Posted 9 years ago #

    after i took out the first line, it works now.... =))

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.