plugin:recent
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
plugin:recent [2010-01-20 14:45] – 202.122.149.195 | plugin:recent [2021-01-22 17:59] – Aleksandr | ||
---|---|---|---|
Line 11: | Line 11: | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : include, changelog, listing, !maybe.broken | + | tags : include, changelog, listing, !maybe.broken, recent |
---- | ---- | ||
+ | ===== 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 146: | Line 151: | ||
> Here's a quick hack to display the latest 10 changes | > Here's a quick hack to display the latest 10 changes | ||
- | Add this line of code into inc/html.php | + | >> 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> | <code php> | ||
- | function | + | function |
- | { | + | global $conf; |
- | global $conf; | + | global $ID; |
- | global $lang; | + | $startAt = 0; |
- | | + | $numberOfEntries = 10; |
- | $first = 0; | + | |
- | | + | |
- | /* | + | //store output and return |
- | $first=0; | + | ob_start(); |
- | $recents = getRecents($first,$conf['recent' | + | echo "< |
- | }*/ | + | foreach($recents |
- | | + | |
- | { | + | echo "< |
- | $first=count($recents) - $last; | + | echo "< |
- | } | + | echo html_wikilink(':' |
- | | + | echo "</ |
- | { | + | |
- | | + | echo "</ |
- | } | + | return ob_get_clean(); |
- | html_recent($first); | + | |
- | } | + | |
</ | </ | ||
- | Then in lib/ | ||
- | <code php> | ||
- | function _Rethtml_recent($first=0) { | ||
- | | ||
- | | ||
- | $html = ob_get_clean(); | ||
- | $html = substr($html, | ||
- | | ||
- | } | ||
- | </ | ||
- | There is an apparent delay in page load after this hack though...--- // | ||
- |
plugin/recent.txt · Last modified: 2024-02-05 22:28 by Klap-in