Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 8,376 through 8,400 (of 69,106 total)
  • Author
    Search Results
  • #263907
    leewells
    Participant

    Nope. The hook does work, because profiler says the function is called later now, but the function still doesn’t seem to exist and throws the undefined function exception.

    Also, other plugins do as well including gears which is used by theme authors such as myself for allowing users to easily add elements to a website from buddypress.

    #263903

    In reply to: Cannot Sign up

    Bradley Ross
    Participant

    I have .htaccess
    I have loaded the entire system three times and followed the directions
    I have made sure that all of the files have an owner of _www

    I have already screamed and will probably do so again. I am currently using

    Apple Macintosh macOS 10.12.3
    Wordpress 4.7.2
    Theme: TwentySeventeen
    bbPress 2.5.12
    BuddyPress 2.8.0
    Jetpack 4.6

    The requested URL /blogs/wordpress/template/members/bradleyross/profile/edit/ was not found on this server.
    The page register has the permalink http://localhost/blogs/wordpress/template/index.php/members
    Does this sound correct

    It also appears that multiple attempts to load the software may result in things like members-2 and members-3. You may have to send pages with those permalink to the trash and then empty the trash. Hopefully, you can then recreate the pages correctly

    I now assume that the problem is somewhere in the rewrite module. In the httpd.conf file, I am going to change the line Allow None to Allow FileInfo. Does this sound reasonable and are there any other changes you think that I should make.

    in httpd.conf, I have

    LoadModule alias_module libexec/apache2/mod_alias.so
    LoadModule rewrite_module libexec/apache2/mod_rewrite.so
    #
    # The two following lines had been commented out as part of the
    # update July, 2015. They are now being uncommented to
    # put them back in
    #
    LoadModule php5_module libexec/apache2/libphp5.so
    LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so

    and

    <Directory “/Library/WebServer/Documents”>
    #
    # Possible values for the Options directive are “None”, “All”,
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that “MultiViews” must be named *explicitly* — “Options All”
    # doesn’t give it to you.
    #
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    # The attribute Includes was added 17-Feb-2017
    Options FollowSymLinks Multiviews Includes
    MultiviewsMatch Any

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be “All”, “None”, or any combination of the keywords:
    # AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
    </Directory>

    #263900
    Henry Wright
    Moderator

    Check out this article:

    bp_core_new_nav_default()

    #263899
    psnation
    Participant

    You can add tabs on menus for friends, notifications, etc. Go to appearance – menu – buddypress and you can add links for signed in users wherever you want. You may need to click settings and tick Buddypress to get the options.

    mikeboltonca
    Participant

    Hi Slava,

    I tested that code and got no visible effect, but I think we’re in the right territory here.
    I explored both of these functions:

    bp_group_is_member()
    groups_is_user_member()

    It helped me realize that the two specific problems I wanted to solve were as follows:
    – Users can’t create topics in a BuddyPress group’s forum unless they join the group
    – Users can’t reply to topic in a BuddyPress group’s forum unless they join the group

    So I started on the page template itself (form-topic.php).
    Before displaying the “Create a topic” form, the template does a check to see if the user is allowed to create topics:
    if ( bbp_current_user_can_access_create_topic_form() ) : ?
    This was coming back as false, so I checked through each possible path through the function.

    Here’s the whole function for quick reference:

    function bbp_current_user_can_access_create_topic_form() {
    
    	// Users need to earn access
    	$retval = false;
    
    	// Always allow keymasters
    	if ( bbp_is_user_keymaster() ) {
    		$retval = true;
    
    	// Looking at a single forum & forum is open
    	} elseif ( ( bbp_is_single_forum() || is_page() || is_single() ) && bbp_is_forum_open() ) {
    		$retval = bbp_current_user_can_publish_topics();
    
    	// User can edit this topic
    	} elseif ( bbp_is_topic_edit() ) {
    		$retval = current_user_can( 'edit_topic', bbp_get_topic_id() );
    	}
    
    	// Allow access to be filtered
    	return (bool) apply_filters( 'bbp_current_user_can_access_create_topic_form', (bool) $retval );
    }

    Every single path through that function was returning true.
    If I removed the filter and replaced it with a hard-coded true as follows…
    return (bool) true;
    …then the user would have access to the group’s forum without joining the group.

    That told me that something in BuddyPress was filtering the result of this function. It was checking whether the user was a member of the group, and if not, was forcing bbp_current_user_can_access_create_topic_form() to return 0.

    I couldn’t find the portion of BuddyPress that was filtering the result, unfortunately.

    I have a working solution now, but it’s not elegant. I created a plugin with two filters (one for creating topics, one for replying to topics). The content of those filters is identical to the original bbPress functions. Since the plugin is loaded last, it basically overrides whatever BuddyPress says and goes with the original functions instead.

    Here it is:

    /**************************************************
    Part 1: Allow users to create topics
    Allow anyone to create a topic in any forum, even if that forum is inside a group the user hasn't joined.
    If the group is hidden (e.g. "Management"), they still won't have access because that check is done first.
    ***************************************************/
    // define the bbp_current_user_can_access_create_topic_form callback
    function filter_bbp_current_user_can_access_create_topic_form( $retval ) {
    	// Users need to earn access
    	$retval = false;
    
    	// Always allow keymasters
    	if ( bbp_is_user_keymaster() ) {
    		$retval = true;
    
    	// Looking at a single forum & forum is open
    	} elseif ( ( bbp_is_single_forum() || is_page() || is_single() ) && bbp_is_forum_open() ) {
    		$retval = bbp_current_user_can_publish_topics();
    
    	// User can edit this topic
    	} elseif ( bbp_is_topic_edit() ) {
    		$retval = current_user_can( 'edit_topic', bbp_get_topic_id() );
    	}
    return (bool) $retval;
    };
    
    // add the filter
    add_filter( 'bbp_current_user_can_access_create_topic_form', 'filter_bbp_current_user_can_access_create_topic_form', 999, 1 );
    
    /**************************************************
    Part 2: Reply to comments
    Allow anyone to reply to a comment in any forum, even if that forum is inside a group the user hasn't joined.
    If the group is hidden (e.g. "Management"), they still won't have access because that check is done first.
    ***************************************************/
    function filter_bbp_current_user_can_access_create_reply_form( $retval ) {
    
    	// Users need to earn access
    	$retval = false;
    
    	// Always allow keymasters
    	if ( bbp_is_user_keymaster() ) {
    		$retval = true;
    
    	// Looking at a single topic, topic is open, and forum is open
    	} elseif ( ( bbp_is_single_topic() || is_page() || is_single() ) && bbp_is_topic_open() && bbp_is_forum_open() ) {
    		$retval = bbp_current_user_can_publish_replies();
    
    	// User can edit this topic
    	} elseif ( bbp_is_reply_edit() ) {
    		$retval = current_user_can( 'edit_reply', bbp_get_reply_id() );
    	}
    
    return (bool) $retval;
    };
    // add the filter
    add_filter( 'bbp_current_user_can_access_create_reply_form', 'filter_bbp_current_user_can_access_create_reply_form', 999, 1 );

    If I can find where BuddyPress filters bbp_current_user_can_access_create_topic_form() and bbp_current_user_can_access_create_reply_form(), I’ll write a more elegant plugin.

    #263885
    danbp
    Participant

    Hi,

    please read this:

    BuddyPress 2.8.0 “San Matteo”

    #263878
    Henry Wright
    Moderator

    Do you have any plugins running aside from BuddyPress? If so, do you get the fatal error when activating BuddyPress (with the rest of the plugins deactivated)?

    #263877
    thefierywell
    Participant
    #263876
    thefierywell
    Participant

    Hi @danbp,

    Thank you! I’ve applied the fix and still experiencing the same problem.

    I’ve only had a few minutes this morning, but is it possible the deprecated 2.1.php file is not loading?

    – Placing a die(); statement in the 2.1.php file does nothing.
    – In class-buddypress.php if move the
    require( $this->plugin_dir . 'bp-core/deprecated/2.1.php' );
    outside of the
    if ( ! bp_get_option( '_bp_ignore_deprecated_code', ! $this->load_deprecated ) ) { statement the die() works, and removing die() the create site functionality returns

    – Also, if I place the called bp_blogs_get_subdomain_base() function into class-buddypress.php it works

    #263869
    Slava Abakumov
    Moderator

    Latest WordPress itself has issues on PHP 7.1, and while testing BuddyPress we allow failures on PHP 7.1 as well.
    So in general BuddyPress should work on PHP 7.1, but no one spent extra attention on testing there everything and fix if there are any issues.

    Try to downgrade to PHP 7.0.x.

    #263868
    Slava Abakumov
    Moderator

    If the error persists only when learndash integration is activated, you should contact that plugin authors for support (if they provide one). As it’s seems not a BuddyPress issue, and not newly BP 2.8 version issue.

    As I don’t know that integration plugin, I can’t help.

    #263866
    danbp
    Participant

    Hi,

    it is a little bug and already fixed!
    Please read here: https://buddypress.org/support/topic/buddypress-2-8-0-san-matteo/

    #263854
    r-a-y
    Keymaster

    Thanks for reporting!

    A fix is already in trunk:
    https://buddypress.trac.wordpress.org/changeset/11432

    This will be ready for v2.8.1. Until then, manually patch bp-xprofile/bp-xprofile-admin.php with the changeset linked above until 2.8.1 is released.

    #263845
    #263843
    danbp
    Participant

    Bug confirmed! Open a ticket on the trac.

    To login, use same credentials as for this forum.

    #263836
    chirri97
    Participant

    Is BuddyPress comfortable with php 7.1?

    #263833
    gtractorg
    Participant

    Yes, but it started as soon as I activated buddypress, before I updated to 2.8 today. Still see the errors. I disabled the learndash integration plugin and now it seems to be working ok. I would like to have the integration though of course.

    #263830
    Slava Abakumov
    Moderator

    Is it BuddyPress 2.8.0?

    #263829

    In reply to: Hide members

    Hi. I struggled with this for a while, and I agree entirely that something like this needs to be in the BuddyPress core… actually, I think much better user management needs to be in the WordPress core, not just BuddyPress, but that’s a discussion for another time…

    I eventually found the code that you’re using and modified it to be able to ignore all users with a specific WP role or roles, thus removing the need to hard-code specific user IDs.

    To manage user roles you’ll need a plugin such as User Role Editor by Vladimir Garagulya and create a new role that you assign to users who you want excluded (I chose “suspended”). If you use URE you can assign this as an additional role to the main one that WordPress allows you to set.

    The code is here: http://pastebin.com/9xYALGfR, but I’m no PHP expert, so offer no assurances… all I can say is that it works for me 🙂

    #263825
    Slava Abakumov
    Moderator

    You will need to integrate Multi Vendor plugin into BuddyPress.
    That means create specific profile pages (there is an article in BuddyPress Codex), modify BuddyPress templates in your child theme (same – see articles in Codex).

    You can check this as well:

    #263819

    In reply to: Cannot Sign up

    danbp
    Participant

    Hi and welcome to BuddyPress!

    It seems that you didn’t setup correctly your BuddyPress pages. Ensure they exist and are correctly declared. And also don’t forget to activate your permalinks.

    Common advice: read the documentation before installing a plugin.

    Configure BuddyPress

    #263816
    Slava Abakumov
    Moderator

    What are your WordPress and BuddyPress versions?

    #263810
    chirri97
    Participant

    I get this error:
    Fatal error: Uncaught Error: [] operator not supported for strings in /***/**/**/**/chirri.dk/httpd.www/try/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php:281 Stack trace: #0 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/class-wp-hook.php(298): BP_Activity_Component->setup_admin_bar(”) #1 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /***/**/**/**/chirri.dk/httpd.www/try/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(143): do_action(‘bp_setup_admin_…’) #4 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/class-wp-hook.php(298): bp_setup_admin_bar(Object(WP_Admin_Bar)) #5 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /***/**/**/**/chirri.dk/httpd.www/try/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #7 /custom in /***/**/**/**/chirri.dk/httpd.www/try/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php on line 281

    Mod Edit: Server paths obscured – best not to reveal your server paths on a public forum.

    Slava Abakumov
    Moderator

    @mahwash


    @danbp
    already replied you with a proper advice. You should know CSS, you can also modify the HTML structure of the /buddypress/activity/activity-loop.php file (it should be in your theme).

    #263781

    In reply to: Hide members

    shanebp
    Moderator

    You need to create the code. Do so in bp-custom.php.

Viewing 25 results - 8,376 through 8,400 (of 69,106 total)
Skip to toolbar