Search Results for 'buddypress'
-
AuthorSearch Results
-
April 9, 2016 at 10:46 pm #252283
In reply to: Undefined index.
Henry Wright
ModeratorHi ma3ry
I know the path points to a BuddyPress file, but this notice is likely caused by a plugin you have activated. It basically means an array key
ris being used, but therkey doesn’t actually exist in the array (for whatever reason).Try deactivating your plugins 1 by 1 to see which might be causing the notice.
April 9, 2016 at 10:41 pm #252282In reply to: Shortcode to create Edit Profile Page
Henry Wright
ModeratorSimple Membership may use a different action hook on login. I’m guessing the redirect plugin uses the standard hook provided by BuddyPress. Do you have a link to Simple Membership?
April 9, 2016 at 4:38 am #252269In reply to: Blog Pages Restricted – S2Member
abbie2636
ParticipantOk – I’ve solved it. I had installed BuddyPress Members Only Plugin when trying to solve a problem that I’ve now solved with S2Member. As I hadn’t deactivated it at blocked my whole site. I’m glad I’ve worked it out and hope this post helps others if they ever encounter the same problem.
April 8, 2016 at 10:25 pm #252260In reply to: Shortcode to create Edit Profile Page
ma3ry
ParticipantThank you Henry. This is obviously beyond my capabilities. I appreciate you letting me know.
Perhaps you might be able to help me with an alternative. There is a plugin called BuddyPress Redirect To Profile (on Login). It works exactly as I’d like it to work, except with Simple Membership, which happens to be the Membership plugin I’m using.
Would you know of a way to bypass the Simple Membership plugin to make this redirect plugin work?
Thank you.
April 8, 2016 at 9:00 pm #252259In reply to: Show additional fields on member profile header
ngoegan
ParticipantI still can’t get it to work. I do have header images enabled so I edited this file:
buddypress\bp-templates\bp-legacy\buddypress\members\single\cover-image-header.php
as follows:
<?php /** * Fires after the group header actions section. * * If you'd like to show specific profile fields here use: * bp_member_profile_data( 'field=About Me' ); -- Pass the name of the field * * @since 1.2.0 */ bp_member_profile_data( 'field=city' ); bp_member_profile_data( 'field=state' ); do_action( 'bp_profile_header_meta' ); ?> </div>April 8, 2016 at 8:48 pm #252257In reply to: Show additional fields on member profile header
ngoegan
ParticipantDoes “your theme” here mean my theme twenty twelve? Or do they mean some other buddypress theme folder?
Template compatibility also runs a check to see if two directories or folders exist in a theme:
‘buddypress’
‘community’
If either of these two folders exist in your theme and they contain BP template files then those files will be used in preference to the bp plugins versions.April 8, 2016 at 8:32 pm #252255In reply to: Show additional fields on member profile header
shanebp
ModeratorEdit this file:
buddypress\bp-templates\bp-legacy\buddypress\members\single\member-header.phpIf you have cover images enabled, edit this file:
buddypress\bp-templates\bp-legacy\buddypress\members\single\cover-image-header.phpEither way, you should be creating template overloads.
April 8, 2016 at 4:55 pm #252248In reply to: Post comments not appearing in activity stream?
cmavrikas
ParticipantHello @imath, I can confirm that the code you are proposing is working fine, thank you!
May I take the opportunity to ask you, how would it be possible to display not just the most recent comment of an old update on top, but the old update together with all its comments.
I.e. the stream to display all updates and their nested comments in a chronological way, but the criteria to be the most recent date of either the update or any of its corresponging comments.
The default stream of BuddyPress hides any new comment deep down nested in its corresponding update. I would like the whole group to come up.
I hope my english was clear enough!
Thank youApril 8, 2016 at 4:03 pm #252245In reply to: Post comments not appearing in activity stream?
Mathieu Viet
ModeratorHi there, let’s try to reply to one problem at a time!
Now the posts do appear in activity stream, but not the comments. If i comment on a post, the stream doesn’t show the comments, but if i comment on a post via activity stream, the comment is then seen on a post and on the activity stream.
I guess, this means the BuddyPress “Site Tracking” is active.
1/ WordPress Administration > BuddyPress Settings > Options Tab – Activity Settings section:
Setting ‘Allow activity stream commenting on blog and forum posts’ is not checked. It means when a post or a comment is posted, then an activity will be generated, but it’s not possible to add an “Activity comment” to the generated activities. Just tested with latest WordPress and BuddyPress 2.5.2 and it works as expected:

