Source for file rankings.php
Documentation is available at rankings.php
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
* Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
* All Rights Reserved. See below for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details
require_once( '../kernel/setup_inc.php' );
$gBitSystem->verifyPackage( 'wiki' );
$gBitSystem->verifyFeature( 'wiki_rankings' );
'output' => tra( 'Most Often Viewed' ),
'output' => tra( 'Most Recently Modified' ),
'value' => 'last_modified_desc'
'output' => tra( 'Most Active Authors' ),
$gBitSmarty->assign( 'rankingOptions', $rankingOptions );
if( !empty( $_REQUEST['sort_mode'] ) ) {
switch( $_REQUEST['sort_mode'] ) {
case 'last_modified_desc':
$gBitSmarty->assign( 'attribute', 'last_modified' );
$_REQUEST['attribute'] = tra( 'Date of last modification' );
$gBitSmarty->assign( 'attribute', 'ag_hits' );
$_REQUEST['attribute'] = tra( 'Hits to items by this Author' );
$gBitSmarty->assign( 'attribute', 'hits' );
$_REQUEST['attribute'] = tra( 'Hits' );
$gBitSmarty->assign( 'attribute', 'hits' );
$_REQUEST['attribute'] = tra( 'Hits' );
$_REQUEST['title'] = tra( 'Wiki Rankings' );
$_REQUEST['content_type_guid'] = BITPAGE_CONTENT_TYPE_GUID;
$_REQUEST['max_records'] = !empty( $_REQUEST['max_records'] ) ? $_REQUEST['max_records'] : 10;
if( empty( $gContent ) ) {
$gBitSmarty->assign( 'rankList', $rankList );
$gBitSystem->display( 'bitpackage:liberty/rankings.tpl', tra( "Wiki Rankings" ) , array( 'display_mode' => 'display' ));
|