May
22
(2006)
$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;
?>
Comments
3 Responses to “Archives”

Hello,
I appreciate it if you could tell me how did you insert little icons in front of “Tags”, “Published ..”, and “Comment” under the entry title. I’m a new to Drupal and played around many hours by trying to modify node.tpl.php, page.tpl.php, and style.css etc etc under module folder. I could put one icon for the entire “links” output but not able to set individual icons for each menu. Where should I look for? By the way, your site is great and the best informative site many people appreciate your effort. Thanks.
It’s in node.tpl.php - try downloading a copy of the K2 theme, which is basically what I’m running here.
thank you for your reply but i’m still working on this….below is the part of the node.tpl.php file. can you point out where icon images should be placed to display them before text?
< ?php if ($links): ?>
< ?php if ($picture): ?>
< ?php endif; ?>
< ?php endif; ?>
thank you,