meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| plugin:dateplaceholder [2015/06/25 15:28] – created phplist | plugin:dateplaceholder [2024/05/20 00:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== dateplaceholder ====== | ||
| + | |||
| + | ---- plugin ---- | ||
| + | |||
| + | description: | ||
| + | author | ||
| + | email : info@phplist.com | ||
| + | type : | ||
| + | lastupdate : 2015/06/25 16:03 | ||
| + | compatible : 3.0 or later | ||
| + | depends | ||
| + | conflicts | ||
| + | similar | ||
| + | tags : | ||
| + | |||
| + | downloadurl: | ||
| + | bugtracker : https:// | ||
| + | sourcerepo : https:// | ||
| + | donationurl: | ||
| + | ---- | ||
| + | |||
| + | ===== Purpose ===== | ||
| + | |||
| + | Add placeholders that relate to dates. | ||
| + | |||
| + | ===== Installation ===== | ||
| + | |||
| + | Install the plugin using the [[plugin: | ||
| + | |||
| + | ===== Examples/ | ||
| + | |||
| + | |||
| + | You can use formatting like the " | ||
| + | |||
| + | The general format for a placeholder is: | ||
| + | |||
| + | [PLACEHOLDER: | ||
| + | |||
| + | where PLACEHOLDER can be one of: | ||
| + | |||
| + | - TODAY | ||
| + | - YESTERDAY | ||
| + | - TOMORROW | ||
| + | - NEXTWEEK | ||
| + | - LASTWEEK | ||
| + | - NEXTMONTH | ||
| + | - LASTMONTH | ||
| + | |||
| + | and FORMAT can be any format allowed by the date command in PHP | ||
| + | |||
| + | Some common Formats: | ||
| + | |||
| + | - " | ||
| + | - " | ||
| + | - "M jS Y" | ||
| + | - "l jS F Y" | ||
| + | |||
| + | You can also set the default format in the phpList settings. It will appear in the General settings. | ||
| + | When you have a default format, you can leave FORMAT empty and just use eg. | ||
| + | |||
| + | [TODAY] | ||
| + | |||
| + | The replacement works both in the body of a campaign and the subject of the campaign. | ||
| + | |||
| + | |||
| + | Once the campaign has finished sending the dates will be fixed, when the campaign is archived. When you re-queue the campaign, the placeholder will no longer exist. You can bypass this behaviour in the settings. | ||
| + | |||
| + | This requires phpList 3.2.4 or later. | ||
| + | |||
| + | ===== Configuration ===== | ||
| + | |||
| + | This plugin will add the option to define a default date format in the settings. | ||
| + | |||
| + | It will also add an option in category //archive// that when set will bypass the final fixing of the dates when the campaign has been sent. | ||
| + | |||
| + | |||
| + | === Change Log === | ||
| + | |||
| + | https:// | ||
| + | |||
| + | |||
| + | * 2015/11/29 v 0.2 - fix the dates when the campaign has finished sending (requires phpList 3.2.4 or later) | ||
| + | |||
| + | * **2015/ | ||
| + | * Initial release | ||
| + | |||
| + | |||
| + | === ToDo/Wish List === | ||
| + | |||
| + | * more placeholders can be added if and when needed. Send a PR or add an issue in the tracker if there is a placeholder you would like. | ||
| + | |||
| + | (eg NEXTYEAR, LASTYEAR). | ||