Source for file mod_top_visited_blogs.php
Documentation is available at mod_top_visited_blogs.php
include_once( BLOGS_PKG_PATH. 'BitBlog.php' );
//require_once( USERS_PKG_PATH.'BitUser.php' );
//$params = $gBitThemes->getModuleParameters('bitpackage:blogs/mod_top_visited_blogs.tpl', $gQueryUserId);
$listHash['max_records'] = $params['module_rows'];
$listHash['sort_mode'] = 'hits_desc';
//produces White Screen Of Death:
//$listHash['is_hit'] = TRUE;
$ranking = $blog->getList( $listHash );
$_template->tpl_vars['modTopVisitedBlogs'] = new Smarty_variable( $ranking);
$_template->tpl_vars['bulletSrc'] = new Smarty_variable( isset ($params["bullet"]) ? $params['bullet'] : NULL);
|