Show or Hide Until

Posted on Tuesday the 14th of November, 2006 at 10:27 pm in Plugins

This plugin provides a BBcode that hides or shows text depending on the date. If you are using the rich text (not WYSIWYG) editor you will be provided with two simple buttons that will insert the BBcode into your post.
The bbcode looks like: ‘[hide_until="Year-Month-Day Hour:Minute:Second".]Some text here[\hide_until]” or ‘[show_until="Year-Month-Day Hour:Minute:Second".]Some text here[\show_until]”.
A couple notes:

  • The time stamp format is very important. There must be hyphens (-) between the Year, Month and Day, a space, and then colons (:) between the hour, minute and second. You can leave the hour, minutes and seconds blank if you wish, but the rest should be filled in.
  • The text can be on multiple lines.
  • One known issue is that you can’t wrap multiple [hide_until]’s or [show_until]’s inside of each other. But you can use a [show_until] inside of a [hide_until] or vise versa
  • This plugin was created, tested and uploaded in the same day; consider it Beta (not in the google sense of the word.)
  • Installation:

    1. Upload to your plugins folder.
    2. Activate in the WP admin panel.

    Some possible uses:

    1. Announce the results of a contest in the original post.
    2. Update the instructions for a plugin before you release it without having to re-edit the post later.
    3. Change the content of a time sensitive post.
    4. Write a post all at once, and then have the content released in parts without a lot of different posts.
    5. Write a post series with the future post option, and have links in all of the posts to the entire series without having dead links before future parts are released or have to edit posts later.
    6. Use the future post to add a new plugin and have the old post point to it at the right time.
    7. Easter eggs in your posts for early/late readers.
    8. A warning system for older posts

    Download Show or Hide Until Plugin
    As aways even a small donation helps.

    Related posts

    1. Jacob posted the following on November 15, 2006 at 10:11 am.

      Interesting idea.

      Reply to Jacob
    2. Aaron posted the following on November 17, 2006 at 9:56 pm.

      Thanks

      Reply to Aaron
    3. Dani posted the following on December 28, 2006 at 8:09 pm.

      Thanks thanks so much!

      Reply to Dani
    4. John posted the following on February 19, 2008 at 12:15 pm.

      Thanks a lot I will take a look at this as I need to slow releases some content.

      Reply to John
    5. harald posted the following on December 18, 2008 at 5:37 am.

      hi, on my site it doesnt work. are you sure, this is the right synthax? i think the right synthax should be something like that:

      [hide_until="Year-Month-Day Hour:Minute:Second"]Some text here[/hide_until]

      but also in that way, it doesnt work on my 2.7 wordpress. can you help me?

      Reply to harald

    Leave a reply

    :) :D :( :o 8O :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: ;) :!: :?: :idea: :arrow: :| :mrgreen: