WordPress 2.2.2

WordPress 2.2.2 has been released and as usual I have updated this site to WordPress 2.2.2.

Changed Files From WP 2.2.1:

» /wp-admin/import/wordpress.php

» /wp-admin/admin-db.php
» /wp-admin/admin-functions.php
» /wp-admin/edit-comments.php
» /wp-admin/link-import.php
» /wp-admin/options.php
» /wp-admin/upload-functions.php

» /wp-includes/formatting.php
» /wp-includes/functions.php
» /wp-includes/general-template.php
» /wp-includes/theme.php
» /wp-includes/widgets.php
» /wp-includes/version.php

» /wp-app.php
» /wp-settings.php
» /xmlrpc.php

Grab you copy today!

1 Star2 Stars3 Stars4 Stars5 Stars (51 votes, average: 3.75 out of 5)

WP-ServerInfo

I have coded this plugin within a night. It enables you to display your server’s PHP information from “phpinfo()” and MYSQL information from “SHOW VARIABLES” on your Dashboard under the sub-tab called “WP-ServerInfo”. Here is a screenshot of it. I will release it along side with almost all my plugins updates for WordPress 2.1. Most of them will break with WordPress 2.0.x including this because I am using some of the functions available in WordPress 2.1 only.

If you are wondering what plugin I used to modify those dates to Today, Yesterday, 5 Days ago, 1 minute ago, etc. It is one of my plugin called WP-RelativeDate.

1 Star2 Stars3 Stars4 Stars5 Stars (132 votes, average: 3.74 out of 5)

Dashboard Widget (Without Controls) Sample Plugin

WordPress 2.5 has the ability to customize your administration dashboard with the help of widgets.

After poking around WordPress 2.5 codes, I have come out with this Dashboard Widget Sample Plugin. BUT do note that this plugin does not include Dashboard Widget Controls. If I have the time, I will add that in or perhaps I will create another plugin called “Dashboard Widget (With Controls) Sample Plugin”.

To get a clearer picture of what this sample plugin does, here is a screenshot of the Dashboard Widget (Without Controls) Sample in action.

Here comes the code:

 'Full URL For "See All" link', // Example: 'index.php?page=wp-useronline/wp-useronline.php'
		'feed_link' => 'Full URL For "RSS" link', // Example: 'index.php?page=wp-useronline/wp-useronline-rss.php'
		'width' => 'half', // OR 'fourth', 'third', 'half', 'full' (Default: 'half')
		'height' => 'single', // OR 'single', 'double' (Default: 'single')
		)
	);
}

### Function: Add Dashboard Widget
add_filter('wp_dashboard_widgets', 'PLUGINNAME_add_dashboard_widget');
function PLUGINNAME_add_dashboard_widget($widgets) {
	global $wp_registered_widgets;
	if (!isset($wp_registered_widgets['dashboard_PLUGINNAME'])) {
		return $widgets;
	}
	array_splice($widgets, sizeof($widgets)-1, 0, 'dashboard_PLUGINNAME');
	return $widgets;
}

### Function: Print Dashboard Widget
function dashboard_PLUGINNAME($sidebar_args) {
	global $wpdb;
	extract($sidebar_args, EXTR_SKIP);
	echo $before_widget;
	echo $before_title;
	echo $widget_name;
	echo $after_title;
	echo 'YOUR CONTENT GOES IN HERE';
	echo $after_widget;
}
?>

Hope this helps some of you guys. =)

1 Star2 Stars3 Stars4 Stars5 Stars (35 votes, average: 3.74 out of 5)

Counterize II & Fire Stats

I just uninstalled Counterize II and FireStats from this site and I will track the hits via DreamHost Stats panel.

The reason being FireStats is taking too much database space. My whole database (without gzip) is about 35MB and now it is backed to 3.2MB, notice the great difference?

So I went to try out Counterize II hoping that it will be smaller, as it says on the website it has a new database structure which saves on the space, but after installing it, my sql queries went from 41 queries per page to 60+ queries per page.

I ended up not using both.

1 Star2 Stars3 Stars4 Stars5 Stars (31 votes, average: 3.74 out of 5)