I made some “progress”
I found this and I can agree that it is still true.
https://buddypress.trac.wordpress.org/ticket/5971
Filtering is inconsistent and sometime happens twice.
I think this should be something to look into somewhat soon.
Anyway here is the minimum you have to do to turn off html filtering.
BUT it makes you website a lot more vulnerable to attacks and errors so use it at your own risk.
Add this code to your child theme function.php
//Unfilter xprofile *risky*
remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_kses', 1 );
remove_filter( 'bp_get_the_profile_field_edit_value', 'wp_filter_kses', 1 );
remove_filter( 'xprofile_get_field_data', 'wp_filter_kses', 1 );
remove_filter( 'bp_xprofile_set_field_data_pre_validate', 'xprofile_filter_pre_validate_value_by_field_type', 10, 3 );
remove_filter( 'xprofile_data_value_before_save', 'xprofile_sanitize_data_value_before_save', 1, 4 );
There’s a ticket about this here:
https://buddypress.trac.wordpress.org/ticket/3789
View the comments in that ticket for some approaches that you can take. If you need some hooks in BuddyPress to make this happen, let us know by replying to that ticket. Login using the same credentials as you use here on buddypress.org.
You could also think about using Gravatar and disabling avatar uploads as well. It’s probably not a valid option for your site, but just making sure you know! 🙂
Not that I know of. Have a read of How to Take Control of The WordPress Heartbeat API for an overview of the performance issues associated with it.
Heya! I’m really looking forward to using BuddyPress for an upcoming project. However I am having trouble with one part. This is how I’ve installed BP.
1. I’m using WordPress and creating my own theme (not child theme).
2. I’ve installed the BP-plugin through the admin panel in WordPress.
3. I’ve assigned the specific sites to register, activate etc.
4. Problem
My problem is that the pages don’t show anything. I mean literally they don’t find anything to show. I’ve been scouring the web for some guidance on how to fix BP with a custom theme but I’ve come up with one solution only. That was to put the bp-template-pack files in my root folder (where I up until now had no BP files) and that makes it work. It displays all the flows, the user page, the register and so on.
But, however, I feel this is probably not how it’s supposed to work. As I can’t find any updated version of bp-template-pack, but one that is for BP 1.5 (and now it’s what, 2.3?)
Can anyone please help me understand how this works. I can obviously get it working up until I’ve assigned all the pages. After that I can’t manage to get the information to display under the links. Do I need to enable some sort of theme compatibility in functions? Is there a new bp-template-pack?
Sincerely, Sebastian
It seems this is in-progress. See 6057 for updates.
Hello and thanks for the fast reply.
1st I have a lot of custom code but nothing that interferes with admin-ajax.php
2nd My plugins (please dont panic)
Agreeable
bbpress
bbpress – custom kses allowed tags
bbpress -enable tinymce visual tab
bbpress moderation
buddypress
buddypress captcha
Contact form 7
easysocial icons
events manager
GB bbpress tools
google analytics by yoast
Gzip ninja speed compression
Loco translate
Speakout! email petitions
Tinymce advanced
Wordpress SEO
WP bakery visual composer
WP super cache
YOP Poll
3d theme: fraction from orange themes (i already contacted their support and i am waiting for their reply)
Hi, I am creating the website dexterlist.com and the registered users do not receive any kind of notification (email, profile bell, live notifications) when someone comments to their posts. I am using a paid theme called Kleo: http://seventhqueen.com/themedemo/?product=kleo, WordPress version 4.2.2 and Buddypress version 2.3.1. The support forum of the Kleo theme told me it is not a theme problem but a Buddypress one. Please advise.
Hello,
I am using wordpress 4.2.2 and buddypress 2.2.3.1 with bbpress 2.5.7
i have an issue with my buddypress wordpress. My site has load time 10 secs with admin-ajax.php loading 3 times with 3-4 sec delay every time.
The only thing i could find on the forums has to do with woocoomerce which i dont have activated on my theme. I guess the only thing that has issues with admin-ajax.php is the buddypress login thats why i open that topic.
You can check what i mean here http://tools.pingdom.com/fpt/#!/dBUhCx/http://apofasismenoi.gr/
I tried some solutions like heartbeat options pluggin that didnt work.
Also i tried and added on functions a suggested code
add_action( 'init', 'my_deregister_heartbeat', 1 );
function my_deregister_heartbeat() {
global $pagenow;
if ( 'post.php' != $pagenow && 'post-new.php' != $pagenow )
wp_deregister_script('heartbeat');
}
but still didnt work.
Any ideas or help?
Chris
The plugin needs to be compatible with BuddyPress, not vice versa.
You should contact the plugin author and make that request.
https://wordpress.org/support/plugin/buddypress-cover-photo
I find this plugin incredibly helpful when managing — and allowing others to manage — the membership of groups, without availing them to the dashboard: https://wordpress.org/plugins/invite-anyone/
Hi,
I’m running the latest version of wordpress (twentyfourteen theme) and buddypress and have been testing out the various bits of functionality, when I create a hidden group I can’t see any way to add other users to the group.
Hopefully it’s something obvious I’m missing.
New version of BuddyPress is fantastic!
Thanks
Is the Buddypress avatar handled the same way as the normal WordPress thumbnails? i.e. functions?
No. See the bp_core_avatar_handle_upload() function for how avatars are uploaded in BP.
Ref: https://github.com/buddypress/BuddyPress/blob/master/src/bp-core/bp-core-avatars.php#L794
Hi
Is the Buddypress avatar handled the same way as the normal WordPress thumbnails? i.e. functions?
I need to create a blurry alternate version of the avatar when the user uploads one (to use as a background), along with keeping the original avatar as well. Any pointers for this?
Since the member’s user name is ‘admin’, it will show as ‘@admin’.
You can’t change the user name after registration – unless you go directly into the database via a tool like phpmyadmin.
Or use a plugin like:
https://wordpress.org/plugins/admin-renamer-extended/
also – you shouldn’t use ‘admin’ as a user name.
https://codex.wordpress.org/Brute_Force_Attacks#Don.27t_use_the_.27admin.27_username
You’ll have to create your own messages adminbar menu.
You can create a new menu item using:
https://codex.wordpress.org/Function_Reference/add_node
Or if you’re not using the WP Adminbar and have hardcoded that menu by yourself, you do not have to do anything.
Next, I would probably use JS to load the messages loop when you click on the “Messages” adminbar icon with AJAX.
…the search profile form…
Are you referring to this plugin:
https://wordpress.org/plugins/bp-profile-search/
If so, you should use Andrea’s support forum:
https://wordpress.org/support/plugin/bp-profile-search
or
BP Profile Search Forum
Your option could be added, but will require coding ability, afaik.
Hi
Thank you for responding.
I tried a few other themes including twentythirteen & Mesocolumn – no difference.
Then today I disabled all plugins except buddypress & bbforum.
Observation:
#1. The mentioned links worked.
#2. I then first activated a number of security plugins + Hyper cache plugin. Problem back, of page not found, until I deactivated Hyper cache.
This was solved by reading this article => http://www.buddyboss.com/buddypress-speed-and-performance/ & doing this:
By default this plugin will cache all of your site’s pages, including your BuddyPress-specific content like activity posts and forum posts. This is not good, as your BuddyPress content is constantly updated and needs to remain fresh. To fix it add the following lines into “URI to reject” in the “Filters” settings panel of Hyper Cache:
/forums/
/groups/
/members/
/activity/
/blogs/
/messages/
/register/
/activate/
… I think current plugin terminology is “Exact URIs to bypass” & “(Starting with) URIs to bypass”, which I did and clearing the cache.
#3. As I continued activating, I discovered the used https://wordpress.org/plugins/404-to-start/ also causes if I try to go to my profile page or for example /members/user-x/, etc to re-direct to site front page, with no error.
I have to look into this later. The other plugins I had tried before caused some issues, so I was happy with this re-direct plugin.
Will report back, at least if I get a response from author or get a plugin not causing issues, someone could recommend one ;).
Thank you & regards.
Yes it is related to “Messages > Starred”. There is nothing wrong with the new feature. It’s this function that I found online that’s causing a conflict.
/* ——————————Start BP Post in profile code for function——————– */
function importSomething(){
return include_once ‘bp-custom.php’;
}
add_action( ‘bp_setup_nav’, ‘buddyboss_child_bp_nav_adder’ );
add_action( ‘bp_template_content’, ‘profile_buddyboss_child_loop’ );
bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );
function buddyboss_child_bp_nav_adder() {
global $bp;
$post_count = count_user_posts_by_type( $bp->displayed_user->id );
bp_core_new_nav_item(
array(
‘name’ => sprintf( __( ‘Posts <span>%d</span>’, ‘my-poems’ ), $post_count ),
‘slug’ => ‘Articles’,
‘position’ => 250,
‘show_for_displayed_user’ => true,
‘screen_function’ => ‘buddyboss_child_list’,
‘item_css_id’ => ‘articles’,
‘default_subnav_slug’ => ‘public’
));
}
function buddyboss_child_list() {
add_action( ‘bp_template_content’, ‘profile_buddyboss_child_loop’ );
bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );
}
/*——- This is end of the code for above function ———*/
function profile_buddyboss_child_loop() {
$myposts = get_posts( array(
‘posts_per_page’ => -1,
‘author’ => bp_displayed_user_id(),
‘post_type’ => ‘post’
));
if( ! empty($myposts) ) {
foreach($myposts as $post) {
setup_postdata( $post );
if (has_post_thumbnail( $post->ID ) ):
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘sidebar-smallthumbnew’ );
else :
$image[0] = “…/wp-content/themes/Starkers-Child-2/images/vidimage.jpg”;
endif;
echo ‘<li class=”sidebar mostpop post-‘ . $post->ID . ‘”><div id=”postimage”>ID) . ‘”></div><div id=”postinfo”>ID) . ‘”>’ . get_the_title($post->ID) . ‘</div>‘;
}
echo ‘‘;
wp_reset_postdata();
} else { ?>
<div class=”info” id=”message”>
<p><?php bp_displayed_user_fullname(); ?> has No posts.</p>
</div>
<?php }
}
/* This is end of the code for above function */
remove_filter(‘bp_setup_nav’,”);
function count_user_posts_by_type( $userid, $post_type = ‘post’ ) {
global $wpdb;
$where = get_posts_by_author_sql( $post_type, true, $userid, true);
$count = $wpdb->get_var( “SELECT COUNT(*) FROM $wpdb->posts $where” );
return apply_filters( ‘get_usernumposts’, $count, $userid );
}
/* ——————————This is end of the code for post in profile above function——————– */
It adds a new button on the user activity page and when the Message-Starred button is clicked it takes the user the lists of post page that the above function creates. How can I stop that fro happening. I really want to keep the starred message function and I don’t want to lose the lists of WordPress post in the user Activity page.
Hi @zenimot
See 5185 for some background and a discussion on the topic.
cool he will probs read this when hes online, this is the thing with buddypress, i just didnt understand when i first came to these forums a few years ago even though i had been comming longer without registering, I myself had shared hosting and thought yippee i have found a plugin that i was looking for and installed it, then after messing around with buddypress it dawned on me that shared hosting just was not gonna cut the ice with buddypress let alone wordpress for a serious install.
I then decided to delve into the world of dedicated/vps servers. I am by no means an expert in this world yet but i believe from my own experience that it is a very daunting task moving to these kind of setups at first, once you get the basics of initial setup and general security right its then time to tweak everything for future proofing and scaling and performance tweaking if your serious about the future of your website, unless your willing to pay ALOT of cash out to people who can do his for you full time.
This is why i sort of pushed my buddypress websites design back in favour of looking into all this. I think this is one of the biggest points concerning every website build and believe that not enough info is out there to make people understand just how important all this is to succeed with their websites, alot of people see these one click easy installs and adverts off companys telling them to come build your website with us its easy then see wordpress installed and think yippe look at my new website and what it can do, until of course they then get popular crash and burn then fail and give up because they just dont understand the reality involved in pushing forward a scalable environment. This is why i believe people doing a massive project such as buddypress should really be able to share this info with each other from nivice users to experts in this field.
Hey @mcpeanut
Check out the Nginx WordPress article; it may help whilst you’re waiting for a response.
So I did some tests…
In a standard WordPress install users can enter spaces in their username.
No problem.
E.g. ‘Firstname Surname’ renders as just that, with a space between the words.
But when I activate BuddyPress (no other plugins) with the Twenty Fifteen theme, suddenly the spaces are removed from the username. Without as much as a single notification or error message.
E.g. ‘Firstname Surname’ becomes ‘FirstnameSurname’.
This is a huge problem for users! As they don’t get a message their input has been changed. And the username is not mentioned in the activation e-mail.
In my opinion there are two solutions:
1. notify the user of the change during registration;
2. allow the same username entry specification as WordPress does.
So far I haven’t found any of these solutions. 🙁
Need help.
Hi all been a while
I have been real busy over the past month or so and just havent had the time to visit these forums much lately but i am just in the midst of setting up a new dedicated server once again that i have purchased, now the question is about nginx specifically, i have allways used apache in the past but ive heard some really great things about using nginx for wordpress installs and believe it is alot faster than a standard apache setup especially when paired with varnish.
Now i believe there is quite a few additional htaccess rules etc when setting up nginx with wordpress for it to run right and before i dive into it and try it out i was wondering if anyone on these forums have any advice on how you have it set up to run with your buddypress installs.
any info is greately appreciated and would you advise this as the best way to go for scalability? as i believe nginx makes it easy to add other servers in to the mix further down the line too.
Well, it would be nice to do this without a plugin 🙂
However, this plugin seems to work fine
https://wordpress.org/plugins/menu-items-visibility-control/