Limit Number of Blogs per User for wordpress Mu and buddypress website/blog network

Jotted by brajesh on March 25, 2009

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Update 28th Feb, 2010: This plugin is updated, Please read more here  http://buddydev.com/buddypress/limit-blogs-per-user-plugin-for-wpmu

Well,It’s a small post after a long time.This time ,I am back with a plugin for wordpress MU.There might have been the times ,when as a site admin of wpmu site, you wished to limit the number of blogs a user can register. My plugin, limitBlogsPU(limit blogs per user),solves this problem.So ,what it does .

  • It adds an option to the options page when you are logged in as site admin of the wpmu site(or wpmu+buddyppress site),Look at the bottom of options page,and You will see a text box like this asking for number of blogs allowed per user.If you set it to zero(which is the default),It will not restrict the blog registration then.
  • It works only,if  you have allowed user registration,otherwise ,this becomes useless if the registration is disabled.
  • When ,a logged in user clicks on register blog (or register another blog,It checks ,whether the current user has already reached the restricted number of blogs),if not then the registration form is shown,otherwise it returns none on filter “wpmu_active_signup” ,restricting the wpmu to not  show registration form.

Who needs this plugin

  • Any wpmu(wordpress Mu)  site owner ,interested in limiting number of blogs registered per user
  • Any Wpmu+buddypress(Social networking plugin) based social network owner,interested in restricting numer of blogs per user.

Where Can you Download

Currently You can download it from my blog here from official wordpress lugin repositoryhttp://downloads.wordpress.org/plugin/limit-blogs-per-user.1.0.zip .

Installation and setup:-

  1. Download the plugin from herehttp://downloads.wordpress.org/plugin/limit-blogs-per-user.1.0.zip
  2. Unzip the plugin and upload the file “limit-bogs-per-user.php“  to your mu-plugins folder.If you have never worked with wpmu before,please read my post Wordpress Mu Plugins Installation, sitewide Plugins vs. per blog plugin .
  3. Now The plugin will be automatically activated,please login to the wordpress backend as Site Administrator(site owner)
  4. Go to SiteAdmin-> Options page as show below wpmu options link

Now look at the bottom of options page, you will find something like this Showing The Number of Blogs to restrict fieldThere you will find ,a value 0 initially.Now you may set it to any number.The number indicates,the allowed number of blogs per user. I hope ,It will certainly help some of you.

Please note,it should work with wordpress Mu and Budypress+wpmu both.

Looking forward to your response. Brajesh

[blinklist] [Bloglines] [del.icio.us] [Digg] [dzone] [Facebook] [Ma.gnolia] [Mister Wong] [Reddit] [Sphere] [Sphinn] [StumbleUpon] [Technorati] [Email]



Get Adobe Flash playerPlugin by wpburn.com wordpress themes