Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 8,301 through 8,325 (of 69,044 total)
  • Author
    Search Results
  • #263998
    danbp
    Participant

    Hi,

    BuddyPress wording can easely be modified with the language file:

    Customizing Labels, Messages, and URLs

    Other method:

    Change “Activity” component’s name and slug to something else.

    or:

    Navigation API

    #263997
    danbp
    Participant
    #263973
    john.horning
    Participant

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

    #263966
    Slava Abakumov
    Moderator

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

    #263961
    Brajesh Singh
    Participant

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

    #263958
    blondelovic
    Participant

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

    #263957
    blondelovic
    Participant

    I’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.

    #263940
    kodacollider
    Participant

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

    #263938
    Bunty
    Participant

    replace line number 31 with this

    printf( __( "What's new?", 'buddypress' ) );

    #263932
    Bunty
    Participant

    If you have latest version of buddypress then you can do from your FTP. Ask you server administrator to do so.

    #263929
    tvt
    Participant

    I understand.Why my buddypress don’t have file: \buddypress\bp-templates\bp-legacy\buddypress\activity\post-form.php?Please tell me your opinion.

    #263927

    In reply to: WP V 4.7.2

    shanebp
    Moderator
    #263923
    leewells
    Participant

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

    #263921
    shanebp
    Moderator

    Does 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

    #263913
    Bunty
    Participant

    file: \buddypress\bp-templates\bp-legacy\buddypress\activity\post-form.php

    remove line no: 30 and 31

    #263909
    Bunty
    Participant

    You can do that by commenting two lines ( 30 and 31 ) from \buddypress\bp-templates\bp-legacy\buddypress\activity\post-form.php

    #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

Viewing 25 results - 8,301 through 8,325 (of 69,044 total)
Skip to toolbar