20 November 2009

How to Post Code Snippets in Blogger

Blogger/Blogspot is a great site to host your blog. However, you need to live with all its deficiencies. One example is how Blogger is formatting break lines and headings. I always hate it when I always have to edit my posts in order to control the look of my post depending on how many <br />'s and h(1,2,3) and even blockquotes are there.

Another is Blogger can't seem to recognize the tag <code> when posting code snippets if you have tutorials or how-to articles.

Good thing there is a tool to help you with posting code snippets: SimpleCode. You just have to enter your codes and it will generate the proper HTML markups to post to your Blogger, and maybe even blogging engines, blog.

19 November 2009

How to Use WordPress Credentials for a Third Party PHP Application?

This tutorial will just deal with the simple usage of WordPress credentials in a third party app, particularly the login credentials, and not further check with the authority level or role of the user (i.e., subscriber, contributor, author, etc.).

Oftentimes, as we build a community, we often rely on the magnificent WordPress Mu to run that. But, however comprehensive it is, it just lacks something one way or another.

Say, you need an app located at a subdirectory of the main WPMU site, but that you want to limit access to that app/site to "logged in" users only of the WPMU site. There is a great way to do that.

Based on the article by Kenn Wilson, Howto: Display Wordpress content outside of your blog, here's the hack: