Archive for March, 2008

30th March 2008

My Plugins Compatibility With WordPress 2.5

Posted by Lester Chan at 13:26 in Plugins

Below is a list of my plugins in development that WILL work with WordPress 2.5. The reason why I consolidated it here is because the current version of the listed plugins does not work properly with WordPress 2.5.

For the remaining plugins, see also Lester Chan’s WordPress Plugins June 2008 Update (Wave 1).

Tags: ,

Email This Post Email This Post Print This Post Print This Post

1 Star2 Stars3 Stars4 Stars5 Stars (138 votes, average: 4.06 out of 5)
Loading ... Loading ...

WP-Email And WP-Print With WordPress 2.5

Posted by Lester Chan at 02:10 in WP-EMail, WP-Print

For some reasons, the core permalink structure of WordPress 2.5 has been changed just before it is being released (the problem is not there with WordPress 2.5 RC1).

If you get a 404 on WP-Email and WP-Print posts/pages, you need to get the latest development version of the respective plugins. Refer to the post above this.

I also wished I have more time to spend updating my plugins, but as my school is nearing the semester end, all my projects deadline are also coming and so are the end of semester exams. I can’t fork out any valuable time to update all my plugins for WP 2.5 and hence, 1st June 2008 should be the day I will roll out the updates to my plugins as my last paper is on 6th May 2008.

But in the mean time, I will try my best to address all issues related with my plugins and WordPress 2.5.

Tags:

Email This Post Email This Post Print This Post Print This Post

1 Star2 Stars3 Stars4 Stars5 Stars (57 votes, average: 3.84 out of 5)
Loading ... Loading ...

29th March 2008

WordPress 2.5

Posted by Lester Chan at 23:37 in Site, WordPress

WordPress 2.5 has been released and WordPress.org has a refreshed look based on WordPress 2.5 new redesigned administration backend.

New User Features in WordPress 2.5

  • Cleaner, faster, less cluttered dashboard
  • Dashboard Widgets
  • Multi-file upload with progress bar
  • Bonus: EXIF extraction
  • Search posts and pages
  • Tag management
  • Password strength meter
  • Concurrent editing protection
  • Few-click plugin upgrades
  • Friendlier visual post editor
  • Built-in galleries

New Developer Features in WordPress 2.5

  • Salted passwords
  • Secure cookies
  • Easy taxonomy and URL creation
  • Inline documentation
  • Database optimization
  • $wpdb->prepare()
  • Media buttons
  • Shortcode API

Download: WordPress 2.5

I have upgraded this site to WordPress 2.5.

Tags: ,

Email This Post Email This Post Print This Post Print This Post

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

27th March 2008

WordPress 2.5 RC 2

Posted by Lester Chan at 01:16 in WordPress

WordPress 2.5 RC 2 has been released alongside with a short screencast covering the new dashboard and uploader and Release Candidate 2.

I will be holding on to the upgrade to RC2 as the gold version will be out before end of this week.

Download: WordPress 2.5 Release Candidate 2

Tags: , ,

Email This Post Email This Post Print This Post Print This Post

1 Star2 Stars3 Stars4 Stars5 Stars (40 votes, average: 3.95 out of 5)
Loading ... Loading ...

20th March 2008

My Plugins And WordPress 2.5

Posted by Lester Chan at 22:24 in Plugins, WP-Polls, WP-ServerInfo, WP-Sticky, WP-UserOnline

The current version of all my plugins will work on WordPress 2.5 PROVIDED you have upgraded your WordPress blog from WP 2.x to WP 2.5.

If you are using a fresh copy of WordPress 2.5 together with my plugins, it WILL NOT work as WordPress 2.5 changes the Activation Global Scope Of The Plugins. In simpler terms, it means that upon activation of my plugins in WP-Admin, it will not create the tables needed by the respective plugins.

To solve this problem temporary, do the following in polls.php (I am using WP-Polls as an example):

Find:

1
2
3
$wpdb->pollsq = $table_prefix.'pollsq';
$wpdb->pollsa = $table_prefix.'pollsa';
$wpdb->pollsip = $table_prefix.'pollsip';

Replace:

1
2
3
4
global $wpdb;
$wpdb->pollsq = $wpdb->prefix.'pollsq';
$wpdb->pollsa = $wpdb->prefix.'pollsa';
$wpdb->pollsip = $wpdb->prefix.'pollsip';

Note the addition of the “global $wpdb;” and the replacement of “$table_prefix” with “$wpdb->prefix“.

I have updated WP-Polls, WP-ServerInfo, WP-Sticky and WP-UserOnline to work with WordPress 2.5. You can get them here at my downloads page (do note that they are still in beta). Those plugins that end with a “Beta 2″ means it will work for WordPress 2.5.

