Sanitizing HTML tags in WordPress MU

If you run a WordPress MU , you probably notice that there are some tags that are stripped (removed after an entry was posted). For example, when you upload a picture, you want to add style="float: right; margin-left: 10px;" so that you get a better entry formatting.
By default, this style="" is filtered. If you are sure that you want to enable this tag, you can do it easily. Open your kses.php inside wp-includes directory. Around line 20, you will find this line: $allowedposttags = array.
For example:

'img' => array (
'alt' => array (),
'border' => array (),
'class' => array (),
'height' => array (),
'hspace' => array (),
'longdesc' => array (),
'vspace' => array (),
'src' => array (),
'width' => array ()),

alt, border, class, etc. are the code that are permitted to be used in the entry — to me more spesific, inside tag. If you want to allow style="" in the post, just add a new line: 'style' => array(),. Easy, right?

Few things you need to know about Yahoo! Photos closing

Yahoo! Photos Closing
You probably had heard that Yahoo! will close its Yahoo! Photos service on Thursday, September 20, 2007 at 9 p.m. PDT. I have a Yahoo! but I do not use their Yahoo! service. I use Flickr instead. Here are few notes you’re probably need to know:

  • Yahoo! will focus on . Yes, Yahoo! acquired Flickr two years ago. So, rather than having two photo sharing , Yahoo! will only run one, that is Flickr. I believe it was not an easy decision. Once again, Yahoo! service will be closed on September 20, 2007 at 9 p.m. PDT.
  • Before the service completely closed you have some options to keep your photos. You can choose from some other photo sharing services. They are: Flickr, Kodak Gallery, Shutterfly, Snapfish, and Photobucket.
  • You can also download all you photos (before you move your photos to other photo sharing services, or before Yahoo! Photos service completely closed).
  • You can buy an archive CD. This service is provided by Englaze Archive. You will be charged $6.95 for every 700 MB of photos (if you’re Yahoo! Photos users). This service only available for users who signup for New Yahoo! Photos service. It was introduced in August 2006. (Read Englaze FAQ)
  • If you have moved to other services, you can not access your Yahoo! Photos account anymore. You should choose the best option.
  • You need to wait until your photos transfered to new service you choose. It depends on how many users uses the other services. If your photos have been transfered, you will get notification emails. If you’re in the waiting list, just wait. Flickr probably the fastest service in the transition (yeah, Flickr is owned by Yahoo!).
  • During the transition, you will not be able to access your Yahoo! Photos account. If you have problems during the transition, the problem will be addressed to the target services, so you need to contact them directly.
  • If you give different photo permission (private, public, friends), all your photos will be flagged to “private”. So, you need to change the photo permission by yourself.
  • All other information e.g. Album Information, Photo Information, Photo Detail: EXIF ( type, resolution, size, etc.), and tags will be transfered. If your photos have comments, friends’ list, and smart albums; all these information will not be transfered.
  • Since you will be using other service, you need to follow its aggreements ( and upload policies).
    • If you’re using Flickr’s free account, you can upload 100MB worth of photos each calendar month. And, photostream views limited to the 200 most recent images. If you have more than 200 photos, all of them will be stored. But, only 200 recent photos will be visible. (more info)
    • Kodak EasyShare Gallery provides free unlimited online photo storage to you for 12 months from the date you first upload an to your account. (more info)
    • Snapfish offers free, unlimited storage of your online photos, whether they come from you develop with us or from digital photos that you upload to your account. There is no limit to the number of rolls you can send in, nor is there a limit to the number of digital photos you can upload. You can have an unlimited number of albums and photos in your account. (more info)
    • Shutterfly offers free, unlimited storage. You can store as many pictures as you wish, with no fee to upload or store your pictures.
    • If you want to use Photobucket, you can read all Yahoo! Photo Migration FAQ.

Once again, I believe that this decision is not easy to make. For Yahoo! Photos users, it might be one thing they do not want to happen. Yahoo! runs the service, and it’s their decision. Like or not, we have to choose.
References:

WordPress 2.2.1

released its latest package yesterday. It is recommended to your WordPress to the latest .

Since 2.2 was released a month ago, the WordPress has been improving fit-and-finish by identifying and fixing those little that can be so annoying and by fine-tuning some small details. The result is a nicely polished 2.2.1 release. (source )

This release also fixed some vulnerabilities:

Okey, you’d better upgrade it.

Handling error when WordPress plugin functions are not available

When we build a WordPress , sometime we need want to add more using plugin. For example, we want to display commenter’s avatar from Gravatar . Because we (as the theme creator) want to make our theme can handle Gravatar plugin by default, we directly put plugin function inside our theme — to be more spesific inside comments.php.
If we share our theme (someone uses our theme), and his/her WordPress does not have plugin installed, the theme might be broken. There will be an . Single page (where the gravatar/comment should appear) will stop loading. Why? Because there is a gravatar plugin tag/function, but the plugin is not available.

Another thing, you downloaded a free theme, and you want to add gravatar function by yourself. So, you downloaded the Gravatar plugin, put plugin tag, and voila! All works. But when this plugin is deactivated (probably when you upgrade your WordPress installation) and you forgot to activate it again, your theme might nor working well. So, what’s the solution? It’s pretty simple: use the conditional tags. Okey, we’ll use Gravatar plugin as the example.

I got my Yahoo! Mail unlimited storage

Yahoo! Unlimited
There is something a little bit different when I logged into my . I saw an alert informing that Yahoo! now offers an unlimited . Around two months ago, I heard this plan at Yodel Anecdotal.
I got my unlimited email storage yesterday, I think. This is a good news, and I will use my Yahoo! account on my daily basis. For now, I use Gmail more often than Yahoo! Mail. I wish Yahoo! also offers POP access, it’s more “useful” than unlimited storage. 1 GB is more than enough, for me.