Revision history for LatestAction


Revision [19592]

Last edited on 2008-02-22 16:00:37 by JavierWilson
Additions:
----
CategoryUserContributions.


Revision [19590]

Edited on 2008-02-22 15:50:48 by JavierWilson
Additions:
/**
* Add list of n latest changes, like a portable RecentChanges.
*
* Usage: {{latest max="5"}}
*
* @package Latest
* @subpackage
* @name latest
*
* @author {@link http://www.guegue.com/~javier/ Javier Wilson} - original idea and code.
* @version 0.1
* @since Not (yet?) part of offical Wikka release
*
* @input int $max optional: number of listings
*
* @todo Nothing I can think about for now.
*
*/
// set defaults
$output ='';
// ***** PARAMETERS Interface *****
$uMax = $vars['max'];
if ($uMax) $max = $uMax;
// ***** end PARAMETERS Interface *****
// ***** HTML code generation *****
if ($this->HasAccess('read', $page['tag'])) {
$output .= ' '.$this->Link($page['tag'], '', '', 0).'<span class="datetime"> '.$dateformatted.'</span><br />'."\n";
if ($j > $max)
break;
// ***** end HTML code generation *****
print $output;
Deletions:
if (($j <= $max) && $this->HasAccess('read', $page['tag'])) {
echo ' '.$this->Link($page['tag'], '', '', 0).'<span class="datetime"> '.$dateformatted.'</span><br />'."\n";


Revision [19587]

Edited on 2008-02-22 15:36:18 by JavierWilson
Additions:
The php code of actions/latest.php:


Revision [19586]

Edited on 2008-02-22 15:35:20 by JavierWilson
Deletions:
$readable = 0;
$readable++;


Revision [19585]

Edited on 2008-02-22 15:34:43 by JavierWilson
Additions:
%%(php)
Deletions:
%%(php;;ctions/latest.php)


Revision [19584]

Edited on 2008-02-22 15:33:02 by JavierWilson
Additions:
=====Latest Action=====
Deletions:
I wanted to add to our HomePage a list of the five latest changes, like a small RecentChanges action.


Revision [19583]

Edited on 2008-02-22 15:32:05 by JavierWilson
Additions:
>>==See also:==
~-Documentation: LatestActionInfo
>>This is the development page for the latest changes action.::c::


Revision [19579]

The oldest known version of this page was created on 2008-02-22 15:25:02 by JavierWilson
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki