Last Update: 25 January 2008
Plugin Name: Site Statistics
Version: 1.7
Plugin URI: http://www.cypherhackz.net/plugins-themes/site-statistics/
Description: Show your site statistics. Posts, comments, categories, last post, last commentator and last modified.
Author: Fauzi Mohd Darus
Author URI: http://www.cypherhackz.net/
Demo:
Posts: 724
Comments: 6,030
Categories: 34
Last Post: Windows Vista Sucks!
Last Commentator: Rarst
Last Modified: September 7, 2008 @ 12:18 am (GMT 8)
Download:
How to Install
- Download the plugin file.
- Extract file cypher_site-statistics.zip.
- Upload site-statistics.php to your Wordpress plugin folder.
- Activate the plugin in your Plugins admin panel.
- Put this function <?php cypher_sitestats(); ?> in your sidebar.php
- Done!
How to Upgrade
- Download the plugin file.
- Extract file cypher_site-statistics.zip.
- Upload site-statistics.php to your Wordpress plugin folder to replace the previous version plugin.
- Done!
Version History
- 1.7
- Fix the category issue. Thanks to Fabian Terh. - 1.6
- Change from categories to terms table. Wordpress 2.3 compatible. - 1.5
- Fix count posts issue. Thanks to Martin. - 1.4
- Compatible with Wordpress 2.1 - 1.3
- Only display approved comments.
- Last Modified is now easier to read. - 1.2
- Include permalinks instead of using Wordpress post IDs. -
1.0
- Initial Release




Very good! Thank you very much!
éžå¸¸å¥½çš„æ’ä»¶ï¼Œå€¼å¾—å¤§å®¶ä½¿ç”¨ï¼
No problem and thanks for the comment.
[...] Site Statistics, che potete vedere ora attivo sotto i Siti Consigliati. [...]
Hello there. I am using your plugin on my site and I really think it’s very good, but:
The point “posts” in the list do not only count the posts! It also counts the sites. So how can deal with that? I just wanted the posts to be counted! Maybe it would be good to add the point “sites” to this list. So that the sites are counted seperately!?
I am not the pro in php - better said a lil noob
Thanks for answer - u can also send me an e-mail but please use no slang, my english is not that good!
solved the problem alone
dear martin,
could you please give me more details about your problem and how you solve it? thank you.
the code which defines to display the number of posts not only counts the posts. The sites are also counted. That means that the number displayed is posts + sites. That was the Problem.
I changed your code a lil bit ::
$numpages = $wpdb->get_var("SELECT COUNT
FROM $wpdb->posts WHERE post_status = ‘publish’ AND post_type = ‘page’”);$numposts = $wpdb->get_var(”SELECT COUNT
FROM $wpdb->posts WHERE post_status = ‘publish’ AND post_type = ‘post’”);
FROM $wpdb->comments WHERE comment_approved = ‘1′”);
FROM $wpdb->categories”);
if (0 get_var(”SELECT COUNT
if (0 get_var(”SELECT COUNT
if (0 posts: ‘ . $numposts . ‘Comments: ‘ . $numcomms . ‘Cats: ‘ . $numcats . ”;
By trying this you will see, that the pages are also listed and seperately counted.
I hope u could unterstand my bad english?! Hope that i could help with the changed code!?
i got it. i’ve checked back the plugin and it is incorrect. i will edit it and will release the next version. thanks for bring up this issue.
plugin updated. thanks to you man. btw i put your link in the version history.
Wow. getting prominent by editing 2 lines of php … thnx …
[...] da wir schon mal dabei sind: Site Statistics - zu sehen im Menü [...]
[...] Site Statistics [...]
[...] Kai kurie statistikos įskiepiai taip pat turi galimybę pateikti populiariausių straipsnių sąrašus. Keli iš jų: Referral Tracker, bsuite b2, Site Statistics. [...]
i’ve followed your tutorial.
a thousand times approx.
and all i get is this!
Fatal error: Call to undefined function: cypher_sitestats() in /home/jenny/public_html/dirtycandie/home.php on line 256
grrrrrr!
are you sure? have you activated the plugin?
Yeah i Did.
it seems like the function is not working because the plugin is not activate. did you use the latest version?
YAY!
I got it working.
It didn’t have to do with the activation,
something wierd.
Thanks for the code, I love it.
lol… but im glad to hear that.
10x for your very nice plugin!
thanks
On my site it is showing this error
WordPress database error: [Table 'wastedre_wordpress.wp_categories' doesn't exist]
FROM wp_categories
SELECT COUNT
Does anyone know how to fix that? Thanks
I got the same error as Jay, but the fix is straightforward. The error occurs because WP2.3 uses “terms” instead of “categories” for the taxonomy and changes the SQL table “wp_categories” to “wp_terms” as part of the upgrade.
The fix is to alter line 23 in site-statistics.php from:
$numcats = $wpdb->get_var(”SELECT COUNT
FROM $wpdb->categories”);
to:
$numcats = $wpdb->get_var(”SELECT COUNT
FROM $wpdb->terms”);
This works for me with no further modification needed. Let me know if it does for you too.
Yeah that worked, thanks Rick
[...] yet, I’m still on my first one.Wordpress PluginsAsk Me WP2.1Comment PluggerCounterizeExec-PHPSite StatisticsText ControlTiger Style Administration Thanks: [...]
Rick - Thanks for the fix. I don’t have time to check the code because I have other works and need to study for my exam. Anyway, thanks again. Will release the new update soon.
[...] اب ڈیش پورڈ سے اٹھ کر سائیڈ بار میں Ø¢ گئیں Ûیں۔ اس پلگ ان Ú©ÛŒ [...]
Um why does the category shows “38″ when I have only 3 categories?
I already know about it but don’t have time to fix this plugin. I am really2 sorry for that.
hello.. i read the comment above and saw that someone is also having category issues.. where exactly is the problem maybe we could fix it ourselves if it’s simple? i’m having the same problem and i do want to use the plugin but i want to fix the category number first. thanks
New version has been released. Please download the latest version.
[...] Site Statistics - Coleta várias estatísticas interessantes sobre o site; [...]
Have you thought about making this into a sidebar widget for those who use widgets?
Yeah but not now because kinda busy lately. But thanks for you suggestion.
I was wondering… how do you change the date and time where it says “Last Modified”?
poker rule rules poker rule rules
medusa hentai pic pic hentai medusa