blob: 3c87f8ce81ccced6356c38326ca1fe5436879a7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/**
* @version $Header$
* @package blogs
* @subpackage modules
*/
/**
* required setup
*/
include_once( BLOGS_PKG_PATH.'BitBlog.php' );
global $gQueryUserId, $gBitThemes, $module_rows, $module_params;
$listHash['max_records'] = $module_rows;
$listHash['sort_mode'] = 'activity_desc';
BitUser::userCollection( $module_params, $listHash );
$listHash['is_active'] = TRUE;
$blog = new BitBlog();
$ranking = $blog->getList( $listHash );
if( !empty( $ranking ) ) {
$_template->tpl_vars['modTopActiveBlogs'] = new Smarty_variable( $ranking );
}
?>
|