2/ WordPress Administration > BuddyPress Settings > Options Tab – Activity Settings section:
Setting ‘Allow activity stream commenting on blog and forum posts’ is checked. This means you chose to synchronize comments between the Post object and the corresponding activity object. So a comment on the activity about the post will generate a regular post comment and a regular post comment will generate an activity comment on the activity about the Post. Just tested with latest WordPress and BuddyPress 2.5.2 and it works as expected:

Now @cmavrikas is talking about something else i think. He wants the activity comments to also be displayed like regular activities: in stream mode.
I then advise to use another filter to avoid parsing args / checking the current object of the Ajax querystring:function activity_comments_stream_mode( $args = array() ) { return array_merge( $args, array( 'display_comments' => 'stream', ) ); } add_filter( 'bp_before_has_activities_parse_args', 'activity_comments_stream_mode', 20, 1 );I just tested it, and again it’s working fine in latest WordPress / BuddyPress 2.5.2…
I advise you to deactivate plugins/come back to a default WordPress theme and do the opposite work to find the plugins or theme that prevents this regular behaviors.
April 8, 2016 at 12:44 pm #252233In reply to: BP Plugins List Missing????
danbp
ParticipantThat list is/was pretty old and not well maintained. BP’s codex is under permanent reconstruction (made by volonteers), so it’s no tomorrow morning that that list will be back.
Actually, the best place to get available BP plugins is the WordPress Repository. Recommanded search keyword is buddypress. 😉
April 8, 2016 at 12:38 pm #252232In reply to: Get groups only have 1 result in group page
danbp
ParticipantHi @javasworks,
you get only one result because you’re in ONE group loop. If you did a custom work, you may omited or done something wrong.
See here how BuddyPress Groups widget is coded, perhaps you can find some inspiration.Or more easy, why don’t you simply use the Group widget ?
April 8, 2016 at 11:28 am #252228In reply to: Post comments not appearing in activity stream?
cmavrikas
ParticipantDear @danbp,
I was using the snippet that you proposed for forcing the stream of comments cronologically with success. It seems that with the recent BuddyPress updates it does not work anymore.
Do you have any idea about that?
Thank you very much,
Charalamposhttps://buddypress.org/support/topic/blog-comments-not-appearing-in-activity-stream/#post-186091
// Force chronological comment display on the SWA
function bpfr_stream( $qs, $object ) { if ( 'activity' != $object ) { return $qs; } $qs = wp_parse_args( $qs, array() ); $qs['display_comments'] = 'stream'; return $qs; } add_filter( 'bp_ajax_querystring', 'bpfr_stream', 20, 2 );April 8, 2016 at 8:55 am #252221danbp
ParticipantThere is no need to modify the member loop. You just have to add the function into one of the file i mentionned.
By doing this with bp-custom.php, you don’t need to alter your curent theme and by the way, it will also work in case you use another theme.
April 7, 2016 at 10:09 pm #252209In reply to: Filtering Title in BuddyPress
Henry Wright
ModeratorI did a bit of digging for you. The filter you need to use is
bp_title_parts. Your hooked function will be passed an array of the BuddyPress title parts.April 7, 2016 at 9:33 pm #252208In reply to: Filtering Title in BuddyPress
BobSD99
ParticipantI didn’t have any luck with the
wp_title()function/hook either, so I’ll next climb into the core a bit to see if I can get anywhere. Reference and implementations for title functions in BuddyPress seem to be scarcely documented on the web, so I was hoping to get some insight from the experts here, as well as leave a few breadcrumbs for developers in the future. That could be especially helpful as WP/BP transition away from thewp_title()function.April 7, 2016 at 8:33 pm #252205In reply to: Extended Profiles Not on Register Page
concoa
ParticipantUPDATE:
I deleted all BP files and the plugin and did a reinstall.PROBLEM #1)
I am still having trouble with the Register page. I do not know what this error refers to:displays an error message:
“Profile Details
Warning: Creating default object from empty value in /home/content/p3pnexwpnas09_data01/28/2853428/html/wp-content/plugins/buddypress/bp-xprofile/classes/class-bp-xprofile-group.php on line 649”Line 649 is:
$fields[ $key ]->visibility_level = $field_visibility;PROBLEM #2)
Registration submission is now working, but an auto response email is being sent. Is there something in BuddyPress (or WordPress) to disable this? I’m getting an email saying:
Hi test4,
Thanks for registering!To complete the activation of your account, go to the following link: http://blahblahblah.com/activate/ef23a0f24958c3a125917f7e3bac95f8/
I’m using s2Member to allow admin approval of registrations. This email needs to be removed. Thx.
April 7, 2016 at 8:12 pm #252204In reply to: Filtering Title in BuddyPress
BobSD99
ParticipantHi Henry – thanks for response. As confirmed by both the Codex (Code Reference) and my successful use of this method in the same installation outside of BuddyPress, $title is indeed an array.
In fact, I tested my function without the
if ( bp_is_group() ){conditional, and the filter works on the pages NOT created/affected by BuddyPress, which confirms BuddyPress is bypassing this filter.For testing purposes, I modified the function as follows:
// test parameters passed to document_title_parts filter function test_groups_title( $title ){ print_r( $title ); exit; } add_filter('document_title_parts', 'test_groups_title', 10);And BuddyPress pages output the following array:
Array ( [title] => [site] => My-Website.com )Which suggests that BuddyPress is neither supplying data to this array nor utilizing it for the title output.
I did a grep of BuddyPress and bbPress and I am finding calls to the deprecated
wp_title()function:$ grep -r 'wp_title' ../plugins/b*press/* ../plugins/bbpress/includes/core/filters.php:add_filter( 'wp_title', 'bbp_title', 10, 3 ); ../plugins/bbpress/readme.txt:* Fix custom wp_title compatibility ../plugins/buddypress/bp-core/bp-core-filters.php: * @see wp_title() ../plugins/buddypress/bp-core/bp-core-filters.php: * @see wp_title() ../plugins/buddypress/bp-core/bp-core-filters.php: * Filters the older 'wp_title' page title for BuddyPress pages. ../plugins/buddypress/bp-core/bp-core-filters.php:add_filter( 'wp_title', 'bp_modify_page_title', 20, 3 ); ../plugins/buddypress/bp-core/deprecated/1.5.php: * @deprecated Use wp_title() ../plugins/buddypress/bp-core/deprecated/1.5.php: * Now, just simply use wp_title(). ../plugins/buddypress/bp-core/deprecated/1.5.php: * @deprecated Use wp_title() ../plugins/buddypress/bp-core/deprecated/1.5.php: _deprecated_function( __FUNCTION__, '1.5', 'wp_title()' ); ../plugins/buddypress/bp-core/deprecated/1.5.php: $title = wp_title( '|', false, 'right' ) . get_bloginfo( 'name', 'display' ); ../plugins/buddypress/bp-themes/bp-default/header.php: <title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title> ../plugins/buddypress/bp-themes/bp-default/archive.php: <h3 class="pagetitle"><?php printf( __( 'You are browsing the archive for %1$s.', 'buddypress' ), wp_title( false, false ) ); ?></h3>I guess this means I can and should hook in to the older (deprecated)
wp_title()function? I’m a bit new to BuddyPress and WordPress, so maybe I’m missing something obvious, or barking up the wrong tree here….April 7, 2016 at 6:36 pm #252201justarandomuser
ParticipantI just got it working with the wonderful plugin “Postman SMTP”!
But there is still a problem with BuddyPress 2.5: the emails are not sent with css styles!
With the following in functions.php, the mails are sent in text/html
add_filter( 'wp_mail_content_type', 'set_content_type' ); function set_content_type( $content_type ) { return 'text/html'; }Without they are sent in text/plain. But with or without, the emails never look like in the customizer.
Any help? 🙁
April 7, 2016 at 3:10 pm #252195In reply to: $bp global object deprecated
Henry Wright
ModeratorYou can still use
global $bp;at the beginning of your functions to access the global’s data. But yes,buddypress()is a far better way. You should be able to update the Codex yourself? If that’s not the case, let me know 🙂April 7, 2016 at 3:05 pm #252192In reply to: Filtering Title in BuddyPress
Henry Wright
Moderatorso I guess BuddyPress is bypassing or overriding this filter
If that were the case, you can increase the priority:
add_filter('document_title_parts', 'custom_groups_title', 20);But I don’t think that’s the problem in this case. Maybe check if
bp_is_group()andbp_current_action()are working as you expect them to be.var_dump( $some_value );will be useful here.April 7, 2016 at 11:54 am #252185In reply to: Special characters changing: e.g. ä >> u00e4
danbp
ParticipantHi @xrossgg,
which language do you use on your site and which server type (apache, nginx, iis,..)? Also can you tell exactly what you mean by BP names ?
A priori your issue has nothing to do with BuddyPress, but with the way gettext is excuted or how device are handled (charset…) in your language.
April 7, 2016 at 11:34 am #252184redokodesign
ParticipantHey all,
A HUGE thank you to @djpaul and everyone else who helped to solve this problem for me.
Paul asked me to install the following plugin:
https://wordpress.org/plugins/bp-email-to-wp-mail-from-bridge/
– This fixed the problem for me instantly. The site now has working notifications for Buddypress, BPpress and WordPress. Amazing! If you too are running WP-mail-SMTP and having problems do try this fix.
The Buddypress community is always so helpful.
Thanks again,
T
April 7, 2016 at 10:11 am #252182In reply to: Shortcode to create Edit Profile Page
Henry Wright
ModeratorThe edit form is in edit.php. You will need to add that to the page but I don’t think it will be as easy as copying and pasting because the default form processing may depend on the current URL.
April 7, 2016 at 1:35 am #252180In reply to: CSS causing cover image to disappear.
mfalk75
ParticipantOK, so this is the code I have put into my child theme:
// COVER IMAGES // Add css style for background cover images function bp_legacy_theme_cover_image_css( $settings = array() ) { $theme_handle = 'bp-child-css'; $settings['theme_handle'] = $theme_handle; $settings['callback'] = 'bp_legacy_theme_cover_image'; return $settings; } function bp_legacy_theme_cover_image( $params = array() ) { if ( empty( $params ) ) { return; } return ' #buddypress #header-cover-image { height: ' . $params["height"] . 'px; background-image: url(' . $params['cover_image'] . '); } '; } add_filter( 'bp_before_xprofile_cover_image_settings_parse_args', 'bp_legacy_theme_cover_image_css', 10, 1 ); add_filter( 'bp_before_groups_cover_image_settings_parse_args', 'bp_legacy_theme_cover_image_css', 10, 1 );I get this error: Fatal error: Cannot redeclare bp_legacy_theme_cover_image() (previously declared in /home3/xxx/public_html/mysite.com/wp-content/themes/valenti-child/functions.php:49) in /home3/xxx/public_html/mysite.com/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php on line 1928
Could someone point me in the right direction,…this is driving me nuts!
April 7, 2016 at 12:47 am #252178mfalk75
Participanthmm, thanks, I don’t get it either. I am editing the file in my child theme at this location: mysite.com/buddypress/members/members-loop.php It’s definitely editing the website as if I delete this part then the last update from a member does not appear. Your code makes the status update appear but it just don’t limit it. I even tried changing 50 to 10 and still long updates. Thanks for your help. Not sure what to do now.
-
AuthorSearch Results