Artikel vom 23. Oktober 2008
The WordPress plugin wpSLEEP – Easy time control for parts of a post
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
- No database necessary
- Fast carrying out, as there is only a modicom of code
- No Admin-Panel required. Time specification are directly within the post
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
- [wpsleep start="31.12.2008 09:00"]This section is now offline, but from 31.12.2008 9 am for everyone viewable[/wpsleep]
- [wpsleep start="07.10.2008 09:00" end="08.10.2008" alt="Alternative text"]This section is only for a few hours viewable. The rest of the time you see the alternative text[/wpsleep]
- [wpsleep start="09:00" end="11:30"]This section is viewable every day at the same time[/wpsleep]
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
- The visible flag is set, if the hidden part is visible (see an example above)
Version 0.4 dated 27.10.2008
- Support for alternative text (attribute alt, see examples)
Version 0.3 dated 10.10.2008
- Attributes for start- and end timing can now be specified as time of day only, which offers daily repeat
Version 0.2 dated 08.10.2008
- Start date is no manditory field anymore. Start- and Enddate can be specified at will
Version 0.1 dated 07.10.2008
- wpSLEEP goes online
Installation
- Download plugin
- Unzip the archive
- Upload the file wpsleep.php into ../wp-content/plugins/
- Go to tab plugins
- Activate wpSLEEP
Download
› WordPress Plugin wpSLEEP ↓
- Format: ZIP
- Version: 0.5
[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.
12 Kommentare zum Artikel
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)?
In a Wordpress theme template please use PHP. wpSLEEP works only in a post.
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!
My pleasure :)
Version 0.4: Add support for alternative text (please see examples).
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.
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.
Отличный плагин!На его основе можно делать интересные предложения с предупреждением о том,что предложение действительно до определенного времени,затем исчезнет.Выставил время-и порядок!
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.
Thanks, I look what I can do.
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. :)
I don’t like Wordpress even a little, but this is nice-looking in spite of that. Good work.
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