Changeset 9829
- Timestamp:
- 03/29/07 22:46:39 (1 year ago)
- Files:
-
- a-year-before/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
a-year-before/readme.txt
r9826 r9829 13 13 == Installation == 14 14 15 Download the plugin and put the file ayb_posts.php in the plugin-folder of your Wordpress-installation. Then activate the plugin. 16 17 In your template — e.g. the sidebar — you can insert the following PHP-code: 18 19 <?php if (function_exists("ayb_posts")) { ?> 20 <div class="einjahr"> 21 <h2>Vor einem Jahr</h2> 22 <ul> 23 <?php ayb_posts(); ?> 24 </ul> 25 </div> 26 <?php } ?> 15 1. Download the plugin and put the file ayb_posts.php in the plugin-folder of your Wordpress-installation. 16 2. Then activate the plugin. 17 3. In your template — e.g. the sidebar — you can insert the following PHP-code: 18 <?php if (function_exists("ayb_posts")) { ?> 19 <div class="einjahr"> 20 <h2>Vor einem Jahr</h2> 21 <ul> 22 <?php ayb_posts(); ?> 23 </ul> 24 </div> 25 <?php } ?> 27 26 28 27 == Configuration == … … 36 35 * month : the number of month ago you want to show the articles. 37 36 * year : the number of years ago you want to show the articles. 38 * before : piece of HTML to insert before the title of the articles. Default <li>39 * after: piece of HTML to insert after the title of the articles. Default </li>37 * before : piece of HTML to insert before the title of the articles. Default `<li>` 38 * after: piece of HTML to insert after the title of the articles. Default `</li>` 40 39 * showdate: shows the date (showdate=1) before every title or not (showdate=0) 41 40 * dateformat : dateformat as used by PHP. Default ist the german shortform »d.m.y« … … 43 42 44 43 == Examples == 45 ayb_posts("day=30&before=&after=<br />&showdate=0"); 46 Shows the titles of the articles written 30 days ago without showing the date. The articles will not been showed as a HTML-list but simply seperated by a linebreak <br />.44 `ayb_posts("day=30&before=&after=<br />&showdate=0");` 45 Shows the titles of the articles written 30 days ago without showing the date. The articles will not been showed as a HTML-list but simply seperated by a linebreak `<br />`. 47 46 48 ayb_posts("month=6&day=14¬found=Nothing blogged on this day."); 47 `ayb_posts("month=6&day=14¬found=Nothing blogged on this day.");` 49 48 The titles of the articles written half a year and two weeks before, also showing the date . If there was no article written on that day, the output will be »Nothing blogged on this day.« 50 49 51 If you like CSS, you can style the date with the class ayb_date, the link of the article with the class ayb_link and the notfound-message by using the class ayb_notfound.50 If you like CSS, you can style the date with the class `ayb_date`, the link of the article with the class `ayb_link` and the notfound-message by using the class `ayb_notfound`. 52 51 53 52 == Changelog == … … 55 54 0.5.3 56 55 57 * XHTML-Bugfix (unnecessary span)58 * Bugfix PHP 5 Error with empty function-parameter56 * XHTML-Bugfix (unnecessary span) 57 * Bugfix PHP 5 Error with empty function-parameter 59 58 60 59 0.5.2 61 60 62 * Bugfix for more tolerant date-values (e.g. day > 364). Thanks to AlohaDan for hinting and testing.61 * Bugfix for more tolerant date-values (e.g. day > 364). Thanks to AlohaDan for hinting and testing. 63 62 64 63 0.5.1 65 64 66 * Adjustment for MySQL-versions older than MySQL 4.1.165 * Adjustment for MySQL-versions older than MySQL 4.1.1 67 66 68 67 0.5 69 68 70 * First public beta69 * First public beta
