blob: 647c26f401f51d078fd3077d9f56eb3f5020ebcc (
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
26
27
28
29
30
31
32
33
34
|
<?php
/**
* @version $Header: /cvsroot/bitweaver/_bit_blogs/modules/mod_top_visited_blogs.php,v 1.10 2008/11/24 23:29:57 pppspoonman Exp $
* @package blogs
* @subpackage modules
*/
/**
* required setup
*/
include_once( BLOGS_PKG_PATH.'BitBlog.php' );
require_once( USERS_PKG_PATH.'BitUser.php' );
global $gQueryUserId, $gBitThemes;
extract( $moduleParams );
//$params = $gBitThemes->getModuleParameters('bitpackage:blogs/mod_top_visited_blogs.tpl', $gQueryUserId);
$listHash['max_records'] = $params['module_rows'];
$listHash['sort_mode'] = 'hits_desc';
$listHash['user_id'] = $gQueryUserId;
//produces White Screen Of Death:
//$listHash['is_hit'] = TRUE;
if( @BitBase::verifyId( $module_params['group_id'] ) ) {
$listHash['group_id'] = $module_params['group_id'];
}
$blog = new BitBlog();
$ranking = $blog->getList( $listHash );
$gBitSmarty->assign('modTopVisitedBlogs', $ranking);
$gBitSmarty->assign('bulletSrc', isset($params["bullet"]) ? $params['bullet'] : NULL);
?>
|