Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 18,126 through 18,150 (of 69,106 total)
  • Author
    Search Results
  • #175346
    @mercime
    Participant

    @yoyoma1974 what theme specifically are you trying to make compatible with BP? Hard to guess why you can’t make the changes using CSS or some functions in a child theme, etc.

    We have some new articles with regards to making sidebar appear/disappear at https://codex.buddypress.org/themes/bp-theme-compatibility-and-the-wordpress-default-themes/ like on the Twenty Eleven theme. However, if your specific theme is not using the methods used in articles therein, you might have to follow up with the theme author or hire a developer to help you with the sidebar.

    #175334

    In reply to: Paid Themes

    Asynaptic
    Participant

    @shanebp is right. If you want to buy a theme, buy a good wordpress theme. You don’t need a buddypress theme since they should all work work with buddypress out of the box.

    The point is that the creator of a premium theme stands behind their work and will answer support questions. These questions may be specific to the theme and how it works so they are the best person to ask.

    If you have a generic question, you’re welcome to ask here.

    #175333

    In reply to: Paid Themes

    shanebp
    Moderator

    You can ask questions here, but you may not get answers.
    If you’re paying for a theme, then the theme sellers should offer support.

    Remember that almost any WP theme will work with BuddyPress 1.8 and up.
    So if you’re going to spend $55, you have a lot of choices.
    You don’t need a BP specific theme.

    #175326
    Shmoo
    Participant

    I’ve made a Trac. to get easier customization for this ‘problem’..

    It’s set for BuddyPress version 2.0
    https://buddypress.trac.wordpress.org/ticket/5261

    #175323
    aravere
    Participant

    Hmmm… thanks, shanebp ! We’ll check it out. 🙂

    #175322
    shanebp
    Moderator

    Look at that function in
    buddypress\bp-activity\bp-activity-template.php

    Use one of the two filters to make your changes, probably with some string operations.

    #175321
    shanebp
    Moderator

    How are members designated ?
    Per BP Group ?
    Per course ?

    So if a student is enrolled in Course A, they are automatically a member of Group A?

    It’s not hard to only use a subset of all site members.
    You just need to know the parameter that controls which group/course a logged-in member is part of. Then you can adapt this example:

    BP_User_Query

    #175318
    aravere
    Participant

    I think I understand what you’re trying to do, as I want to do the same for our school. I just posted a request for help on this (had not come across this thread).

    I’d like to make it so that students from one course or group could socialize exclusive of other groups at the school We have grades 6-12, as well as adult courses, and for protection and like-mindedness (maturity levels) I’d like to allow students to engage only with students in their own group. That way, adults won’t be in a Middle School group, and young children in a High School or Adult group.

    How can this be done?

    I have an LMS set up to organize students per courses/grade levels.

    Using current versions of WP (3.7.1) and BuddyPress (1.8.1).

    Thanks for your help! Seems like there’s plenty of interest in this.

    Tim

    danbp
    Participant

    hi @matt-mcfarland,

    i’m not a dev but consider this, to get a user ID:

    $user_id = bp_get_member_user_id();

    To answer the sql question, here’s a function that doesn’t exist in buddypress, which let you get the xprofile_group name by it’s ID For inspiration…

    function bpfr_get_xprofile_group_id_by_name( $name = '' ) {
    	global $wpdb;
    	
    	$bp = buddypress();
    	
    	if( empty( $name ) )
    		return false;
    		
    	return $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_groups} WHERE name = %s", $name ) );
    }

    For the output, you have to create another function containing at least:

    
    	$user_id = bp_get_member_user_id();
    	$xprofile_group_id = bpfr_get_xprofile_group_id_by_name( 'the groupe name' );
    
    if( !class_exists( 'BP_XProfile_Group' ) )
    		return false;
    		
    	$args = array(
    		'profile_group_id'       => $xprofile_group_id,
    		'user_id'                => $user_id,
    		'fetch_fields'           => true,
    		'fetch_field_data'       => true
    	);

    May this help you !

    #175299
    shubh14
    Participant

    @danbp Sorry about that. I am using WP 3.7.1, Buddypress 1.8.1, WP User Frontend. Single wordpress install.


    @matt-mcfarland
    thank you for your help. I added your code to functions file. however, out of three posts, I only see one with a visible attachment. See pic.
    screenshot

    P.S. You have a beautiful site..just a few issues. Activity page – the first buttons row is hidden behind the top header and the ‘members’ count shows 1 however, you have 1700+ members.
    activity page

    Single post page – the ‘login to reply’ link in comments aren’t visible as they are of the same color as the button bg
    buttons

    #175274
    flexclique
    Participant

    I was able to resolve this with a plugin called Buddypress Announce Group. I modified it slightly (wording it placed on the group home tab). But other than that, it works very well.

    I hope this helps someone.

    #175269
    Akshaysrk
    Participant

    Thank You for your Reply Mr. McFarland. the error log is as below

    d; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:45:53 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:47:41 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:05 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:08 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:41 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:44 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:45 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:50 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:53:02 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:53:09 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:54:45 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:55:01 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:56:03 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:56:55 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:00:40 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:08:47] PHP Fatal error: Call to undefined function get_blog_option() in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/cd-bp-avatar-bubble/cd-ab-cssjs.php on line 39 [07-Dec-2013 18:09:03 UTC] PHP Fatal error: Call to undefined function get_blog_option() in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/cd-bp-avatar-bubble/cd-ab-cssjs.php on line 39 [07-Dec-2013 18:09:24] PHP Fatal error: Call to undefined function get_blog_option() in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/cd-bp-avatar-bubble/cd-ab-cssjs.php on line 39 [07-Dec-2013 18:15:09 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:16:57 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:54:48 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:54:53 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:55:57 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:56:20 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:56:21 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:56:21 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:56:32 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:56:32 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:56:33 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 /home1/srkaksha/public_html/nucleionline/wp-admin/error_log: [21-Sep-2013 14:46:07] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1 for query SELECT COUNT(*) FROM made by require_once(‘wp-admin/admin.php’), do_action(‘admin_init’), call_user_func_array, bp_admin_init, do_action(‘bp_admin_init’), call_user_func_array, bp_core_activation_notice [21-Sep-2013 14:46:07] PHP Fatal error: Call to undefined function bp_blogs_record_existing_blogs() in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress/bp-core/admin/bp-core-functions.php on line 205 [07-Dec-2013 17:43:48 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:47:51 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:51:41 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:53:25 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:24 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:25 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:26 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:32 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:39 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:39 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 17:58:41 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:00:53 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:01:39 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:01:40 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:06:02 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:16:02 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:17:22 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:17:43 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:17:59 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:18:04 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108 [07-Dec-2013 18:18:04 UTC] PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of apply_filters(). in /home1/srkaksha/public_html/nucleionline/wp-content/plugins/buddypress-follow-me/includes/bp-follow-functions.php on line 108

    #175268
    Matt McFarland
    Participant

    Latest version of BP works without using its theme. Works out of the box with themes that are using wp standards (like wp 2012)

    You need to read these docs:https://codex.buddypress.org/getting-started/

    #175256
    Matt McFarland
    Participant

    I have both pages loaded up on my dual monitors, #buddypress is missing, just checked for a second some other things could be missing too. Click the imgur link below to see what I mean.
    See the difference?

    #175255
    Matt McFarland
    Participant

    This is not a PHP issue, it is more a CSS html issue..

    Looks like #buddypress is missing in the DOM. Check your file and make sure you put that in there.

    #175254
    Matt McFarland
    Participant

    A great plugin that I use (is free) that has greatly reduced registration spamming is WANGUARD (check it out here: https://wordpress.org/plugins/wangguard/) works great with buddypress and bbpress

    #175253
    ride2719
    Participant

    I’m hoping that this is my final post on this thread. I found a plugin called BuddyPress Security Check that, so far, has stopped the spam registrations. Thanks to Shea Bunge for the plugin. This may be one of those short-lived fixes where the spammers figure it out eventually, but it’s working right now.

    #175247
    Matt McFarland
    Participant

    Here’s MY entry.php file

    please don’t mind the bootstrap integration :p

    <?php
    
    /**
     * BuddyPress - Activity Stream (Single Item)
     *
     * This template is used by activity-loop.php and AJAX functions to show
     * each activity.
     *
     * @package BuddyPress
     * @subpackage bp-legacy
     */
    global $wpdb, $post, $bp;
    ?>
    
    <?php do_action( 'bp_before_activity_entry' ); ?>
    <?php echo $bp->current_item; ?>
    <li class="panel <?php bp_activity_css_class(); ?>" style="padding-top:0;" id="activity-<?php bp_activity_id(); ?>">
    	<div class="panel-heading" style="padding-top:0;">
    		<span class="activity-avatar">
    			<a href="<?php bp_activity_user_link(); ?>">
    				<?php bp_activity_avatar(); ?>
    			</a>
    		</span>
    			<?php bp_activity_action(); ?>
    	</div>
    	<div class="panel-body activity-content">
    		<?php if ( bp_activity_has_content() ) : ?>
    
    			<div class="activity-inner" >
    				<?php bp_activity_content_body();
    				
    				$blogpost_id = bp_get_activity_secondary_item_id();
    				if ($blogpost_id) :
    					if (has_post_thumbnail( $blogpost_id ) )	:
    						$theimg = wp_get_attachment_image_src( get_post_thumbnail_id( $blogpost_id ) ); ?>
    						<a href="<?php echo get_post_permalink($blogpost_id); ?>"> <img style="thumbnail" style="width:100%;" src="<?php echo $theimg[0]; ?>"></a>
    					<?php endif; ?>
    				<?php endif; ?>
    			</div>
    
    		<?php endif; ?>
    
    		<?php do_action( 'bp_activity_entry_content' ); ?>
    
    		<div class="activity-meta">
    			<?php if ( bp_get_activity_type() == 'activity_comment' ) : ?>
    
    				<a href="<?php bp_activity_thread_permalink(); ?>" type="button" class="button button-xs view" title="<?php _e( 'View Conversation', 'buddypress' ); ?>"><?php _e( 'All Comments', 'buddypress' ); ?></a>
    
    			<?php endif; ?>
    			<?php if ( is_user_logged_in() ) : ?>
    				<?php if ( bp_activity_can_comment() ) : ?>
    					<a href="<?php bp_activity_comment_link(); ?>" type="button" class="button button-xs acomment-reply"  id="acomment-comment-<?php bp_activity_id(); ?>"><i class="fa fa-comment"></i><?php printf( __( 'Comment <span>%s</span>', 'buddypress' ), bp_activity_get_comment_count() ); ?></a>
    				<?php endif; ?>
    				
    				<?php if ( bp_activity_can_favorite() ) : ?>
    
    					<?php if ( !bp_get_activity_is_favorite() ) : ?>
    
    						<a href="<?php bp_activity_favorite_link(); ?>" type="button" class="button button-xs fav"  title="<?php esc_attr_e( 'Mark as Favorite', 'buddypress' ); ?>"><i class="fa fa-thumbs-up"></i><?php _e( 'Favorite', 'buddypress' ); ?></a>
    
    					<?php else : ?>
    
    						<a href="<?php bp_activity_unfavorite_link(); ?>" class="button button-xs unfav bp-secondary-action"  title="<?php esc_attr_e( 'Remove Favorite', 'buddypress' ); ?>"><i class="fa fa-remove"></i><?php _e( 'UnFavorite', 'buddypress' ); ?></a>
    
    					<?php endif; ?>
    
    				<?php endif; ?>
    				
    				<?php if ( bp_activity_user_can_delete() ) {
    					echo '<a href="'.bp_get_activity_comment_delete_link().'" type="button" class="button button-xs item-button bp-secondary-action delete-activity confirm" rel="nofollow"><i class="fa fa-trash-o"></i>Remove</a>';
    					
    					} ?>
    				<?php do_action( 'bp_activity_entry_meta' ); ?>
    				
    			<?php endif; ?>
    		</div>
    
    	</div>
    
    	<?php do_action( 'bp_before_activity_entry_comments' ); ?>
    
    	<?php if ( ( is_user_logged_in() && bp_activity_can_comment() ) || bp_activity_get_comment_count() ) : ?>
    
    		<div class="activity-comments">
    
    			<?php bp_activity_comments(); ?>
    
    			<?php if ( is_user_logged_in() ) : ?>
    
    				<form action="<?php bp_activity_comment_form_action(); ?>" method="post" id="ac-form-<?php bp_activity_id(); ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display(); ?>>
    					<div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ); ?></div>
    					<div class="ac-reply-content">
    						<div class="ac-textarea">
    							<textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
    						</div>
    						<input type="submit" name="ac_form_submit" value="<?php _e( 'Post', 'buddypress' ); ?>" /> &nbsp; <a href="#" class="ac-reply-cancel"><?php _e( 'Cancel', 'buddypress' ); ?></a>
    						<input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
    					</div>
    
    					<?php do_action( 'bp_activity_entry_comments' ); ?>
    
    					<?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ); ?>
    
    				</form>
    
    			<?php endif; ?>
    
    		</div>
    
    	<?php endif; ?>
    
    	<?php do_action( 'bp_after_activity_entry_comments' ); ?>
    
    </li>
    
    <?php do_action( 'bp_after_activity_entry' ); ?>
    

    Fits with my theme, might not yours (my thumbnails are larger than default and I’m using a masonry layout) see it at http://www.hvac-hacks.com/activity

    #175246
    Matt McFarland
    Participant

    Yes this is very easy to do.

    Adding the featured image of a wordpress post into a buddypress activity stream can be done by doing one of the following. I’d like to add that I had trouble finding out how to do this at first and it took a lot of searching. The first copypasta I have for you was actually found on these very forums. However, due to so many people asking this question (and not getting answers) it is buried and very difficult to find. So without further ado please enjoy…

    You can either edit the activity page activity/entry.php or just copy paste the following function into your functions.php file.

    
    function icondeposit_bp_activity_entry_meta() {
     
        if ( bp_get_activity_object_name() == 'blogs' && bp_get_activity_type() == 'new_blog_post' ) {?>
            <?php
            global $wpdb, $post, $bp;
            $theimg = wp_get_attachment_image_src(  get_post_thumbnail_id( bp_get_activity_secondary_item_id() ) );
            ?>
            <img src="<?php echo $theimg[0]; ?>" >
     
        <?php }
     
    }
    add_action('bp_activity_excerpt_append_text', 'icondeposit_bp_activity_entry_meta');
    

    If you want further customization, I recommend editing activity/entry.php

    #175243
    danbp
    Participant

    hi @shubh14,

    please give some details about your configuration when you ask for help.

    WP/BP version, sigle or network install, theme name, used plugins.

    https://buddypress.org/support/topic/when-asking-for-support-2/

    #175242
    noizeburger
    Participant

    OK, now this topic can be marked as resolved as I finally found a the working solution.

    I made a tutorial in this thread: different profile types, different user roles

    #175239
    Cassey’s Designs
    Participant

    I have found the actions file where the do_actions are called from, its in the main buddypress files bp_activity > bp-activity-actions.php…

    I would just remove the action and code in the title I want but I’d like to be able to re-use the theme I am working on… Ill try playing with the template hierarchy and actions and see what I come up with.

    Thanks Matt!

    #175236
    Matt McFarland
    Participant

    Hi Cassey,

    When I look in my buddypress folder, I see <?php do_action( ‘bp_before_directory_activity’ ); ?> is in /activity/index.php

    I see <?php do_action( ‘bp_before_directory_members_page’ ); ?> is located in /members/index.php

    I hope this helps!

    BP can be very strange sometimes. Did you copy bp-legacy over? One of the things I did to make changes in the beginning was turn files into blank pages to see what happened. Also there is a document that may help: https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/

    that doc explains how BP looks for files and grabs info. I had a huge problem took a long time to find it and it was very simliar to yours (I had to find the title of members pages as it was breaking the pages for some reason, found it by copying the bp-legacy over and guessing which files they were haha, took forever, hope you find this faster than I did.)

    #175233
    Cassey’s Designs
    Participant

    Hi Matt,

    Thank you for your help! I can hack it, but I’d prefer not to if I can avoid it.
    I have created blank pages and assigned them, no dice 🙁 …
    I have my buddypress child theme files, and checked the index files and that’s where the action for the header text is, but I need the actual action that will give me “<h3><?php _e(‘Sitewide Activity’, ‘buddypress’); ?></h3>”

    I am looking for the file that holds actions like the following:
    <?php do_action( ‘bp_before_directory_members_page’ ); ?> and
    <?php do_action( ‘bp_before_directory_activity’ ); ?>
    I assumed that would be buddypress-functions.php but I had no luck searching that file…

    Thanks again for your help, if I find the file needed I’ll post here in case anyone else needs to know…
    A little more frustration may lead to hacking though, lol.

    #175231
    cybervaliewp
    Participant

    Hi Tim and Quokka
    I have installed a wordpress multisite in french with buddypress in french
    http://www.mydomain.com/
    I have created 3 blogs for each language : english, spanish and italien
    http://www.mydomain.com/en
    http://www.mydomain.com/es
    http://www.mydomain.com/it
    I have one database of users and they access to all subdomains of the site and
    I would like to have my buddypress pages (regitration, members, activity,….) translate in each languages I have…
    Is it possible ??
    Can you help me ??
    Thank you

Viewing 25 results - 18,126 through 18,150 (of 69,106 total)
Skip to toolbar