Thread Starter
799749
No-one has sample code where they’ve done this with Firestats..?
Thread Starter
799749
The very friendly and helpful Omry gave me a hand with this. Here is the result :
<?php if ( function_exists('fs_get_firestats_path') )
{
echo '<li>';
echo '<h2>5 Most Popular Posts</h2>';
$FS_PATH = fs_get_firestats_path();
require_once($FS_PATH.'/php/html-utils.php');
$days_ago = 30;
$num_to_show = '5';
$generator = create_function('',"return fs_get_popular_pages_tree($num_to_show, $days_ago, FS_URL_TYPE_POST,false, n
ull);");
echo fs_get_cached_data('cached_firestats_popular_pages', $generator, 3600);
}
?>