Search Results for 'buddypress'
-
Search Results
-
I’m setting a cookie to display a message on the conversation view after sending a PM. The message displays correctly but the message is there when I go to another page in my profile. The second page I visit after sending the message clears the messages. Code below:
function sbpp04_messaging_some_recipients_error(){ if( isset( $_COOKIE[ 'sbpp04-messages-some-blocked' ] ) ){ $error_message = __( 'Some recipients blocked your message.', 'buddypress' ); bp_core_add_message( $error_message, 'error' ); $_COOKIE[ 'sbpp04-messages-some-blocked' ] = false; } } add_action( 'messages_screen_conversation', 'sbpp04_messaging_some_recipients_error' );Hi
I’m just dipping my toe into BuddyPress and my client needs to moderate profile changes but I haven’t been able to find any solution yet. To that end I’m having a go at developing something myself but I’m a bit stuck.
My approach so far has been to create a new visibility level of ‘moderated’ and make it hidden unless you are admin.
To stop people from changing the visibility level themselves I’ve set the the visibility to ‘Enforce field visibility’ but this stops admin from being able to change it on the user’s profile too.
So is there a way I can introduce a third option of ‘Enforce field visibility except for admin’?
Just for context, my next steps (not yet attempted) are to on save of profile to email admin and set all the users fields to moderated. Then on admin view of a profile to have a button that changes fields with moderated visibility back to their defaults. Does this sound like I’m on the right track?
Thanks for your help!
JoHello
I would exclude automatically, some categories of the blog post, in the activity stream. It’s possible?I saw that the same problem was seen here: https://buddypress.org/support/topic/possible-to-exclude-post-categories-in-activity-stream-and-make-a-user-profile-private-like-with-pri/
But applying the same function with the latest version of BuddyPress, it does not work. is possilibe?
I also tried to customize the Post Types default ‘post’, following this guide: https://codex.buddypress.org/plugindev/post-types-activities/
changing fields as well:
add_post_type_support( 'post', 'buddypress-activity' ); function customize_page_tracking_args() { // Check if the Activity component is active before using it. if ( ! bp_is_active( 'activity' ) ) { return; } bp_activity_set_post_type_tracking_args( 'post', array( 'component_id' => buddypress()->blogs->id, 'action_id' => 'new_blog_post', // or 'new_post' 'bp_activity_admin_filter' => __( 'Published a new post', 'emt-buddypress' ), 'bp_activity_front_filter' => __( 'Posts', 'emt-buddypress' ), 'contexts' => array( 'activity', 'member' ), 'activity_comment' => true, 'bp_activity_new_post' => __( '%1$s shared a new <a href="%2$s">post</a>', 'emt-textbuddypress' ), 'bp_activity_new_post_ms' => __( '%1$s sahred a new <a href="%2$s">post</a>, on the site %3$s', 'emt-textbuddypress' ), 'position' => 100, ) ); } add_action( 'bp_init', 'customize_page_tracking_args' );Finally I tried to customize the content of the post, in activity stream, as always suggested in this post:
guide:https://codex.buddypress.org/plugindev/post-types-activities/
or this:
https://buddypress.org/support/topic/custom-activity-new-post-content-not-broken-after-update-the-post/This is my function:
function record_cpt_activity_content( $cpt ) { if ( 'new_post' === $cpt['type'] ) { $cpt['content'] = '<a href="' . get_permalink( $post->ID ) . '" class="activity-content-title" >' $post->ID). '</span><br />' . get_the_post_thumbnail( $post->ID, '') . '<br /> <br />' . get_post_field('post_content', $post->ID); } return $cpt; } add_filter('bp_before_activity_add_parse_args', 'record_cpt_activity_content');The problem is that the added HTML
<a href="' . get_permalink( $post->ID ) . '" class="activity-content-title" >' $post->ID). '</span><br />tags are not preserved when the post is published. Solutions?
Thanks for your attention and assistance
Hello! In my site I use plugin to sanitize posts/pages URL’s. Code of plugin is simple (all no-latin symbols has changed to latin):
function the_russian_url($title) { $cyr2lat_table = array( "Є"=>"YE","І"=>"I","Ѓ"=>"G","і"=>"i","№"=>"-N-","є"=>"ye","ѓ"=>"g", "Ґ"=>"G","Ё"=>"YO","Є"=>"E","Ї"=>"YI","І"=>"I", "і"=>"i","ґ"=>"g","ё"=>"yo","є"=>"e", "ї"=>"yi","А"=>"A","Б"=>"B","В"=>"V","Г"=>"G", "Д"=>"D","Е"=>"E","Ж"=>"ZH","З"=>"Z","И"=>"I", "Й"=>"Y","К"=>"K","Л"=>"L","М"=>"M","Н"=>"N", "О"=>"O","П"=>"P","Р"=>"R","С"=>"S","Т"=>"T", "У"=>"U","Ф"=>"F","Х"=>"H","Ц"=>"TS","Ч"=>"CH", "Ш"=>"SH","Щ"=>"SCH","Ъ"=>"","Ы"=>"YI","Ь"=>"", "Э"=>"E","Ю"=>"YU","Я"=>"YA","а"=>"a","б"=>"b", "в"=>"v","г"=>"g","д"=>"d","е"=>"e","ж"=>"zh", "з"=>"z","и"=>"i","й"=>"y","к"=>"k","л"=>"l", "м"=>"m","н"=>"n","о"=>"o","п"=>"p","р"=>"r", "с"=>"s","т"=>"t","у"=>"u","ф"=>"f","х"=>"h", "ц"=>"ts","ч"=>"ch","ш"=>"sh","щ"=>"sch","ъ"=>"", "ы"=>"yi","ь"=>"","э"=>"e","ю"=>"yu","я"=>"ya", " "=>"-","."=>"",'"'=>"-","""=>"-",'"'=>"-", ); global $wpdb; //оставляем только латиницу, цифры и тире //Дополнение — очищает слаги от вхождения ненужных в URL символов. //echo '<!--URL: '.$title.' -->'; //if ($title!='') return str_replace("--","-",preg_replace("~[^A-Za-z0-9-]~","-",strtr($title,$cyr2lat_table))); } add_action('sanitize_title', 'the_russian_url');If I use this (very old) plugin in site with installed BuddyPress, in BuddyPress has not work new users activation function. If user click to link in activation email, or manual type activation code on activation page, it get message (Wrong activation code).
If i disable my plugin, activation work good.
Please, help my change my plugin. I need for both plug-in should work simultaneously.
PS. Sorry for my bad English 🙂
Topic: Profile Page
Hey everyone! I am new to BuddyPress. I need some help. I like the way the profile page looks on the very first page when you go to https://buddypress.org/ is there a walk thru or something on how to make my profile pages look like that?
Thanks,
JenHello,
I am using the latest WordPress and BuddyPress versions on my site:
http://www.artisticfreedomcrew.com/I set up my site in a way that users can upload their photos/images to the site through a front end uploader.
Is there a way to add those pictures automatically to their personal profile page, working as a personal Gallery?Kind Regards,
Bruno MestreHello ! I’ve been looking everywhere for a solution, but since I haven’t found anything that is a real solution, I’m posting a new topic.
My problem is : the emails sent by BuddyPress are in plain text and not in html. I’ve looked into the plugins we have installed, but none are SMTP. We’re using WordPress 4.6.1, BuddyPress 2.7.1 and the following plugins :
Advanced Custom Fields
AMP
Appfull
BbPress
Bottom Admin Bar
BP Emails for BBP
BuddyPress Votes
BuddyPress Xprofile Custom Fields Type
Duplicate Post
Glue for Yoast SEO & AMP
Gravity Forms
Gravity Forms CSS Ready Class Selector
Hero Slider
Loco Translate
Meta Box
Multiple Post Thumbnails
Page Builder par SiteOrigin
Redirection
Reveal IDs
rtMedia for WordPress, BuddyPress and bbPress
SiteOrigin CSS
SiteOrigin Widgets Bundle
TinyMCE Advanced
Ultimate Addons for SiteOrigin
WordPress Social Login
WP Viral Quiz
Yoast SEOI’ve seen someone suggest modifying the bp core functions, which is a really bad idea and not a viable solution for my problem.
Anyway, thanks in advance !
Hello everyone, i had installed boddypress plugin on my web site. In this website i had too iThemes Security Plugin. After a few days some errors were become. For example 508 errors. I think they are not compatible and i will like to use buddypress plugin to start a comunity in my web site. Some body can tell me somethig..? Please, tell me how can i use both plugins and don´t have errors. Thank you very much in advance.
ummm… https://wordpress.org/plugins/buddypress/
We list them on both our plugin directory and
https://buddypress.org/extend/recommended-plugins/
that is a 404 not found page
wordpress v 4.6.1
buddypress v 2.7.1I notice there is a ” 0 “ figure appearing anytime I post an update. this started occurring when i updated to the new version 2.7.1 but goes off when reverted to v2.7
The issue still occurs all themes been used
Please Help me fix this issue… Thank You
I would like to include the post category with the author name and post title. I have looked all over and found a bunch of answers along these lines
$activity_action = sprintf( __( '%1$s added the post, %2$s in the categories %3$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>', get_the_category_list( ', ', '', $post->ID ) );I have tried using the various functions available for getting the categories but no luck. Worth noting is that the current Buddypress version is using
$actioninstead of$activity_actionand the rest of the arguments have been modified also.I tried adding
add_filter('wp_get_post_categories()', 'bp_blogs_activity_new_post_action');into my theme’s
functions.phpfile but nothing.What am I missing?
Thanks in advance.
Topic: Multisite question
I currently have 2 domains associated with my multisite install. One of the domains is mapped under the main domain. I have a different theme on each website, but I am wanting them to be synced with buddypress and users info. However, if I access my buddypress file on my secondary mapped domain it takes me to the BuddPress profile page on my main domain. Is there away to fix this, as I would prefer that users are taken to the particular theme BuddyPress profile page instead of only the main domains BuddyPress Profile page? So in other words, can you have the BuddPress profile information linked from both websites on the Multisite install, but allow users to access their profile settings within the website that they are on and not be redirected to the main websites profile page? Thanks
Hello,
I’m developing a website for my company and we’re trying to sync the assigned group data in buddy press with the user so when we go into mailchimp we can sort/partition our lists in mailchimp by the corresponding group.
The code we’re using to sync all the other data in extended profile is here, but my concern is that we can’t pull the group the same way because it’s not something that gets added in the extended profile. I’m almost certain that I can’t pull the group with these parameters because when i look in the database, there’s no user-ID tied to any group. However, when i go into buddypress groups there’s users assigned to them.
This is the function we’re using to sync:
add_filter( ‘mailchimp_sync_user_data’, ‘mailchimp_buddypress’, 10, 2 );
//Write the function
function mailchimp_buddypress( $data, $user ) {//Get user ID
$user_id = $user->ID;// Store Xprofile fields in the $data variable
$data[‘JOBTITLE’] = xprofile_get_field_data( 11 , $user_id );
$data[‘ORG’] = xprofile_get_field_data( 12 , $user_id );
$data[‘CITY’] = xprofile_get_field_data( 36 , $user_id );
$data[‘STATE’] = xprofile_get_field_data( 16 , $user_id );
$data[‘COUNTRY’] = xprofile_get_field_data( 18 , $user_id );
$data[‘PHONE’] = xprofile_get_field_data( 19 , $user_id );
$data[‘SALUTATION’] = xprofile_get_field_data( 3 , $user_id );
$data[‘GROUP’] = bp_get_current_group_id( 1 , $user_id );
//Return the data
return $data;}
Right now the last line “$data[‘GROUP’] = bp_get_current_group_id( 1 , $user_id );” outputs a “0”.
Thank you for reading! Hoping someone on here can help me.
Topic: MemberType Tutorials?
It seems all the videos I can find regarding setup of BuddyPress go through installing and very basic setup but I have yet to find any that go into structuring the social networking portion of the site and address things like the nuances of membertype and how to go about actually building the site. Does anyone know of any? Am I just really bad at searching?
Thanks, for your time,
Keith