plugin:recent
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:recent [2009-10-07 23:11] – tag cleanup laynee | plugin:recent [2024-02-05 22:28] (current) – Klap-in | ||
---|---|---|---|
Line 11: | Line 11: | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : include, changelog, | + | tags : include, changelog, |
---- | ---- | ||
+ | ===== How to use ===== | ||
- | ====== How to use ====== | + | Simply write '' |
- | Simply write < | + | |
+ | ===== How to install ===== | ||
- | ====== How to install ====== | ||
First, Create a folder named ' | First, Create a folder named ' | ||
then create a file named ' | then create a file named ' | ||
+ | |||
<code php> | <code php> | ||
<?php | <?php | ||
Line 97: | Line 99: | ||
</ | </ | ||
- | ====== Contact ====== | + | ===== Contact ===== |
This my first plugin. i hope you'll like it ;) \\ | This my first plugin. i hope you'll like it ;) \\ | ||
ido [at] woow-fr [dot] com | ido [at] woow-fr [dot] com | ||
- | ====== Comments ====== | + | ===== Comments ===== |
> Looks good :-), a couple of comments ;-) \\ Why create a separate file for your '' | > Looks good :-), a couple of comments ;-) \\ Why create a separate file for your '' | ||
// at the top | // at the top | ||
Line 144: | Line 148: | ||
| | ||
} | } | ||
- | </ | + | </ |
+ | |||
+ | > Here's a quick hack to display the latest 10 changes | ||
+ | >> No hack required, just change the recent config #~.~# --- // | ||
+ | |||
+ | > Change the given method to get more control about recently changed pages. So i can list new pages the way i want ;) See live demo at the bottom of this page www.umingo.de | ||
+ | <code php> | ||
+ | function _Rethtml_recent() { | ||
+ | global $conf; | ||
+ | global $ID; | ||
+ | $startAt = 0; | ||
+ | $numberOfEntries = 10; | ||
+ | |||
+ | $recents = getRecents($startAt, | ||
+ | |||
+ | //store output and return if method is finished | ||
+ | ob_start(); | ||
+ | echo "< | ||
+ | foreach($recents as $recent){ | ||
+ | $date = date(" | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo html_wikilink(':' | ||
+ | echo "</ | ||
+ | } | ||
+ | echo "</ | ||
+ | | ||
+ | | ||
+ | </ |
plugin/recent.1254949861.txt.gz · Last modified: 2009-10-07 23:11 by laynee