Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 8,201 through 8,225 (of 94,543 total)
  • Author
    Search Results
  • #275247
    shawfactor
    Participant

    Hi all,

    I am creating a plugin (which I will release in the repository), that lists former members of a buddypress group. I have 95% of it nutted out.

    However when I register the nav menu (which I need to appear in the manage/admin section for the group), it shows in the menu correctly but 404´s when I click on it. My code is below, any help would be appreiated. I am running the latest version of buddypress, wordpress, as multisite)

    As I said when I finish the plugin it will go in the repository for everyone to benefit.

    public function show_screen_title() {
    echo ‘New Tab Title’;
    }

    public function show_screen_content() {
    echo ‘New Tab content’;
    }

    public function new_group_tab_screen() {

    add_action(‘bp_template_title’, array($this, “show_screen_title”));
    add_action(‘bp_template_content’, array($this, “show_screen_content”));

    $templates = array(‘groups/single/plugins.php’, ‘plugin-template.php’);
    if (strstr(locate_template($templates), ‘groups/single/plugins.php’)) {
    bp_core_load_template(apply_filters(‘bp_core_template_plugin’, ‘groups/single/plugins’));
    } else {
    bp_core_load_template(apply_filters(‘bp_core_template_plugin’, ‘plugin-template’));
    }

    }

    public function new_nav(){
    global $bp;

    if (isset($bp) and isset($bp->groups->slug) and isset($bp->groups->current_group->slug)){

    bp_core_new_subnav_item( array(
    ‘name’ => __( ‘Former Members’, ‘altctrl-public-group’ ),
    ‘slug’ => ‘former-members’,
    ‘parent_url’ => bp_get_groups_action_link( ‘admin’ ),
    ‘parent_slug’ => $bp->groups->current_group->slug . ‘_manage’,
    ‘screen_function’ => array( $this, ‘new_group_tab_screen’),
    ‘user_has_access’ => bp_is_item_admin(),
    ‘position’ => 40
    ), ‘groups’ );

    }

    }

    #275246
    Venutius
    Moderator

    It’s safe to deactivate BuddyPress, you will lose the BP features but they will come back after you reactivate the plugin, so you can do it quickly to test then reactivate it.

    #275245
    mnm1994
    Participant

    @r-a-y
    I haven’t tried that. I contacted WordPress a second time and now they decided to look into it for me, so I am waiting on that.

    If I deactivate Buddypress, what will happen to my site? It is a member community full of groups and forums and I am afraid to break it.

    Is it safe to just deactivate Buddypress like that?

    #275242
    kenmcall
    Participant

    Should have mentioned that I’m running WordPress 4.9.7 and Buddypress 3.1, along with the BuddyBoss Boss theme 2.4.3.

    #275241
    r-a-y
    Keymaster

    The code to activate a user can be found here:
    https://buddypress.trac.wordpress.org/browser/tags/3.1.0/src/bp-members/screens/activate.php?marks=98#L62
    https://buddypress.trac.wordpress.org/browser/tags/3.1.0/src/bp-members/bp-members-functions.php#L1798

    It would be great if you are able to set up a fresh install of WordPress and BuddyPress to see if your activation problems are because of some custom code on your site.

    #275238
    r-a-y
    Keymaster

    How are your users logging in?

    What happens if you deactivate BuddyPress? Do login attempts work? If not, it’s not a BuddyPress issue.

    #275237
    r-a-y
    Keymaster

    About the code that is linked:
    https://buddypress.trac.wordpress.org/changeset/11766/trunk/src/bp-templates/bp-legacy/buddypress/members/activate.php

    If your theme contains either a /buddypress/members/activate.php or /registration/activate.php file, you replace red lines with green lines. If your theme does not have any of these files, then you don’t need to make any changes.

    If you are still running into trouble, change your theme temporarily to see if your theme is the issue.

    —-

    If you want to roll back to an older version, you can do so on the following page:
    https://wordpress.org/plugins/buddypress/advanced/

    Under “Previous Versions”, select 2.9.4 and replace the copy on your server with that one.

    mnm1994
    Participant

    Hi,
    On my Buddypress site, if users try logging in, a page comes up that says “401 unauthorized “
    I found a temporary fix around this by placing a theme my login widget there but this will not work in the long run as there is no way to access the user profile page with that. I also use the third party plugin “youzer” and that gives the same 401 unauthorized. I contacted WordPress support, and was told this was not on their end.

    Anyone know what this is?

    douglasndv
    Participant

    HI,
    When i search for a member in a group (/groups/grupo-do-andre/members/), occurs this error:

    [Unknown column ‘u.user_id’ in ‘IN/ALL/ANY subquery’]
    SELECT u.ID as id FROM adwp_users u WHERE 1=1 AND u.ID IN (27412,304,509,6625) AND u.user_id IN ( SELECT ID FROM adwp_users WHERE ( display_name LIKE ‘%ar%’ OR user_login LIKE ‘%ar%’ ) ) ORDER BY FIELD(u.id,27412,304,509,6625) LIMIT 0, 20
    [Unknown column ‘u.user_id’ in ‘IN/ALL/ANY subquery’]
    SELECT COUNT(u.ID) FROM adwp_users u WHERE 1=1 AND u.ID IN (27412,304,509,6625) AND u.user_id IN ( SELECT ID FROM adwp_users WHERE ( display_name LIKE ‘%ar%’ OR user_login LIKE ‘%ar%’ ) )

    In log we have “do_action(‘wp_ajax_bp_get_suggestions’), WP_Hook->do_action, WP_Hook->apply_filters, bp_ajax_get_suggestions, bp_core_get_suggestions, BP_Groups_Member_Suggestions->get_suggestions, BP_User_Query->__construct, BP_User_Query->do_user_ids_query”

    I check the SQL and changing the field name “… AND u.user_id IN ( SELECT ID FROM adwp_users …” by “… AND u.ID IN ( SELECT ID FROM adwp_users …” fix it.

    I am using WP 4.9.7 and Buddypress 3.1.0.

    Seems that SQL is wrong, isnt?

    Tks

    Douglas

    #275234
    Leandro
    Participant

    Hello!

    Someone knows if the code still working with the version 3.1.0?

    I remember to have used the code from @lenasterg with the version 2.9.4 and was working perfectly but now with a website running the version 3.1.0 the code doesnt redirect the old setting URL to setting/notification anymore.

    I am looking for a way to remove the general tab and redirect the setting URL to notifications. I already have a page where users can change their password so have two places where someone can edit the same information is a bit confusing.

    —-

    MOD EDIT – View the following thread for updated info:

    Removing Settings General tab redirect to Other Tab

    andyjay83
    Participant

    Wordpress 4.9.7 Buddypress 3.1.0

    I am using WP SMTP integrated with SendGrid to send out the automated emails that BuddyPress sends to members as the members interact with my wordpress site (i.e. someone commenting, sending a PM, favoriting, etc.)

    When those emails get sent out to yahoo and aol addresses I get an email that says:

    This is the mail system at host gateway36.websitewelcome.com.

    I’m sorry to have to inform you that your message could not
    be delivered to one or more recipients. It’s attached below.

    For further assistance, please send mail to postmaster.

    If you do so, please include this problem report. You can
    delete your own text from the attached returned message.

                      The mail system

    <yolojim@aol.com>: host mx-aol.mail.gm0.yahoodns.net[74.6.141.40] said: 554
       Message not allowed – Headers are not RFC compliant[291] (in reply to end
       of DATA command)
    Reporting-MTA: dns; gateway36.websitewelcome.com
    X-Postfix-Queue-ID: 80867400C8426
    X-Postfix-Sender: rfc822; torus@drumsbygenre.com
    Arrival-Date: Mon,  9 Jul 2018 20:33:42 -0500 (CDT)

    Final-Recipient: rfc822; yolojim@aol.com
    Original-Recipient: rfc822;yolojim@aol.com
    Action: failed
    Status: 5.0.0
    Remote-MTA: dns; mx-aol.mail.gm0.yahoodns.net
    Diagnostic-Code: smtp; 554 Message not allowed – Headers are not RFC
       compliant[291]

    I also see that the emails are sending duplicate subject lines which I read could be the root of this issue.

    1. Does anyone have a solution for this?
    2. If the solution is making sure there is only one subject line, does anyone know how to execute this?

    Thanks for your time guys 🙂

    #275220
    ripulkr
    Participant

    Check if you’ve set the buddypress members directory page in WP admin – Settings – BuddyPress – Pages – members

    #275219
    #275218
    drapedup
    Participant

    Hello,

    The links related to the member page are not loading any content besides the page header and some text. The page also gets stuck which does not allow me to scroll down to the footer. This issue is only occurring to the links relating to the members page.

    I have tried deactivating plugins, reinstalling theme and buddypress plugin but no solution. I don’t no what can be causing this…

    https://www.draped-up.com/members/drapedup/settings/

    kenmcall
    Participant

    Greetings,

    We are using LDAP to populate and maintain our Buddypress members list, and because of this we don’t want people to be able to change their password or email address via the Settings > General tab. We would like to therefore hide the General tab and have Settings redirect to a different tab instead (preferably Settings > Profile)

    I have gone through the forums and have viewed other posts by people dealing with the same issue, specifically this one:

    How to hide / remove the General tab under Settings

    Here’s the code:

    function bpex_change_profile_settings_default_tab() {
    
    	if( bp_is_active( 'xprofile' ) ) :
    
    	$access        = bp_core_can_edit_settings();
    	$slug          = bp_get_settings_slug();
    
    	$args = array(
    		'parent_slug'     => $slug,
    		'subnav_slug'	  => 'notifications',
    		'screen_function' => 'bp_settings_screen_notification',
    		'user_has_access' => $access
    		);
     
    	bp_core_new_nav_default( $args );
    
    	endif;
    
    }
    add_action( 'bp_actions', 'bpex_change_profile_settings_default_tab' );
    
    function bpex_remove_general_item_on_usermenu() {
    global $wp_admin_bar;
    
    	if ( bp_use_wp_admin_bar() ) {
    		$wp_admin_bar->remove_node( 'my-account-settings-general' );
    	}
    
    }
    add_action( 'wp_before_admin_bar_render', 'bpex_remove_general_item_on_usermenu' );
    
    function bpex_remove_profile_settings_general_tab() {
    
    	if( bp_is_active( 'xprofile' ) ) :	
    
    		bp_core_remove_subnav_item( 'settings', 'general' );
    
    	endif;
    
    }
    add_action( 'bp_actions', 'bpex_remove_profile_settings_general_tab' );

    This seems to be the solution I need, but when I add the code to bp-custom.php it does remove the General tab, but now clicking on Settings generates a 404 error. As this post is over a year old, I’m wondering if there have been changes to Buddypress that stops this from working.

    I should mention that I’ve done some (but not a lot) of PHP programming. I did have a co-oworker who is quite proficient at PHP look over this with me, but everything we tried failed to work.

    Thanks for any help anyone can give.

    #275211
    Henry Wright
    Moderator
    #275210
    ds123
    Participant

    @billysgtr @venutius this is really cool news as i need the exact same feature (only authors can send private messages on buddypress) …..how do i go about getting the latest version? is it an official plugin now?

    Raval
    Participant

    WordPress 4.9.7
    BuddyPress 3.1.0
    weblooker.pl

    Hello. I am a very beginner user of WordPress and BuddyPress and I am asking for help. the topic has been discussed several times, but I still do not know how to do it. I want to change the names in the profile menu ( e.g “notifications” ) to a different name. There are many codes here but I do not know how to use them and where to add them. I also used “Loco Translate” but it did not work. Please help.

    r-a-y
    Keymaster

    You are using v2.9.1. Your issue is addressed in BuddyPress v3.0.0 as we have stopped activating accounts by direct URL.

    Activation now requires a form submission when you are on the activation page.

    #275207
    Venutius
    Moderator

    Actually, that does not work, I must have it wrong. The easiest way is to go to your menu edit page, and select profile in the BuddyPress options, these may be hidden so you will need to go to screen options and select BuddyPress

    #275204
    Venutius
    Moderator

    https://github.com/sbrajesh/buddypress-remove-xprofile-fullname-field

    This plugin does something similar, you might like to check it out

    Venutius
    Moderator

    That’s not a feature that is supported right now. The issue is that bp does not store the activation code for the user, so it can’t look up the activation code and know it’s the right one but has already been activated for that user. I think you would need to raise a feature request on Trac for that.

    #275200

    In reply to: creating custom layout

    Venutius
    Moderator

    With bp you can overload the user profile pages and replace their code with your own. The templates are located in the plugins/buddypress/bp-templates directory, either bp-legacy or bp-nouveau depending on your config. in that directory you would look in buddypress/members/single and you will see the various profile templates. You overload these by creating alternative files in themes/my-child-theme/buddypress/members/signle/ etc..

    #275194

    In reply to: update problem

    Venutius
    Moderator

    If you have FTP access, you can rename the plugs/buddypress directory to something else, this will stop BuddyPress from loading and that should get you working. If that works you will then need to work out why it failed, but I guess it’s one step at a time.

    #275188
    Mahaprabhu
    Participant

    Is it possible to use GIFs as Profile Avatar in Buddy Press – this means an option to upload without cropping.
    Is there any plugin to do so or can someone request a change in Buddypress core.

    I see that even if the photo is smaller than required dimensions.. it still is forced to be cropped.

    thanks

Viewing 25 results - 8,201 through 8,225 (of 94,543 total)
Skip to toolbar