Change in URL and more!!

I have changed my blog URL. As you can guess, I now have a larger playground and can have a lot of fun with this new domain ;) Expect a lot of easter eggs in the next few weeks. I have quite a few ideas in process for this awesome little domain of mine. piyushmishra.com points to this blog and will eventually die out or keep pointing here. If there is anyone out there linking to my blog posts please update the URLs (I am sorry for not having thought of this awesome URL before) Changing domains with WP isnt that difficult after all ;)
Guess what paid for linode and this new URL?

I’ll update my blog more regularly now and’ll try to keep it short. 2 of new blog resolutions :)

WP FB Comments

Edit: To report an issue please use the Github issues of the plugin. Thank you all for feedbacks and feature requests. It feels great! :)
A few days back, Ankit told me about a plugin idea. To integrate Facebook and WordPress comments. I was harboring the idea for quite sometime before that and finally he started writing the plugin. He released the plugin’s first few betas. During last weekend I cleaned it up a little and this week we are releasing its first stable version on the WordPress plugin repository. http://wordpress.org/extend/plugins/wp-fb-comments/
Enjoy commenting and keep looking as I am planning to release another new plugin to provide deeper integration of WordPress and facebook using ‘post-format’.

If you have any problems with the plugin, comment below. We’ll try to fix it in the future versions.

Read the release article here : Wp-Fb Comments -The next generation Wp-Fb integration

Open Graph

I just added a new plugin to WordPress.org plugins repo. its called Open Graph Wp Implementation.
On its own, it just adds meta data to the <head> section of WP to make the site a social object. Its meant for other plugin developers to be able to build and integrate social plugins.

I have added 2 actions and a few functions for governing the meta data WP sends to the browser.
The actions are
‘open_graph_head_pre’ and ‘open_graph_head_post’. Both run before meta data is echoed to the browser so both can be used to edit the meta data.
‘open_graph_head_pre’ action is run before the meta data is setup. So you can edit all defaults with this action. (set_home_type( $type ) , set_default_img( $url ) )
‘open_graph_head_post’ action is run after the meta data is setup. So you can use this and set_og_data( $key, $value ) to edit/add any number of meta data before executing it.
Always use open_graph_instance() to get the instance of the class. I can change the class name in future but will always keep this function constant

Alternatively, you can use the method echo_meta( $meta_array ) with ‘wp_head’ action for your own meta data (keywords description etc etc etc)

Another cool method is get_image_url();

I will add some code examples in next few days.
Use dependency to check if this plugin is active if you plan to use it.

If you’ve any doubts please post a comment below.

Download link for the plugin: http://wordpress.org/extend/plugins/open-graph

Note: attachment added. Save this as a php file
Sample code for open graph plugin extension

 

My first WordPress theme

I learnt a lot about WordPress themes in the past few days. html5 and css3 are pretty neat and helped me a lot in the process. Internet Explorer gave me a tough time so I have decided to not support it by default. If some version shows good in Internet Explorer, its good news.
One of the key features with html5 is the ability of showing up neat pages on phones. I don’t think I can make my site for a phone yet.  Overall it was a good experience trying out html5 and css3.
Toolbox theme from automattic gives a really good playground to try out html5 and make good stuff with it. I have multiple format types but I haven’t found time to use them.  Making a new facebook plugin to start putting status updates and comments integration will be up soon.
Except for IE, if any version of other browsers show mad stuff on my site, please inform me via the comments. Any designer friends are welcome to come up and help me make a good design out of this. this is more or less the standard toolbox theme with very few modifications so you can simply copy the style.css from this site and have the theme up in no time for your own WordPress installation.
My mid semester exams start tomorrow and I haven’t studied anything yet. So I should probably hit back to that now.

 

March 11, 2011 : just released version 1.1 of the theme

WordPressDAO

In a thread on wp-hackers http://lists.automattic.com/pipermail/wp-hackers/2011-February/037515.html to http://lists.automattic.com/pipermail/wp-hackers/2011-February/037541.html we talked about making WordPress DBMS independent. In an attempt to get things started in this direction, I opened a github repo for this and its at https://github.com/piyushmishra/WordPressDAO. At first look, it seems like we can implement the abstraction by writing a DAOfactory and writing interfaces and respective dbms specific classes to handle the queries. First implementation obviously being MySQL.