@expertscafe,
please use the code button when you post code.
Why do you think there is an error in BuddyPress ?
The warning only tells you that foreach doesn’t work correctly on YOUR install. No need to copy BP code, we have it all here. Mentionning the error – without server path- is enought.
(removed from your topic for security)
If there would be a BP error, you would find many topics here about that problem. It’s not the case so far i can see.
First thing to do is to debug.
Deactivate all plugins but BP, and activate one of WP default’s theme.
Review BP settings and save your permalinks.
After that, you reactivate plugins one by one and test… If all is OK, reactivate the actual theme.
If you see a probleme again, you can get sure it’s your theme. In that case you have to contact the forest support.
I have wplms theme installed which is integrated with Buddypress. However after latest wordpress upgrade to 4.2.2 I started getting below error.
"Warning: Invalid argument supplied for foreach() in ../../wp-content/plugins/buddypress/bp-blogs/bp-blogs-loader.php on line 97"
Below is details of php file and line 97 (highlighted in BOLD)for which error is displayed
/**
* Filters the post types to track for the Blogs component.
*
* @since BuddyPress (1.5.0)
* @deprecated BuddyPress (2.3.0)
<strong>$post_types = apply_filters( 'bp_blogs_record_post_post_types', array( 'post' ) ); *</strong>
* @param array $value Array of post types to track.
*/
foreach ( $post_types as $post_type ) {
add_post_type_support( $post_type, 'buddypress-activity' );
Can you please help me with how to resolve this error
We want to allow people to post an empty “what’s new” activity.
I believe that it uses the built-in wordpress “post” function.
Therefore I tried this to allow empty posts:
add_filter('pre_post_title', 'wpse28021_mask_empty');
add_filter('pre_post_content', 'wpse28021_mask_empty');
function wpse28021_mask_empty($value)
{
if ( empty($value) ) {
return ' ';
}
return $value;
}
add_filter('wp_insert_post_data', 'wpse28021_unmask_empty');
function wpse28021_unmask_empty($data)
{
if ( ' ' == $data['post_title'] ) {
$data['post_title'] = '';
}
if ( ' ' == $data['post_content'] ) {
$data['post_content'] = '';
}
return $data;
}
Anyone have any ideas?
This doesn’t answer your question but you say you’re including a file to open a mysql connection. Interacting with the WordPress database should be done though the wpdb class. Check it out, it’ll make your life easier and ensure your code is secure.
Hi everyone,
I’m having an issue with groups displaying all jumbled up on mobile (android AND iphone).
http://www.profoundstudio.net/bp-user-groups/rb-production-group/
I’m on Vantage Premium
Wordpress 4.2.2
Buddypress 2.3.2.1
It’s all fine on desktop.
Thanks!
I’ve created a ticket about this bug here:
https://buddypress.trac.wordpress.org/ticket/6528
This should be fixed for v2.4, which is tentatively scheduled for an autumn release.
In the meantime, you could use the 'bp_verify_nonce_request_url' filter to remove the double port number, which should temporarily fix the issue.
Hi lionel @prabin04
no directly the solution, but you asked for code, here it is:
https://buddypress.org/support/topic/adding-favourite-posts-as-a-tab-in-buddypress/
No screenshot ? Anyway, on group activity page, some action to take could be:
$my_fav_count = bp_activity_get_meta( bp_get_activity_id(), 'favorite_count' );
The important thing here is bp_activity_get_meta()
Most of favorite action are related in bp-activity-actions.php, like
$favs = bp_activity_get_user_favorites( bp_displayed_user_id() );
also some in bp-activity-functions.php:659
For other favorite skills, see also
https://buddypress.trac.wordpress.org/ticket/5644
Thanks for the report.
I’ve created a ticket about this here:
https://buddypress.trac.wordpress.org/ticket/6529
BP will better support emojis after we’ve upgraded our database schema to support utf8mb4.
https://buddypress.trac.wordpress.org/ticket/6346
More info courtesy of WP here:
The utf8mb4 Upgrade
The nearest would be BP Moderation, but from back-end mostly.
Group updates are not topics or blog post, but activities. And these can’t be moderated like topics.
If you want group members discussion, use a group forum and in that case, deactivate update commenting. This will force members to discuss on forum and not on group activity wall.
@djsteveb,
was miffed too, and decided finally to not use emoji’s. IMO unnecessary built-in noise, coming from extarnal server and added to every page without warning the site admin ! I disabled them with this plugin. On another hand, 23% of websites use now emoticons and probably 90% ignore that… Marketing !!!
If you still want some pics (if childish public is the target), see WP MonaLisa, which is even tailored for BuddyPress.
Have a nice day ! 😉 (emoticon ?)
1) Yes
2) The same as the default user level you set up in WordPress. By default, this should be the ‘subscriber’ role.
3) https://codex.buddypress.org/getting-started/register-and-activation-pages/
4) BuddyPress does not come with a bundled login page. It uses WP’s default wp-login.php page. You can find plugins on the wordpress.org repo to modify the login page to your liking.
I’ve got some questions that I can’t find the answer to.
Perhaps you guys can help me out:
1) Are the BuddyPress User the same as the WordPress users?
2) If so, what is the user level of a BP member? How should I set it?
3) Where in hell is the BuddyPress registration page and how do I activate it/set it up? I can’t find it and I can’t find any info on where to find it.
4) I want to set the BP login page as the main page and only show the BP site to users that are logged in. Where do I find the BP login page? How do I set it up as the main page for unknown BP users?
Thanks for any help.
hi @maelga,
You can’t actually automatically associate a user to a category.
try Restrict Categories, which let you assign categories to each user via backend.
To associate an xprofile value (or member_type), try this:
https://buddypress.org/support/topic/how-to-assign-a-wp-user-role-based-on-a-registration/#post-232887
Hi,
I would like to automatically assign a category to a post based on the author’s xprofile field. (and also possibly based on member type, if I decide one day to “migrate” this xprofile field to member type).
I have tried to start from this thread:
https://wordpress.org/support/topic/automatically-add-posts-to-a-category-conditionally?replies=4
but that code alone does not work.
I have also looked at hacking this plugin (https://wordpress.org/plugins/author-category/) with which an author can be assigned a category manually in backend, but I have to admit this is beyond my current skills.
Has anyone any idea how to achieve this?
When you use WordPress alone, you can use many plugins for registering.
If you use BuddyPress, you also use his fonctionnalities.
One of them, is Members, which comes also with extra components, like extended profile.
When you use extended profile, it is like using a register plugin for WP, with his own extra fields you can create/add to the original WP registering process. After that, each user can handle/view these fields on his profile.
Now you have to choose:
– WP alone, with his poor profile fields
– WP + BP, with rich profile fields
– WP + BP, without xprofile component (and users go back to the original profile fields aera).
– or ask on ninja plugin support for improvement guidance to apply with BuddyPress.
Hi @aventurine_geode,
It seems like overkill to create a whole child theme to make a few small changes to things like colors and fonts
It seems because you are beginner. But it is the reicipe of this cooking.
Making a child theme is shorter, faster and much more handy as a plugin.
What is a an overkill ?
Taking a hammer to kill a fly….
What is a child-theme ?
– create a folder in theme directory (5 seconds)
– adding an empty files to this folder: style.css (5 seconds)
Once done, you open style.css with a text editor and you add a header as explained here (copy/pasting: 5 seconds) and modifying that text (15 seconds).
Once done, you activate the child as your site theme. And the “big” overkill is now a simple water drop whipe.
Now you can add, remove, modify any CSS rule from within your child theme. Without thinking about plugin updates or struggling with issues reliable to that plugin.
Doing this depends of your CSS knowledge and your handling of that style.css file
Hopefully, you will understand that in this case, installing a plugin or doing it yourself, has no difference in matter of time, but a big one in matter of usability (direct vs. indirect handling) and last but not least, in both case, it’s you who have to enter CSS rules.
If you know how, it’s ok. If you don’t, it’s only your fault. 😉
This is an issue that has been identified and ticketed and in the process of being corrected, hopefully it will be included in a point release, if not we can show how to modify or replace the core file in the interim short term.
https://buddypress.trac.wordpress.org/ticket/6517
Responsiveness depends more of the theme you use….
There is also a plugin you could try:
https://wordpress.org/plugins/buddymobile/
I’m new to BuddyPress and am resorting to support forums after some very lengthy internet searches that haven’t been very helpful in providing a solution to my needs.
I’m running BP 2.3.2.1 on WordPress 4.2.2 on an NGINX VPS.
I’m trying to add some print to PDF and CSV functionality to a Members Directory page using whatever class or library that will enable me to achieve this (FPDF, mPDF, PDFlib, etc). I would like to print a members list to PDF and export a CSV from the frontend, with or without profile data.
The plugins available are simply inadequate to achieve. Any help would be appreciated.
I’ve seen a lot of forum posts on here regarding NextGen Gallery’s compatibility issue with BuddyPress where you’re unable to edit the User Profile with the NextGen plugin activated. Everyone’s solution seems to be “disable NextGen”, well here’s a solution that allows you to keep both and use both. =)
Open these two files:
/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/wordpress_routing/module.wordpress_routing.php
/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/third_party_compat/module.third_party_compat.php
Comment out any line containing this: _use_canonical_redirect
Save and both should be working. =)
-Rekwan
Hi,
I’m looking for a solution for a special problem. Is it possible to build a community of BuddyPress users over multiple WordPress installations on different servers? Can BuddyPress users on WordPress A on server Y connect with BuddyPress users on WordPress B on server Y? If this is not possible, is this a planned feature?
Thanks in advance
Fixed the problem.
wp_enqueue_script( $id );
i put this into
\buddypress\bp-core\bp-core-cssjs.php
just under
wp_register_script( $id, $script['file'], $script['dependencies'], $version, $script['footer'] );
Reference https://buddypress.trac.wordpress.org/attachment/ticket/5889/5889.01.patch
Hi All!
Awesome work on the platform so far.
I’ve been reading through a few posts here on bumping activities to the top of the stream when they receive replies / comments. Would seem like a fairly key way to increase member engagement by promoting opinions shared etc. an prompting further discussion – much in the same way Facebook do (yes I’m aware that BP isn’t Facebook though!).
I can see there has been a plugin developed (https://wordpress.org/plugins/buddypress-activity-stream-bump-to-top/) but that it’s out of date / broken.
Do you foresee this type of functionality forming part of the BP core?