WordPress Designers and Developers in Minneapolis, MN

Force Users to Login to View BuddyPress Content

I have a BuddyPress-based website that I needed to require logins for. There are a number of plugins that force people to login to view content, but I couldn’t find one that forces people to login to see BuddyPress content while leaving all other content public.

So, I built this “BuddyPress Force Login” plugin. It requires people to login in order to view all the BuddyPress stuff – forums, groups, profiles, etc.

I would like to submit it to the WordPress repository, so please provide some suggestions for improvement.

DOWNLOAD.

Calendar Plugin Update

We are making the best calendar plugin we can fathom.  Adrienne and I have been meeting weekly to check in on each other’s updates in this regard.  Updates this week include:

  • We have a name for the plugin!  It is still top-secret until we get some branding done, but rest assured, it will be cowboy-tastic!
  • We still don’t know where or how we are going to sell the thing.  We are checking out wpplugins.com and codecanyon.net as well as some in-house options.
  • I recoded the plugin to reflect the new name.
  • We are building out some unique features, which will be unveiled once we figure out our marketing plan.
Please let us know if you have ideas or suggestions on features and calendar needs that are going unmet.

 

How to Enable Features in an Existing WordPress Custom Post Type

I was working on a slideshow tonight in a custom WordPress theme and wanted to use Meteor Slides. The only problem is that Meteor Slides does not come with the post editor enabled. So, I used the “add_post_type_support()” function to enable it:

 
<?php
	add_action('init', 'my_custom_init');
 
	function my_custom_init() {
		add_post_type_support( 'slides', 'editor' );
	}
?>

And whallah! Now Meteor Slides supports the post editor!

Note: Make sure to change “slides” to whatever custom post type you want to enable the features on.

How to Add Plugin Scripts and CSS to a Specific Custom Post Type

I am working on a new calendar plugin for WordPress and discovered that my jQuery scripts and CSS were loading on every page in the admin. Whoops!

The solution was to include my scripts in the following manner:

// Only load the scripts and css on the a specific custom post type in the admin
add_action('admin_init','load_my_script');
function load_my_script() {
  global $pagenow, $typenow;
  if (empty($typenow) && !empty($_GET['post'])) {
    $post = get_post($_GET['post']);
    $typenow = $post->post_type;
  }
  if (is_admin() && $typenow=='add_your_custum_post_type_name_here') {
    if ($pagenow=='post-new.php' OR $pagenow=='post.php') { 
      require ( dirname(__FILE__) .'/add_your_scripts_loader_file_here.php' );
    }
  }
}

I have discovered over the years that many plugins fail to include their scripts in this manner, which can cause all sorts of weird things to happen in the admin.

Enjoy!

Thanks to Mike for the answer.

BackupBuddy – 1st Experience

Tonight I utilized BackupBuddy to migrate a WordPress installation from a live server to a local install using MAMP on my Mac.  It was my first attempt at a BackupBuddy migration and took about 5 minutes to complete.

The process was intuitive and easy.  Earlier in the evening, I attempted to do a manual move and was running into all sorts of issues moving my database and connecting the dots – moreso than usual.  So, the ease of this BackupBuddy move was much appreciated.

What has been your experience with BackupBuddy?