Timed Content Plugin

The Timed Page/Post Content plugin is a marketing tool that allows users to specify that a portion of a Page or Post should appear/be visible or disappear/be invisible based on given time characteristics. Suppose, for example, you embed a video into a Post; once the viewer has enough information from the video, the request to take a specific action can be set to appear.

The plugin provides two scheduling options:

  • A client-side behaviour, implemented with the [timed-content-client ... ] shortcode, that allows the marking of content to appear or disappear after a given time interval; a “fade” effect is included. This functionality is intended to be used for special effects only, as content marked in this manner is still visible in the HTML source and, therefore, not a secure method of hiding content.
  • A server-side behaviour, implemented with the [timed-content-server ... ] shortcode, that allows the marking of content to be visible only during a specified date/time interval. This functionality can be used as a secure method of hiding content, because the marked content will be included in the Page/Post only when viewed in the specified date/time interval.

A TinyMCE button is included to help users build the shortcodes.

Download

Download it from the plugin’s page at WordPress.org.

Installation

Note: XXX refers to the current version release.

Automatic method

  1. Click ‘Add New’ on the ‘Plugins’ page.
  2. Upload timed-content-XXX.zip using the file uploader on the page

Manual method

  1. Unzip timed-content-XXX.zip and upload the timed-content folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Usage

The timed-content-client shortcode

[timed-content-client show="mm:ss:fff" hide="mm:ss:fff"]Example Text[/timed-content-client]

  • show – Specifies the time interval after loading the web page when the marked content should be displayed. The attribute consists of three parts, separated by colons:
    • mm – minutes
    • ss – seconds
    • fff – If greater than 0, a fade-in effect lasting fff milliseconds is applied.
  • hide – Specifies the time interval after loading the web page when the marked content should be hidden. The attribute consists of three parts, separated by colons:
    • mm – minutes
    • ss – seconds
    • fff – If greater than 0, a fade-out effect lasting fff milliseconds is applied.

Both attributes are optional, but at least one attribute must be included. The shortcode’s behaviour depends on which attributes are used:

  • show only – Marked content is initially not visible, then appears mm minutes and ss seconds after loading with a fff millisecond fade-in.
  • hide only – Marked content is initially visible, then disappears mm minutes and ss seconds after loading with a fff millisecond fade-out.
  • show and hide – Marked content is initially not visible, then appears according to the values set in show, then disappears according to the values set in hide.

The timed-content-server shortcode

[timed-content-server show="datetime" hide="datetime" debug="true|false"]Example Text[/timed-content-server]

  • show – Specifies the date/time when the marked content should start being included on the web page. The attribute consists of datetime – an English-language date/time description. Internally, the plugin uses PHP’s strtotime function.
  • hide – Specifies the date/time after which the marked content should stop being included on the web page. The attribute consists of datetime – an English-language date/time description. Internally, the plugin uses PHP’s strtotime function.
  • debug – If true, adds some debugging statements to the web page as HTML comments. Defaults to false.

Both show and hide attributes are optional, but at least one attribute must be included. The shortcode’s behaviour depends on which attributes are used:

  • show only – Marked content is outputted only after the date/time set here.
  • hide only – Marked content is outputted only before the date/time set here.
  • show and hide – Marked content is outputted only during the time period defined by the show and hide attributes.

Using the TinyMCE dialog

Coming soon

Frequently Asked Questions

Coming soon

Screenshots

Coming soon

Changelog

1.0

  • Initial release.

Upgrade Notice

1.0

  • Initial release. No upgrade required.

FREE WEB TIPS

FREE REPORT - 5 Online Mistakes & how to avoid them. We'll also send you additional tips & tools to help you do more business online.

Search Our Site

Client Website Showcase