Artikel vom 23. Oktober 2008

The WordPress plugin wpSLEEP – Easy time control for parts of a post

Cronjob

WordPress already offers naturally a comfortable possibility to publish articles delayed. The advantages of this convenient function are obvious: Posts can be created in advance and will automatically be published a few days later or on midnight – even if you are not at the pc. wpSLEEP is based on the same thought and actuate parts of a post as the author likes them to.

 
 
 
German Version
» wpSLEEP, WordPress-Plugin für zeitliche Steuerung der Teile eines Artikels

wpSLEEP puts text parts delayed offline
Simply said: In the originated post, text passages, graphics or other elements are marked up to sample and are provided with a start- and / or end date. After saving and publishing of the post, the marked part is only viewable during the time span specified (from 01.10.2008 1 pm until 31.12.2008 6.30 pm for example).

Examples are also graphical banners or text links, which are booked for a certain time. Accordingly paragraphs or chapters can be taken first off- and at later stage taken online again, just one specifies. Variations are nearly unlimited!

Jump marks

Features

Mode of operation
Is a certain (text) block within a post supposed to get a certain timing, this section should be circumfluenced with [wpsleep][/wpsleep]. The short code offered by this WordPress plugin (WordPress 2.5+ required) is able to accept adjacent attributes as time parameters, to fade out or in the selected area as specified.

Examples

Start- and end date can be defined – both or just one of it. The date value is written in german text format day.month.year hours:minutes. Those attributes can be specified as date only (without time specified) or time only (without date specified).

Status of visibility as a php tag
Since wpSLEEP 0.5 is a global variable available, which is set to true when the marked part is visible.

Example, a query

<?php if (class_exists('wpSLEEP') &&
  isset($GLOBALS['wpSLEEP']) &&
  $GLOBALS['wpSLEEP']->visible) {
    /* My Code */
} ?>

Version of progress
Version 0.5 dated 10.12.2008

Version 0.4 dated 27.10.2008

Version 0.3 dated 10.10.2008

Version 0.2 dated 08.10.2008

Version 0.1 dated 07.10.2008

Installation

Download
› WordPress Plugin wpSLEEP ↓

Sergej Müller

[Der Autor] Sergej Müller ist enthusiastischer Software Engineer mit Schwerpunkten Webentwicklung und WordPress. Seit 2007 programmiert und vertreibt er wpSEO, das weltberühmte und patentierte SEO-Plugin für WordPress-Blogs.

Social Werkzeuge

12 Kommentare zum Artikel

645 Tage zuvor | #1 JTPratt’s Blogging Mistakes

Can this plugin be used to control featured content anywhere in a WordPress theme template (not just a post)? In other words, before “the loop” in index.php, or in the sidbar(s)?

JTPratt's Blogging Mistakes
645 Tage zuvor | #2 Sergej Müller

In a WordPress theme template please use PHP. wpSLEEP works only in a post.

Sergej
644 Tage zuvor | #3 Flick

This is an fantastic concept plugin! I can imagine using it on my site already, although I will probably wait until the next theme version is done before implementing it! Sometimes we provide downloads for a limited time on our site, and it’s a bit of a hassle having to remember to remove the code after say 2 weeks (I usually forgot) so this plugin is very nifty!

Flick
644 Tage zuvor | #4 Sergej Müller

My pleasure :)

Sergej
642 Tage zuvor | #5 Sergej Müller

Version 0.4: Add support for alternative text (please see examples).

Sergej
610 Tage zuvor | #6 Stu McLaren

I love the creative thought behind this plugin.

Great job – I can’t wait to test this. My mind is racing with ideas on how to use this within a membership site being run by WordPress.

Stu McLaren
598 Tage zuvor | #7 Sergej Müller

Since wpSLEEP 0.5 is a global variable available, which is set to true when the marked part is visible. Please see an example above.

Sergej
582 Tage zuvor | #8 Dimon

Отличный плагин!На его основе можно делать интересные предложения с предупреждением о том,что предложение действительно до определенного времени,затем исчезнет.Выставил время-и порядок!

Dimon
578 Tage zuvor | #9 Wil

Bug Report:

It appears that since wpSLEEP uses the add_shortcode() function, it will not work properly in the search results.

The search results show the actual wpSLEEP code rather than the expected result.

Wil
578 Tage zuvor | #10 Sergej Müller

Thanks, I look what I can do.

Sergej
543 Tage zuvor | #11 Pedro Villalobos

Great plugin idea. Simple but very useful. It would be great if it had some kind of a timer for categories, like:
from now till 2 weeks this post will have the category FEATURED.

And with this category it could be featured in the home-page or something like for a pre-determined time. :)

Pedro Villalobos
312 Tage zuvor | #12 china wholesale

I don’t like WordPress even a little, but this is nice-looking in spite of that. Good work.

china wholesale

4 Verlinkungen auf den Artikel

› Featured Plugins for October — WPCandy — WordPress T [...]

› Interesting wordpress plugins for content sharing

› Wordpress - Post date parts of your post only! Think banner ads [...]

› Beitrag "Wordpress-Plugins" auf kohlhof.de