blogs
[ class tree: blogs ] [ index: blogs ] [ all elements ]

Source for file mod_top_visited_blogs.php

Documentation is available at mod_top_visited_blogs.php

  1. <?php
  2. /**
  3.  * @version $Header$
  4.  * @package blogs
  5.  * @subpackage modules
  6.  */
  7.  
  8. /**
  9.  * required setup
  10.  */
  11. include_onceBLOGS_PKG_PATH.'BitBlog.php' );
  12. //require_once( USERS_PKG_PATH.'BitUser.php' );
  13.  
  14. global $gBitThemes;
  15.  
  16. extract$moduleParams );
  17. //$params = $gBitThemes->getModuleParameters('bitpackage:blogs/mod_top_visited_blogs.tpl', $gQueryUserId);
  18.  
  19. $listHash['max_records'$params['module_rows'];
  20. $listHash['sort_mode''hits_desc';
  21.  
  22. //produces White Screen Of Death:
  23. //$listHash['is_hit'] = TRUE;
  24.  
  25. BitUser::userCollection$_REQUEST$listHash );
  26.  
  27. $blog new BitBlog();
  28. $ranking $blog->getList$listHash );
  29.  
  30. $_template->tpl_vars['modTopVisitedBlogs'new Smarty_variable$ranking);
  31. $_template->tpl_vars['bulletSrc'new Smarty_variableisset($params["bullet"]$params['bullet'NULL);
  32. ?>

Documentation generated on Wed, 29 Jul 2015 13:57:12 +0000 by phpDocumentor 1.5.0-lsces