Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • @jesus-1

    Participant

    That´s not possible out of the box. Did you check out plugins like rtMedia for WordPress, BuddyPress and bbPress? Buddyboss might be an option, but that´s not for free.

    @jesus-1

    Participant

    It´s been a while, but I am dealing with something similar now. So that might help…

    Say what?

    That seems to be the easiest way to add some missing translations. After installation you can find the plugin in WordPress under “Tools”. In my case I translated the Original-String “Engagements” with the Textdomain “buddypress”.

    @jesus-1

    Participant

    Better late than never: Thanks, @shanebp!

    @jesus-1

    Participant

    Okay, seems like I really have to learn more about PHP. Via google I found https://wordpress.stackexchange.com/questions/60272/find-out-if-logged-in-user-is-not-subscriber. That gave me a rough idea, but I did not manage to change the code for a redirect.

    However, I found a workaround. I placed the following code…

    <?php if ( current_user_can('member') ) : ?>

    and

    <?php endif; ?>

    in these files:

    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/index.php (lines 27 and 144)
    /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/home.php (13 and 122)

    There´s no redirection now, but the content is not visible anymore for the role “subscriber”, but visible for “member”.

    @jesus-1

    Participant

    Here is a solution to exclude users, that are not logged in: https://buddypress.org/support/topic/hide-profile-from-non-logged-in-users/#post-147745.

    But how to exclude/redirect users, that have the user role “subscriber”? Redirect might be working with

    <?php wp_redirect( home_url() ); exit; ?

    @jesus-1

    Participant

    @djpaul Does BuddyPress use the same email-address for sending like WordPress? If not, that might be the problem: Some webhosters (like Hosteurope) restrict the usage of email addresses in scripts like WordPress to prevent spam.

    For example I usually have to choose one email-address on my webhoster´s config platform. After that I can use it in WordPress. Any other email address won´t work for sending with WordPress, if I don´t use a plugin like https://wordpress.org/plugins/wp-mail-smtp/.

    @jesus-1

    Participant

    It seems, that as soon as the user has activated the account (and logged in once?), he is no longer “pending”. The user then the becomes a “subscriber”.

    @jesus-1

    Participant

    Thanks, Shane!

    So, I would have to check, if a user is on the Members list/a profile page. Done with your code. But I would have to check, if he is a “subscriber”, too – and in this case redirect him to another url. Any hints, how to achieve that and where to place the code?

Viewing 8 replies - 1 through 8 (of 8 total)
Skip to toolbar