While working with my most recent plugin, I had an issue of finding all the admins of a blog on the wpmu network. after a couple of minutes, I implemented a small hack and It worked like charm.
So here you go.
Please Note, I have used User level, which is backward compatible and is there [...]
Get The List of all admins for a Blog on Wpmu
Jotted by brajesh on February 17, 2010Now parse Client side json with Wordpress
Jotted by brajesh on January 21, 2010If you are using wordpress 2.9+ , It is just so easy. You don’t have to worry about the evil thing called “eval” and you don’t have to worry about including JSON javascript parser with your theme/plugin.
Wordpress 2.9+ contains the json2.js from json.org.
So, just put a line in your plugin
wp_enqueue_script("json2");//must be put inside some function [...]
Read MoreTweak your buddypress login form to redirect to the page user was viewing while login
Jotted by brajesh on December 3, 2009If you are using buddypress,I am sure In most of the cases you are going to have a login form on all the pages(I know It depends on theme ,but most of them have it in this way)
When a user logs in from an arbitrary page,what happens,If the login is successfull,the user is redirected to [...]
Tweaking the registration link at wpmu login page to point to buddypress registration page
Jotted by brajesh on November 6, 2009well,It is not that hard.If you are using buddypress and a user is at yoursite.com/wp-login.php ,he may see a link of registration(obviously only if you have enabled it ) which points to yoursite.com/wp-login.php?action=register.
Now if you are using buddypress compatible themes, you must be interested in sending the user to yoursite.com/register in case they [...]
Changing Buddypress default logo with a custom logo in buddypress admin bar
Jotted by brajesh on July 26, 2009Do you use buddypress? If you use buddypress, you might have seen the buddypress admin bar.
here is a small screenshot for reference.
As expected,most of the time you will like to brand your site and will be using your custom theme for your buddypres powered site.
and here is what do I mean by buddypress admin bar [...]


