Cleaning Executive Officer (1976-2010)

Patrick Chia


Tuesday, December 15th, 2009

This is very simple plugin to provides information about the last login activity on you blog account, If you’re concerned about unauthorized access to your blog account, you’ll be able to use this information to find out if and when someone gained access.

Wordpress last login activity

Wordpress last login activity

The IP address is also useful. If you always or most often sign in to your blog account using a single computer, your IP address should be the same, or start with the same two sets of numbers (for example, 125.16.xx.xx). If you’re seeing an IP address that differs greatly from your usual IP address, it could either mean that you’ve recently accessed your account from a different location, or that someone has accessed your blog.

Download the zip file and unzip the file into plugin folder or mu-plugins if you are install MU Version.

For Wordpress user, just activate the plugin. No option available. You must logout and login again to see the result.

For MU user, just upload the file, nothing to activate. User logout and login will see the result at the bottom bar.

Merry Christmas and Happy New Year to all of you and your family.

Saturday, December 12th, 2009

I just make a test on Maxis Broadband without browse and surfing web. Just powered on the wireless modem and monitoring within few minutes. Please see the captured image. You may found the different Total Data Received. Maxis has changed their broadband package that control by bandwidth. But seen it’s cheating data received.

And one more thing, if you are upgrading to new package, you are entitle paid upgrading fees. But if you not going to upgrade. The suck Maxis also change your package to new selling package without your permission . For example, my subscribed package has no bandwidth control, but their new package has bandwidth control. I called to customer service, the guy informed me that my account has exceed the data quota, who’s allowed Maxis change my subscribed package?  I don’t know whether Maxis has right to change our existing package to new or not? Is it mean Maxis has right to break the signed agreement? Beware if you are powered on the modem without do anything, your money is flying too…

Thursday, November 19th, 2009

Just received a email from Edir to fixed the problem for WPMU Admin Interface Language.  Open the file with editor or notepad, just make a mirror change. Take a look.


function admin_in_english_locale( $locale ) {

$lang = get_user_option('lang_id', $user_id);

if ( !$lang ) {
return $locale; // Change HERE
}

if( WP_ADMIN === true ) {
if ( $lang ) {
$locale = $lang;
} else {
$locale = 'en_US';
}
}

return $locale;
}

To make it works, it needs to return the actual value of $locale, used in wp-config.php, when it returns false, it returns to English in the front-end. – Edir

Thanks to Edir’s fixed the problem.

Friday, November 13th, 2009

I just wrote a simple plugin for WordpressMU and Blogates. This is very simple plugin to automatically add a share badge to the blog’s articles. It’s allowed to enable Digg This and Facebook. You can get source code from the Wordpress MU Plugin. For Blogates user, you may found the option at your Discussion menu.

Wednesday, September 2nd, 2009

Thanks to everyone that download the hoPE Theme for your wordpress blog. Here are some tips and help information to setup your hoPE Theme. hoPE theme designed to display your flickr’s photo gallery or Google Picasa web album on blog. But how to get your gallery’s RSS feed? For flickr user, just browse to flickr photo page and find the RSS url below the page, copy the RSS link. see pic.

Copy flickr RSS Link from Latest

Copy flickr RSS Link from Latest

Example RSS link: http://api.flickr.com/services/feeds/photos_public.gne?id=30445359@N00&lang=en-us&format=rss_200

If you have Google Picasa Web Album, browse to your web album and find the RSS link on the right sidebar. Copy the RSS link. see pic.

Copy PicasaWeb Album RSS link

Copy PicasaWeb Album RSS link

Example RSS link: http://picasaweb.google.com/data/feed/base/user/mypatricks/albumid/5362788080899248097?alt=rss&kind=photo&hl=en_US

After copied the RSS link, login to your blog account, browse to your Appearance menu, click the hoPE Theme Settings. Paste your RSS link. see pic.

Paste your RSS link here.

Paste your RSS link here.

It’s done, browse to your site and see your gallery. If you have see nothing, please clear your blog cache or browser’s cache.

Quality of photo for flickr: Due to site loading’s speed, the gallery may display in low quality, but you may change the photo to original quality. Please use your wordpress theme editor to edit your functions file. Login to your blog’s admin, browse to Appearance menu, click Editor. Make sure you are selected hoPE theme to edit. Click Theme Functions(functions.php) and find this line in the text area.

$photo_url = str_replace( "_m.jpg", "_m.jpg", $sub[0][1] );

change to:

$photo_url = str_replace( "_m.jpg", "_o.jpg", $sub[0][1] );

Change the quality of flickr's photo

Change the quality of flickr's photo

Click Save and done. (Note: Change to original photo size may cause your site slow loading.) If you still has problem to setup your photo gallery, please feel free leave your comment. Enjoy your blog.

Friday, August 21st, 2009

New search architecture, a better and faster search engine than the current one, try it and give feedback! I like the project’s name. :)

http://www2.sandbox.google.com/

Sunday, August 16th, 2009

I’m going to sell my web site - Doogate.com.  Please feel free to contact me for further info.

Tuesday, July 28th, 2009

Just updated my gravatar favicon plugin,  I added the profile image into the feed. Make your blog more personalize. Download the latest plugin from Wordpress Plugin Directory.

Sunday, July 5th, 2009

Just uploaded and released three wordpressMU and wordpress plugin to the Plugin Directory.
WPMU Admin Interface Language
Lets WPMU user to select language in backend administration panel.

Multiple Twitter Widgets
Allows for multiple twitter widgets to be displayed.

Gravatar Favicon
This plugin allows you to generate a gravatar favicon for your blog and admin logo included Apple touch icon.

It’s support WordpressMU and Wordpress 2.7 above. Enjoy your blog. I am waiting my coffee. :)

Thursday, July 2nd, 2009

If you are using the Cookie for comment from Donncha and WordpressMU. Here are some tips for you. You may add a function to your blog signup. Just copy the code and paste into the plugin’s file.


function cfc_check_signup($result) {
$cfc_key = get_cfc_key();
if( !$cfc_key )
return $result;

if( !isset( $_COOKIE[ $cfc_key ] ) ) {
die( 'Sorry, you are not allowed to signup.' );
}
return $result;
}
add_filter( 'wpmu_validate_blog_signup', 'cfc_check_signup' );
add_filter( 'wpmu_validate_user_signup', 'cfc_check_signup' );