Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 3,251 total)

  • shanebp
    Moderator

    @shanebp

    Rather than create a link for certain roles, just add a redirect for anyone who has a role not approved for access to wp-admin. There are lots of examples of this, google it.

    For example, this will send everyone, other than admins, to the home page if they try to visits wp-admin:

    function beatwell_block_users_backend() {
    	if ( is_admin() && ! is_super_admin() && ! wp_doing_ajax() ) {
    		wp_redirect( home_url() );
    		exit;
    	}
    }
    add_action( 'init', 'beatwell_block_users_backend' );

    shanebp
    Moderator

    @shanebp

    Try switching momentarily to a WP theme like 2019 and see if the issues persist.
    If not, then ask the ‘someone else’ what they did re BP and/or Avada.


    shanebp
    Moderator

    @shanebp

    The errors are related to Memberium.

    for example: BP_Groups_for_MemberiumAutoJoin

    You should talk to Memberium about this issue.


    shanebp
    Moderator

    @shanebp

    The error is in your theme, not in the BuddyPress plugin.

    Your theme, jannah_v3.2.0, contains some BuddyPress files.
    /home/banoyeir/domains/mysite.com/public_html/wp-content/themes/jannah_v3.2.0/jannah/framework/plugins/class-tielabs-buddypress.php

    You need to show the error to the creators of your theme.


    shanebp
    Moderator

    @shanebp

    Try removing the ARRAY_N.

    Instead of $wpdb->get_results try $wpdb->get_col which should return a one dimensional array of ids.

    https://codex.wordpress.org/Class_Reference/wpdb#SELECT_a_Column


    shanebp
    Moderator

    @shanebp

    You can pass a string of ids to the exclude parameter of bp_has_members.

    How you gather the ids of the members you want to exclude is up to you.
    Perhaps MemberPress has a function for getting all the user ids with a membership.
    If so, then use the include parameter instead.

    <?php
    
       // gather the ids of the members you want to exclude.
    
       // for example, say you end up with an array of user_ids:
    
       $exclude_these_users = array( 3, 7 );
    
       $exclude_string = '&exclude=' . implode (", ", $exclude_these_users);
    
    ?>
    
    <?php if ( bp_has_members( bp_ajax_querystring( 'members' ) . $exclude_string ) ) : ?>

    shanebp
    Moderator

    @shanebp

    Are you referring to this line of code:
    <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend>

    In this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\edit.php

    If so, you can overload that template file. And make your edits in the overload template.


    shanebp
    Moderator

    @shanebp

    You’ll need to write some javascript to add a listener to the click and then perform the actions that you want, including a page refresh.

    Since you’ve already adjusted the target, you’re more likely to find possible solutions on stackoverflow re the javascript.


    shanebp
    Moderator

    @shanebp

    I’m trying to remove the Notifications > General subtab and set the Notifications > Notifications as default subtab.

    BP does not include a ‘General’ subtab for notifications. The only subtabs are: Unread, Read

    You’ll need to check your theme, or some other plugin or code and find out where the ‘General’ subtab is added – and how it was done.


    shanebp
    Moderator

    @shanebp

    You should ask BuddyBoss about that.
    And you should probably switch to their BuddyBoss Platform.


    shanebp
    Moderator

    @shanebp

    > How to make a custom registration form

    Not sure what you mean, but if you add a Location field to the Base (Primary) Group of the Profile Fields, it will appear on the registration form.


    shanebp
    Moderator

    @shanebp

    Using phpmyadmin, you should see 3 db tables.
    Assuming your $table_prefix is wp_, you should see:
    wp_bp_groups
    wp_bp_groups_groupsmeta
    wp_bp_groups_members

    Make backups of all 3 tables.
    Then select them, scroll down and select ‘Empty’ from the ‘With Selected’ dropdown.
    That will delete all the data but leave the tables and their structure.


    shanebp
    Moderator

    @shanebp

    Ask on bbpress support site: https://bbpress.org/forums/


    shanebp
    Moderator

    @shanebp

    Interesting…
    Forums are handled by bbPress.
    There may be a need for coordinate between bbPress and BP re account deletion.
    Did you ask about this on their support site?
    Try to get a response from them.
    And then, if necessary, open a ticket here.


    shanebp
    Moderator

    @shanebp

    @philippebrousse

    I agree that it is an ongoing issue.
    Please open a ticket here.


    shanebp
    Moderator

    @shanebp

    Probably yes re scope – so the js is not being loaded.

    That’s why I suggested just a basic form submit and handle approach.

    Or you can take the time to puzzle thru the Nouveau scope.
    For example – do you need to create an instance of the basic class?

    \bp-templates\bp-nouveau\buddypress-functions.php
    Line 659: bp_nouveau(); 

    shanebp
    Moderator

    @shanebp

    Unless you are a developer, it will not be easy.

    Copying the What’s New box will be difficult because of the javascript / ajax involved.

    It would be easier to just create a form and then, on submission, create a new activity item.


    shanebp
    Moderator

    @shanebp

    If those users have the role of Administrator – then they can edit other profiles.
    To prevent that – give them the role of Subscriber.


    shanebp
    Moderator

    @shanebp

    Not sure what you mean, but you can extend groups with the Group Extension API

    And perhaps some aspect of these will be helpful:
    Group Types
    Member Types


    shanebp
    Moderator

    @shanebp

    The error is coming from your theme – Not from BuddyPress.

    bp_is_user_forums() was removed from BuddyPress since Version 3.0.0

    You could delete those two lines from themes/moview/members/single/home.php
    If you did not add BP templates to your theme, then you could also send an error report to the creators of your theme.


    shanebp
    Moderator

    @shanebp

    Try replacing bp_is_user_profile() with bp_is_user()


    shanebp
    Moderator

    @shanebp

    Check your browser console for javascript errors.

    To see if your issue is theme related – try momentarily switching to a WP theme like 2019.

    If you still have issues, you can open a ticket here.

    ( btw- you cannot upload images here. Instead upload them somewhere else and then post the url here. )


    shanebp
    Moderator

    @shanebp

    It is a fork. And I think they did a great job.
    I was able to toggle between it and BP without issues on a standard installation.
    I’m not surprised to hear that some conversions are probematic – it is nigh impossible to anticipate all the possible permutations.

    They have obviously considered what is best for the end user and supportable by them.
    ( As opposed to what is most interesting for the devs ).

    It would be great to see their platform on github. I think it would receive some serious attention.


    shanebp
    Moderator

    @shanebp

    If you can reach the groups page when you are logged in, then some code in your theme or a plugin is restricting that page to only loggged in users.
    You need to find the source of that restriction.
    BuddyPress does not include that restriction.


    shanebp
    Moderator

    @shanebp

    I saw that announcement. Does their ‘platform’ include all of BuddyPress or just the templates?
    Themes often include the BP templates as overloads but not the component classes.
    If it is a fork then it would be the first commercial fork, afaik.

Viewing 25 replies - 1 through 25 (of 3,251 total)
Skip to toolbar