topauthors
Last updated: Monday 10 September 2007 7:59:23 pm
| Author |
Version |
Downloads |
Compatible with |
| Norman Leutner |
1.1
|
409
|
3.7 (other should work too)
|
This template operator returns an array of users with their corresponding number of created
contentobjects of a given class id sorted by the number of objects they created.
Usefull for creating toplists
Description
Input parameters are:
$class_id
$offset
$limit
Installation:
1/ Unzip file in your extension directory
2/ Activate the extension in the admin interface
3/ To use operator in a template :
Usage:
{def $topten = topauthors($class_id,$offset,$limit)}
This one returns the top 10 users with the most created folders:
{def $topten = topauthors('1','0','10')}
Changelog
2006-02-22 fixed against SQL injection / can now be used with $limit, $offset as URL parameters
Comments
Suggestion: add an option to put the class name ?
Xavier Dutoit
Monday 23 April 2007 11:35:16 am
SQL injection fixed
Norman Leutner
Wednesday 22 February 2006 6:32:52 pm
Thanks Björn for the hint...
SQL injection
Björn Dieding@xrow.de
Wednesday 22 February 2006 4:23:31 pm
$class_id
$offset
$limit
as as URL parameters. Not save.