Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 2,349 total)
  • Profile photo of danbp
    danbp
    Moderator

    @danbp

    Ok, let’s try something different.
    Add a file called functions.php to child root
    /child/functions.php
    Copy/paste this, including php tags

    <?php
    // enqueuing the child to parent - don't remove */
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    
    /********************** CUSTOM STUFF **********************************/
    
    // other custom function
    
    ?>

    Inside child’s BuddyPress folder, you can remove anything except CSS and JS folder.

    I tested successfully this method applied to Gardenia (free version) before posting it here. Retry. You can also ask the theme author.

    Hi @reggie3,

    wp_bp_user_blogs_blogmeta table exist only on a multisite install. Unlike all WP tables while 4.3 update, BP tables structure where’nt modified to utf8mb4 during 2.3.3 update.

    Was the site still in network mode before the update ?

    hi @tr1stessa,

    unable to reproduce your issue.
    Do you use a specific plugin for notification ?
    Have you tested by using a twenty theme and all plugins deactivated except BP ?
    Enable also wp_debug in wp-config and report here if you get some error.

    @naisai,

    are you sure you want to show a list of over 80 cities ? Have you ever scrolled such a long list on a mobile (usage 2014) ?

    Please, read here:
    https://buddypress.org/support/topic/list-of-countrystatecity/

    Gardenia is not BP ready.

    Create first a child theme. Add a new folder to wp-content/thems/
    wp-content/themes/gardenia-child/
    Now add a new file and call it style.css
    Copy this header comment into it (/* & */ included):

    /*
    Theme Name: Gardenia-child
    Description: child theme
    Version: 1.0
    Author: XXX
    Template: gardenia
    */

    Save.

    In that folder, add another one called buddypress and another one in this folder called css

    Go to wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/css/ and copy buddypress.css file into the css folder you created in the child theme.

    In legacy/buddypress/ directory, is a js folder. Copy the whole folder into child’s buddypress directory.

    End result should be:

    /gardenia-child/
    /gardenia-child/style.css

    /gardenia-child/buddypress/css/buddypress.css

    /gardenia-child/buddypress/js/buddypress.js
    /gardenia-child/buddypress/js/password-verify.js

    Go to dashboard > Appearrance > Theme and activate Gardenia-child.

    Done ! The theme shows BuddyPress properly.

    See here:
    https://buddypress.org/support/topic/bp_field_has_data-show-message-when-empty-field/

    The snippet is checking for empty fileds. This is not what you want. Simply remove ! before $data, so it will check that if $data exist, do something. Exclamation point means “not”.

    Use add_filter( 'bp_before_member_header_meta filter', 'your_function_name' ); to add custom things to profile header and
    add_filter ( 'bp_directory_members_item', 'your_function_name' ); for members directory.

    Can you give an example with BuddyPress ?

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    One thing is sure: all buttons showing up on a default install of WP/BP using a Twenty theme.

    I recommand you built a local site where you can test your customization before applying them to live site.

    Use WAMPP or XAMPP or MAMPP and start with a clean WP/BP install + Twenty Fifteen, so you can see the buttons. Once ok, you test your original theme (not the child) as already told you by Shane.

    This is already avaible, at least for friends. Not sure what you mean by Following, Favorites perhaps ?

    When you’re on a profile activity tab, there is a pre-filtered sub-nav menu (aside the activity dropbox) containing by default: Personal – Mentions – Favorites – Friends – Groups
    Each item leads to specified activity belonging to this profile.

    Merging all this, or part of it, to a same tab is not a good idea.

    @wp_starter,

    ratings and reviews button are not part of BuddyPress. Search in your plugins or theme.
    CSS rules for something like #item-header-content are generally added via style.css of a child-theme or via specific theme settings.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    @sharmavishal,
    read from here:
    https://buddypress.org/support/topic/resolved-restricting-users-to-one-group/

    See if you can do something with 2nd plugin mentionned in topic. If not able, you have to ask for on Group Hierarchy support.

    We only support BuddyPress here.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    @ericks89,

    There is a way, if you use BBPress Signature. 😉 Modifying bbp_get_reply_content filter.

    Here an example fetching 3 xprofile fields called Signature, Industry and Type. Change it to your need. Code goes into bp-custom.php or child theme functions.php

    
    function my_bbp_reply_content_append_user_signature( $content = '', $reply_id = 0, $args = array() ) {
    	// Default arguments
    	$defaults = array(
    		'separator' => '<hr />',
    		'before'    => '<div class="bbp-reply-signature">',
    		'after'     => '</div>'
    	);
    	$r = wp_parse_args( $args, $defaults );
    	extract( $r );
    
    	// Verify topic id, get author id and potential signature
    	$reply_id  = bbp_get_reply_id       ( $reply_id );
    	$user_id   = bbp_get_reply_author_id( $reply_id );
    	
    	// Get fields data. Caution: name is case sensitive.
    	if(function_exists('bbpress') ) {
    		$signature = xprofile_get_field_data( 'Signature', $user_id );	
    		$wowi = '<br>'. xprofile_get_field_data( 'Service', $user_id );
    		$wowt = '<br>'. xprofile_get_field_data( 'Type', $user_id );
    	}
    	else {
    		$signature = bbp_get_user_signature ( $user_id  );
    	}
    
    	// If signature exists, adjust the content accordingly
    	if ( !empty( $signature ) )
    		$content = $content . $separator . $before . $signature . $wowi . $wowt . $after;
    
    	return apply_filters( 'my_bbp_reply_content_append_signature', $content, $reply_id, $separator );
    }
    
    if ( !is_admin() ) {
       // remove the original BBPress filter
       remove_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_user_signature', 1, 2 );
       // add our custom filter
       add_filter( 'bbp_get_reply_content', 'my_bbp_reply_content_append_user_signature', 1, 2 );	
    }
    

    May this help. 😉

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    xProfile Rich Text Field plugin related question have to be asked on the plugin support.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Hi @repterra,

    if you use a child theme with 2015, please read here about the new (since 2.3) Companion Style Sheet:
    https://codex.buddypress.org/themes/buddypress-companion-stylesheets/

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Hi @mercime, by the way, congrats for your commit ! 💓

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    is there an other setting ? No other setting in BP.

    Deactivate the child and use original Fifteen while testing.

    – no error message ? No JS error in console (browser tool) ?

    A similar topic here, with other advice
    https://buddypress.org/support/topic/private-message-button-only-appears-sometimes/

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Sorry to ask this, but are Friend Connections and Private messaging enabled in BP settings ?

    What happend when you deactivate all plugins ?

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Hi @ctuxboy,

    What have you done before the button disappeared ?

    Activate wp_debug in wp-config.php and see if you get some error message.

    You may also test with one of Twenty theme, to see i it comes up with a strict WP standard theme.
    And also deactivate all plugins, except BP, and reactivate them one by one to eventually find a culprit.

    Control also your custom function if you added some in theme’s functions.php or bp-custom.php

    And of course, you’re encouraged to update to BP 2.3.3 ! 😉

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    You didn’t explain what you want to do. What should Momentum and Milestone do ? Where are they living ? Are this activty types or CPT, something from a plugin ?

    As is, your second snippet do nothing from within bp-custom. Function name is missing and eventually filter or action name also.

    Insert your buttons by using the meta action filter which is avaible in entry.php

    function bfchris() {
    echo 'Button test >';
    ?>
    <a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( 'Is Milestone?', 'buddypress' ); ?>"><?php _e( 'Is Milestone?', 'buddypress' ); ?></a>
    <a href="<?php bp_activity_unfavorite_link(); ?>" class="button unfav bp-secondary-action" title="<?php esc_attr_e( ' Is Momentum Point?', 'buddypress' ); ?>"><?php _e( 'Is Momentum Point?', 'buddypress' ); ?></a>
    <?php
    }
    add_action( 'bp_activity_entry_meta' , 'bfchris' );

    Read from here for global information:
    https://codex.buddypress.org/plugindev/bp_activity_add-2/

    Here for an example:
    https://buddypress.org/support/topic/cant-seem-to-get-bp-2-2s-post-types-activities-working/

    And here for what you have to do for your specific activities
    https://codex.buddypress.org/plugindev/add-custom-filters-to-loops-and-enjoy-them-within-your-plugin/#build-a-new-great-feature-thanks-to-the-favorite-an-activity-functionality

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Yeah, great !

Viewing 25 replies - 1 through 25 (of 2,349 total)
Skip to toolbar