Search Results for 'buddypress'
-
AuthorSearch Results
-
February 18, 2017 at 5:07 am #263907
In reply to: BP 2.8.0 Update Broke Profiles
leewells
ParticipantNope. 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.
February 18, 2017 at 12:33 am #263903In reply to: Cannot Sign up
Bradley Ross
ParticipantI 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 _wwwI 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.6The 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 correctIt 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.soand
<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>February 17, 2017 at 11:49 pm #263900In reply to: Navigation API – Default Slug?
Henry Wright
ModeratorCheck out this article:
February 17, 2017 at 11:29 pm #263899In reply to: Some questions regarding buddypress
psnation
ParticipantYou 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.
February 17, 2017 at 8:25 pm #263889mikeboltonca
ParticipantHi 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 groupSo 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-codedtrueas 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 return0.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()andbbp_current_user_can_access_create_reply_form(), I’ll write a more elegant plugin.February 17, 2017 at 7:51 pm #263885In reply to: BP 2.8.0 Update Broke Profiles
danbp
ParticipantFebruary 17, 2017 at 2:12 pm #263878In reply to: White Screen of Death after Activation
Henry Wright
ModeratorDo 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)?
February 17, 2017 at 2:02 pm #263877In reply to: V2.8 Undefined Function in MU when Creating Site
thefierywell
ParticipantCould this be the same thing?
February 17, 2017 at 1:58 pm #263876In reply to: V2.8 Undefined Function in MU when Creating Site
thefierywell
ParticipantHi @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
February 17, 2017 at 10:49 am #263869In reply to: I can’t do anything after activation
Slava Abakumov
ModeratorLatest 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.
February 17, 2017 at 10:47 am #263868In reply to: Errors when registering
Slava Abakumov
ModeratorIf 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.
February 17, 2017 at 8:57 am #263866In reply to: V2.8 Undefined Function in MU when Creating Site
danbp
ParticipantHi,
it is a little bug and already fixed!
Please read here: https://buddypress.org/support/topic/buddypress-2-8-0-san-matteo/February 16, 2017 at 10:35 pm #263854r-a-y
KeymasterThanks for reporting!
A fix is already in trunk:
https://buddypress.trac.wordpress.org/changeset/11432This will be ready for v2.8.1. Until then, manually patch
bp-xprofile/bp-xprofile-admin.phpwith the changeset linked above until 2.8.1 is released.February 16, 2017 at 7:34 pm #263845February 16, 2017 at 7:13 pm #263843danbp
ParticipantBug confirmed! Open a ticket on the trac.
To login, use same credentials as for this forum.
February 16, 2017 at 2:51 pm #263836In reply to: I can’t do anything after activation
chirri97
ParticipantIs BuddyPress comfortable with php 7.1?
February 16, 2017 at 1:10 pm #263833In reply to: Errors when registering
gtractorg
ParticipantYes, 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.
February 16, 2017 at 11:51 am #263830In reply to: Errors when registering
Slava Abakumov
ModeratorIs it BuddyPress 2.8.0?
February 16, 2017 at 11:11 am #263829In reply to: Hide members
Peter Hardy-vanDoorn
ParticipantHi. 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 🙂
February 16, 2017 at 9:05 am #263825In reply to: Add product in buddypress plugin
Slava Abakumov
ModeratorYou 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:
February 16, 2017 at 8:20 am #263819In reply to: Cannot Sign up
danbp
ParticipantHi 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.
February 15, 2017 at 11:10 pm #263816In reply to: I can’t do anything after activation
Slava Abakumov
ModeratorWhat are your WordPress and BuddyPress versions?
February 15, 2017 at 9:59 pm #263810In reply to: I can’t do anything after activation
chirri97
ParticipantI 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 281Mod Edit: Server paths obscured – best not to reveal your server paths on a public forum.
February 15, 2017 at 8:37 am #263787Slava Abakumov
ModeratorFebruary 15, 2017 at 1:38 am #263781In reply to: Hide members
shanebp
ModeratorYou need to create the code. Do so in bp-custom.php.
-
AuthorSearch Results