Logout redirect plugin for wordpress Mu /buddypress

Jotted by Brajesh Singh in Buddypress Free Plugins, Plugins, wpmu plugins on November 30, 2009

hi again :)
I am glad to introduce our another free plugin “bpdev logout redirect” for wordpress Mu and Buddypress.

So what It does

  • For WPMU, redirect users to main site, when they logout
  • For buddypress, if the user is logged in at back end, he will be redirected to the front page of the site on which buddypress is enabled. For the user not logged in backend, buddypress already redirects them to main site on logout.

So, It is basically a simple plugin, allowing you to redirect your user to the main site while they logout.

I have used the filter “logout_url” to manipulate it, anyway, It was just a few lines of code.

Download Link

Please download it by clicking on the right side download icon .

download

Download: bpdev-logout-redirect.zip
Version: 1.0
Updated: November 30, 2009
Size: 13.95 KB

Powered by Drain Hole

Installation

1.Unzip the plugin bpdev-logout-redirect.zip
2.Upload it to wp-content/plugins
3.Go to Dashboard->Plugins->Installed
4.Activate BpDev Logout redirect  Sitewide

That’s it.

Hope It helps.

Let me know in comments whether it worked for you or not or if you found any problem.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • BlinkList
  • DZone
  • FriendFeed
  • IndianPad
  • MySpace
  • Netvouz
  • Reddit
  • SphereIt
  • StumbleUpon
  • Technorati

Related posts:

  1. BP Redirect to profile Plugin :redirect Users to their profile on Login on buddypress sites
  2. Plugin BP Auto activate Auto Login-redirect to profile, automatically activate your new user signup, log them in and redirect to their buddypress profile on signup
  3. Stealth Mode for Buddypress Site Admin Plugin
  4. Sitewide Footer Content Plugin for wpmu/buddypress
  5. Change The admin footer Links/footer content sitewide for wordpress mu/buddypress based sites

6 Comments Already!

  • Frank says:

    This plug in worked like a charm and did exactly what I needed. Thank you very much!

  • Daniel says:

    I uploaded and activated the plugin, and after that my adminstrations sit just turned whrite. So now I can’t do anything. I can not even remove the plugin again. What can I do?

    • Daniel
      This plugin should not cause any issue with bp 1.2. I had updated it for bp 1.2.

      Still, you can simply delete the plugin using ftp, delete it from wp-contents/plugins and it will be automatically deactivated.

      I will be interested to know, what caused the conflict.

      Thanks
      Brajesh

  • Giovanni says:

    Hello!

    Thanks for all the great plugins!

    Question. How can we modify your plugin so when they hit logout they get redirected to a logout page or at least a message is set on the home screen saying its logged out?

    Thank you!

    • hi Giovanni
      add a line after line 33 and before 37 as

      $redirect="where you want to redirect";

      Also for showing a message, you will need to add another line at the bottom(just before return statements ass)

      bp_core_add_message("You have logged out successfully");

      Make sure the line
      do_action( ‘template_notices’ );
      is present on the page where you are redirecting user after logout .

Leave a Reply

Name [*]

Email [*]

Website Optional

Comment [*]

Please Note,The fields marked as * are required fields*


Get Adobe Flash playerPlugin by wpburn.com wordpress themes