Some of the updates are:

  • Making sure that the styling, alignment and color of the plugin matches WordPress 2.5
  • Fixes the “Activation Global Scope” issue
  • Updated WP-Polls TinyMCE plugin to work with TinyMCE 3.0
  • Added a summary of WP-ServerInfo as a Dashboard Widget
  • Added a summary of WP-UserOnline in the Right Now Dashboard Widget
Tags: , , ,

Email This Post Email This Post Print This Post Print This Post

1 Star2 Stars3 Stars4 Stars5 Stars (61 votes, average: 3.77 out of 5)
Loading ... Loading ...

19th March 2008

Dashboard Widget (Without Controls) Sample Plugin

Posted by Lester Chan at 01:46 in Sample Plugins

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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/*
Plugin Name: Dashboard Widget (Without Controls) Sample
Plugin URI: http://lesterchan.net
Description: A sample on how to add widgets on your dashboard easily.
Version: 0.01
Author: Lester 'GaMerZ' Chan
Author URI: http://lesterchan.net
*/
 
/*
 
Replace all instances of PLUGINNAME with your nice plugin name something like "polls" or "ratings (without the quotes)
 
*/
 
### Function: Register Dashboard Widget
add_action('wp_dashboard_setup', 'PLUGINNAME_register_dashboard_widget');
function PLUGINNAME_register_dashboard_widget() {
	wp_register_sidebar_widget('dashboard_PLUGINNAME', __('Sample Dashboard Widget', 'PLUGINNAME'), 'dashboard_PLUGINNAME',
		array(
		'all_link' => '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;
}
?>

You can also download the file by clicking the link below:

  Dashboard Widget (Without_Controls) Sample Plugin (873 bytes, 981 hits)

Hope this helps some of you guys. =)

Tags: , , ,

Email This Post Email This Post Print This Post Print This Post

1 Star2 Stars3 Stars4 Stars5 Stars (28 votes, average: 3.93 out of 5)
Loading ... Loading ...

18th March 2008

WordPress 2.5 RC 1

Posted by Lester Chan at 15:27 in Site, WordPress

The time I have been waiting for to test my plugins on WP 2.5 is finally here.

Some features in WordPress 2.5 taken from WordPress.org:

A customizable dashboard, multi-file upload, built-in galleries, one-click plugin upgrades, tag management, built-in Gravatars, full text feeds, and faster load times.

Do take a look at WordPress.org’s blog - Sneak Peak on WordPress 2.5.

Download: WordPress 2.5 Release Candidate 1

*UPDATE* Just updated this site to WordPress 2.5 RC1, apparently all my plugins seems to be working fine. Just that some alignment and colour scheme maybe a little off. I will try to fix it latest during my summer holidays.

Tags: ,

Email This Post Email This Post Print This Post Print This Post

1 Star2 Stars3 Stars4 Stars5 Stars (15 votes, average: 3.80 out of 5)
Loading ... Loading ...

WordPress 2.5 Release Date

Posted by Lester Chan at 09:45 in WordPress

Accordingly to Lorelle, WordPress 2.5 will be released before WordCamp Dallas.
As taken from WordCamp Dallas website:

The Dallas 2008 WordCamp spans two days, with the first day focusing primarily on general user topics and the second day primarily on developer topics, with some overlap.

In this case, WordPress 2.5 should be out on either 28th March 2008 or 29th March 2008.

Tags: , ,

Email This Post Email This Post Print This Post Print This Post

1 Star2 Stars3 Stars4 Stars5 Stars (19 votes, average: 3.95 out of 5)
Loading ... Loading ...

12th March 2008

WordPress 2.5 Delayed

Posted by Lester Chan at 15:50 in WordPress

WordPress 2.5 has been delayed till 17th March 2008 tentatively. I find the development cycle for WordPress 2.5 is a little weird.

For WordPress 2.3 and other previous versions of WordPress, betas and RCs are released first. For example, WP 2.3: Beta 1, WP 2.3: Beta 2, WP 2.3: Beta 3 and lastly WP 2.3: RC 1 are released first before WP 2.3 went gold.

For WordPress 2.5, there are so such releases (I am not talking about SVN nightly) and apparently the upcoming WP 2.5 will be the first and gold release.

Personally, I think they should release the betas and RCs officially first before releasing the gold version to the public.

But I still hope it get further delayed till my summer holidays so I can release it together with my plugins as I am too busy with school that I could not even take any time off to do my plugins.

Tags: , ,

Email This Post Email This Post Print This Post Print This Post

1 Star2 Stars3 Stars4 Stars5 Stars (49 votes, average: 3.65 out of 5)
Loading ... Loading ...