Skip to:
Content
Pages
Categories
Search
Top
Bottom

Custom redirect when access is restricted?


  • eqerhe
    Participant

    @eqerhe

    Hi, I’m running BuddyPress 2.0.1, and I want to change how it handles restricted access. Currently, it just redirects to the home page with no message, which I think looks like a broken site.

    What I’d like it to do is handle it the same way bbPress and PMPro are handling forum access, which is to redirect back to the page the user was on, and display a message indicating the content is for members.

    Open to other options as well, especially if there’s something out there that will allow me to have a consistent user experience and will handle forums(bbPress) and the BuddyPress pages.

    Thanks,
    Amanda

Viewing 2 replies - 1 through 2 (of 2 total)

  • Henry Wright
    Moderator

    @henrywright

    Hi @eqerhe,

    Check out the Theme My Login plugin. Once installed, if you enable the ‘redirection module’ it’ll do exactly what you need.


    eqerhe
    Participant

    @eqerhe

    Thanks, @henrywright

    I think TML just handles redirects after logging in or out. What I’m looking for is a way to manage the redirect when someone who isn’t logged in tries to visit a page that’s only for members, or someone visits a page that their membership type doesn’t allow them access to.

    For example, I’d like anyone to be able to see the member and group directories, but only members should be able to look at individual profiles and the group pages and forums.

    That being said, I was thinking today that I’d actually like separate pages for visitors or people who aren’t logged in to be able to see those things and other info, so maybe I’ll handle it that way. I guess then what I’m actually looking for is a way to change the top menu depending on whether someone is a logged in member or not.

    Sorry for a babble. This is my first swing at BuddyPress, so it’s all trial and error for me right now! Thanks for the help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom redirect when access is restricted?’ is closed to new replies.
Skip to toolbar