Search Results for 'buddypress'
-
AuthorSearch Results
-
February 21, 2017 at 4:49 pm #263998
In reply to: Change title of custom front page tab
danbp
ParticipantHi,
BuddyPress wording can easely be modified with the language file:
Other method:
Change “Activity” component’s name and slug to something else.
or:
February 21, 2017 at 4:42 pm #263997In reply to: How to detect current page
danbp
ParticipantFebruary 21, 2017 at 1:29 am #263973In reply to: Can’t display user profile fields
john.horning
ParticipantWe discussed it here: https://buddypress.org/support/topic/dont-hide-fields-when-user-views-his-own-profile/, but I got stuck. Maybe I’ll revisit.
February 20, 2017 at 7:49 pm #263966In reply to: buddypress slow for logged-in users
Slava Abakumov
ModeratorTry getting the latest version of Kleo theme from themeforest.net. I’m pretty sure this is a theme issue, as BuddyPress itself is quite good in most places performance-wise.
As a general suggestion – activate object caching (memcached or redis) – you will need to talk to your host if you are on a shared/managed hosting, or install everything by yourself if on VPS/VDS/own server. Object caching will greatly help, believe me or not.
February 20, 2017 at 7:07 pm #263961In reply to: Activity Stream auto post
Brajesh Singh
ParticipantYou may use
bp_activity_post_update( array( 'content'=> 'Something we wanted to say', 'user_id'=> 32,//example, please change it ) );Please take a look at this
https://github.com/buddypress/BuddyPress/blob/master/src/bp-activity/bp-activity-functions.php#L1938
Hope that helps.
February 20, 2017 at 6:46 pm #263958In reply to: buddypress slow for logged-in users
blondelovic
ParticipantWhen i say the site beces slow it is especially for thz buddypress part. I Can’t publish easily a picture or even like. It takes tremendous time.
February 20, 2017 at 6:43 pm #263957In reply to: buddypress slow for logged-in users
blondelovic
ParticipantI’m using kleo theme. When i uninstall all plugins, i have my site running at it full speed. Very fast.but once i activate buddypress, the request or the site becomes slow just for logged in users. I dont understand.
February 20, 2017 at 6:25 am #263940In reply to: Code visible on ‘change cover photo’ tab?
kodacollider
ParticipantTrying to take a look at the template file. Found it at: /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/assets/_attachments/cover-images/index.php
In that file, I see the code:
<script id="tmpl-bp-cover-image-delete" type="text/html"> <# if ( 'user' === data.object ) { #> <p><?php _e( "If you'd like to delete your current cover image but not upload a new one, please use the delete Cover Image button.", 'buddypress' ); ?></p> <p><a class="button edit" id="bp-delete-cover-image" href="#"><?php esc_html_e( 'Delete My Cover Image', 'buddypress' ); ?></a></p> <# } else if ( 'group' === data.object ) { #> <p><?php _e( "If you'd like to remove the existing group cover image but not upload a new one, please use the delete group cover image button.", 'buddypress' ); ?></p> <p><a class="button edit" id="bp-delete-cover-image" href="#"><?php esc_html_e( 'Delete Group Cover Image', 'buddypress' ); ?></a></p> <# } else { #> <?php do_action( 'bp_attachments_cover_image_delete_template' ); ?> <# } #> </script>However, on my site itself, the source comes out missing the script tag, and the angle brackets are in the form of lt; gt; etc.
Any ideas? Could use some help on this.
February 20, 2017 at 5:05 am #263938In reply to: How to delete automatic message
Bunty
Participantreplace line number 31 with this
printf( __( "What's new?", 'buddypress' ) );February 19, 2017 at 4:00 am #263932In reply to: How to delete automatic message
Bunty
ParticipantIf you have latest version of buddypress then you can do from your FTP. Ask you server administrator to do so.
February 18, 2017 at 11:48 pm #263929In reply to: How to delete automatic message
tvt
ParticipantI understand.Why my buddypress don’t have file: \buddypress\bp-templates\bp-legacy\buddypress\activity\post-form.php?Please tell me your opinion.
February 18, 2017 at 10:43 pm #263927In reply to: WP V 4.7.2
shanebp
ModeratorFebruary 18, 2017 at 7:36 pm #263923In reply to: BP 2.8.0 Update Broke Profiles
leewells
ParticipantThanks Shane! I’ll give this a shot when I get back to home this evening and let you guys know how it works out. I’m afraid the little profile I made doesn’t do any sorts of compares, it just lets me know if it is loaded before or after certain other hooks like init, the_content and such.. I’ll have to reopen that and add bp_load and get a better idea of where it loads to buddypress though.
My I make a request, though, developer to developer 😛 This seems to have broken a lot of plugins and I like to say I follow the methods of WordPress to the letter without getting hacky :P. If changes like this are made, can we still preserve a method of backward compatibility? The profile info, for instance shouldn’t matter much when it loads, so long as the BP class is loaded, which means, I guess what I’m saying is I’m drawing a blank to what it would be that would require the xprofile fields to be dropped to such a low load order that it doesn’t initialize with the plugin class init.
February 18, 2017 at 5:48 pm #263921In reply to: BP 2.8.0 Update Broke Profiles
shanebp
ModeratorDoes the profiler show that BP is loaded before you call your function?
If not, then it will fail.Try placing your function in bp-custom.php
February 18, 2017 at 12:11 pm #263913In reply to: How to delete automatic message
Bunty
Participantfile:
\buddypress\bp-templates\bp-legacy\buddypress\activity\post-form.phpremove line no: 30 and 31
February 18, 2017 at 10:12 am #263909In reply to: How to delete automatic message
Bunty
ParticipantYou can do that by commenting two lines ( 30 and 31 ) from
\buddypress\bp-templates\bp-legacy\buddypress\activity\post-form.phpFebruary 18, 2017 at 5:07 am #263907In 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
-
AuthorSearch Results