Skip to:
Content
Pages
Categories
Search
Top
Bottom

Private Group Permalink Redirects to Home Page

  • Hello, fellow BuddyPress’rs!

    On the groups page, I have a list of all the groups, both public and private. If I attempt to gain access to a private group when I am not logged in, I am redirected to the home page. Is there any way to redirect to an error page?

    It works fine here: http://testbp.org/groups/
    but it does not work here: http://unitedfrontmn.org/communities/

    The “bp_group_permalink()” function located in “bp-groups-templatetags.php” does not seem to be the correct place to edit this, as I need a conditional statement to say (paraphrase), “If user is not logged in, then redirect to an error page”.

    The “groups-loop.php” file seems like the most promising place to edit code, but I don’t see a way to say (in php), “if user is logged in…”.

    Can someone point me in the right direction here?

    Thanks!
    Toby

Viewing 3 replies - 1 through 3 (of 3 total)
  • BTW: I am using WordPress MU 2.9.2 and BuddyPress 1.2.4.1


    Boone Gorges
    Keymaster

    @boonebgorges

    @themightymo The template file that handles this is bp-default/groups/single/home.php. See around line 44 – bp_group_status_message() creates the “to join this group…” message for private groups. If you want to customize the way that you are redirected, you should start here.

    It’s strange, though – BP 1.2.4.1 should do what you are suggesting out of the box. Could there be a plugin conflict? Or an issue with a custom theme that you’ve built?

    Okay. The issue is that I am redirecting to the forum page for each group. The forum page for private forums does not have a “you need to be a member” error message like groups do. Doesn’t it make sense that forums would have a similar error message? Should I submit this as a BuddyPress bug? I have never submitted a bug and don’t quite know what the standards are for doing so.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Private Group Permalink Redirects to Home Page’ is closed to new replies.
Skip to toolbar