Search Results for 'buddypress'
-
AuthorSearch Results
-
December 10, 2013 at 2:50 am #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.
December 9, 2013 at 9:44 pm #175334In 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.
December 9, 2013 at 7:52 pm #175333In reply to: Paid Themes
shanebp
ModeratorYou 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.December 9, 2013 at 5:01 pm #175326In reply to: add to html markup in bp_activity_action()
Shmoo
ParticipantI’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/5261December 9, 2013 at 3:24 pm #175323December 9, 2013 at 3:22 pm #175322In reply to: add to html markup in bp_activity_action()
shanebp
ModeratorLook at that function in
buddypress\bp-activity\bp-activity-template.phpUse one of the two filters to make your changes, probably with some string operations.
December 9, 2013 at 3:11 pm #175321shanebp
ModeratorHow 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:December 9, 2013 at 2:27 pm #175318In reply to: Idea for school social network
aravere
ParticipantI 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
December 9, 2013 at 9:22 am #175308danbp
Participanthi @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 !
December 8, 2013 at 11:24 pm #175299In reply to: Add post featured image in activity stream
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.

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.

Single post page – the ‘login to reply’ link in comments aren’t visible as they are of the same color as the button bg
December 8, 2013 at 3:02 pm #175274flexclique
ParticipantI 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.
December 8, 2013 at 1:52 pm #175269In reply to: My website appears blank when switching to Php 5.4
Akshaysrk
ParticipantThank 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
December 8, 2013 at 1:51 pm #175268In reply to: Using BuddyPress without using its theme.
Matt McFarland
ParticipantLatest 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/
December 8, 2013 at 12:41 pm #175256In reply to: BP_Album –> do_action( 'bp_album_all_images' );
Matt McFarland
ParticipantI 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?December 8, 2013 at 12:38 pm #175255In reply to: BP_Album –> do_action( 'bp_album_all_images' );
Matt McFarland
ParticipantThis 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.
December 8, 2013 at 12:36 pm #175254In reply to: How to stop spam registrations (HELP!!)
Matt McFarland
ParticipantA 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
December 8, 2013 at 12:30 pm #175253In reply to: How to stop spam registrations (HELP!!)
ride2719
ParticipantI’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.
December 8, 2013 at 11:12 am #175247In reply to: Add post featured image in activity stream
Matt McFarland
ParticipantHere’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' ); ?>" /> <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
December 8, 2013 at 11:11 am #175246In reply to: Add post featured image in activity stream
Matt McFarland
ParticipantYes 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
December 8, 2013 at 9:13 am #175243In reply to: Add post featured image in activity stream
danbp
Participanthi @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/
December 8, 2013 at 8:47 am #175242In reply to: Passing user role to custom xprofile field
noizeburger
ParticipantOK, 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
December 8, 2013 at 8:03 am #175239In reply to: Where do I Change Page Titles?
Cassey’s Designs
ParticipantI 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!
December 8, 2013 at 7:32 am #175236In reply to: Where do I Change Page Titles?
Matt McFarland
ParticipantHi 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.)
December 8, 2013 at 5:14 am #175233In reply to: Where do I Change Page Titles?
Cassey’s Designs
ParticipantHi 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.December 8, 2013 at 3:46 am #175231In reply to: Installation on Multisite
cybervaliewp
ParticipantHi 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 -
AuthorSearch Results