Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 11,201 through 11,225 (of 73,371 total)
  • Author
    Search Results
  • #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.

    #263897
    kodacollider
    Participant

    Right now my Members page has the slug ‘members’, and when viewing a user’s profile, the URL is:

    /members/user/

    However, all other components on my site (bbPress forums, custom post types, etc.) use a plural slug for the “archive” and then singular when viewing a child page. I’d like to make the members area of BuddyPress behave the same way for consistency.

    So I’d like the Members page to retain the slug /members/

    But when viewing a user’s profile, I’d like it to become:

    /member/user/

    It just makes more sense given how everything else on my site works. I hope this makes sense.

    Can anyone lend me a hand?

    Thank you!

    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”

    #263881
    john.horning
    Participant

    I’m trying to display user profile fields on a page. I created a custom page template and pasted the code found here: https://codex.buddypress.org/developer/loops-reference/the-profile-fields-loop-bp_has_profile/

    It was working and then stopped – can’t figure out what happened.

    The problem seems to be with this function: bp_profile_group_has_fields()

    Any ideas?

    John

    #263880
    Andrew Tegenkamp
    Participant

    I’m trying to edit my user’s profile so that when they click on “Settings” they go to the “Email” (/settings/notifications/) by default. I found https://codex.buddypress.org/developer/navigation-api/ and am trying to apply that to the default_subnav_slug but must be missing something. Any ideas?

    
    add_action( 'bp_setup_nav', 'bp_edit_subnav_default');
    function bp_edit_subnav_default($data) {
    	global $bp;
    	$new_data = array(
    		'screen_function'     => 'bp_settings_screen_notifications',
    		'default_subnav_slug' => 'notifications',
    	);
    	$bp->members->nav->edit_nav($new_data, 'settings');
    
    }
    
    #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

    #263875
    sitesforchrist
    Participant

    Is there any ways to change just the admin username from being in the Buddypress profile URL? For security reasons it’s not set to admin but something else like “iamadminofsite” but it seems like it kind of defeats the purpose of having an unusual admin username for security reasons if it is plastered all over your site.

    Any help being able to accomplish this would be great. (And yes, saw this plugin: https://buddydev.com/plugins/bp-username-changer/ which is nice and all but not what I’m looking for as it will just change the login name and I need the url to show a completely different username at least for the admin).

    #263873
    webtinker
    Participant

    A site with users amounts more than 100k+
    After installing and activating buddypress get the white screen of death.
    We use this theme running on hostgator.

    But when twenty seven theme selected and try activating buddypress turns out to be
    “Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 72 bytes)”

    We have 512M as memory limit on php.ini
    Any suggestions please?

    #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.

    #263867
    wasanajones
    Participant

    Hi –

    I’m trying to figure out how to change the page templates that BP Groups use.

    I’ve got BuddyPress network activated on a multisite network

    my main site uses a Genesis child theme, which has options for basic page templates (ie column left, full page etc)

    The ‘Groups’ editor is accessed through Network Admin so it doesn’t have any theme specific page settings.

    I’ve looked at probably 100 forum threads and can’t figure this out at all

    any idea how to change the layout of pages used by Groups ?

    thanks

    #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/

    #263863
    folgerj
    Participant

    I don’t know if this still applies but I had an early version of BP and I decided to not use it and uninstalled the plugin. Now it’s 5 years later and in my database I find 16 tables with code_BP_(various titles like groups or members) all are zero kilobytes. I’ve been having troubles with my database so I thought I would mention this just in case it’s still an issue.

    Don’t need a reply but just a heads up.

    #263859
    sandorastarita
    Participant

    Hello,

    I am working with WP 4.7.2 and buddypress 2.8, with Onesocial Marketplace theme.

    I need to change the members index page to show only friends of the logged user. I have copied the members-loop.php file to my child-theme buddypress subdirectory. I can change manually the loop by continuing if members are not friends, but can’t find out how to change the number of members that is showed in title. Additionally, I am looking for a more consistent logic, which should be filtering the query to get only friends.

    Can you help me with that?

    Thanks in advance.

    thefierywell
    Participant

    Local install; WP 4.7.2, Multisite
    BuddyPress 2.8 only active plugin
    Twentysixteen theme

    I’ve only tested this as Super Admin, but when logged in and creating a site on the front end (mydomain.dev/sites/create/) a Fatal Error now occurs:

    Fatal error: Uncaught Error: Call to undefined function bp_blogs_get_subdomain_base() in /app/public/wp-content/plugins/buddypress/bp-blogs/bp-blogs-template.php on line 1080

    Appears regardless how the following settings are checked:
    – Logged in users may register new sites.
    – Both sites and user accounts can be registered.

    This error did not come up in 2.7.4. Reverting back to 2.7.4 resolves the issue. Not certain this is an actual bug or random? What else can I provide?

    Thanks,
    Patty

    #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.

    #263848
    stanislawski
    Participant

    Profil and Groups BuddyPress
    There is missing some buttons and appearing only then direct the cursor. How can I customize it?

    #263847
    psnation
    Participant

    How can I use the Twenty Seventeen style sheet with my current site? I am running Buddypress 2.8 with the Avada 5.0 theme. Avada does not style the Buddypress pages by default so I did my own custom CSS based off the default styles. I’ve notice the new Twenty Seventeen style sheet has responsive menus so I’d like to use that as my starting styles. How would I make Twenty Seventeen styles load as default?

    #263845
    #263843
    danbp
    Participant

    Bug confirmed! Open a ticket on the trac.

    To login, use same credentials as for this forum.

Viewing 25 results - 11,201 through 11,225 (of 73,371 total)
Skip to toolbar