Archives


$node_count = db_result(db_query('SELECT COUNT(nid) FROM {node} WHERE status = 1 AND moderate = 0'));

$comment_count = db_result(db_query('SELECT COUNT(*) FROM {comments} WHERE status = 0'));

$tag_count = db_result(db_query('select count(*) from term_data where vid = 3;'));

printf('There are currently %d pieces of content published here, and %d comments, tagged by %d keywords.',$node_count,$comment_count,$tag_count);

?>

Posts by Tags/Keywords

$vocs[] = 3; // id of the vocabulary of which you want to display a tag cloud
$output = theme('tagadelic_weighted',tagadelic_get_weighted_tags($vocs, 6, 5000));
print $output;
?>


See Also