Source for file mod_top_active_blogs.php
Documentation is available at mod_top_active_blogs.php
include_once( BLOGS_PKG_PATH. 'BitBlog.php' );
//require_once( USERS_PKG_PATH.'BitUser.php' );
global $gQueryUserId, $gBitThemes, $module_rows, $module_params;
$listHash['max_records'] = $module_rows;
$listHash['sort_mode'] = 'activity_desc';
$listHash['is_active'] = TRUE;
$ranking = $blog->getList( $listHash );
if( !empty( $ranking['data'] ) ) {
$_template->tpl_vars['modTopActiveBlogs'] = new Smarty_variable( $ranking["data"]);
|