Search Results for 'buddypress'
-
Search Results
-
After some test with the latest version of WP and BP I have found a slight bug with using multiple scopes in the activity-loop.php. Below is the code I used in the loop:
<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&scope=just-me,friends' ) ) : ?>The reason I say it is a slight bug is because I found if you go to dashoard/settings/buddypress/settings and then go under activty settings and check activity auto-refresh then even a user you are not friends with will get a notice to load newest and you can briefly see that activity of the user you are not friends with until the page is refreshed, then it goes away.
If you use multiple scopes in the activity-loop.php as I did above in the code example and you go to dashoard/settings/buddypress/settings and then under activty settings and un-check activity auto-refresh then it works as expected and you only will see you and your friends activity in the activity stream. Hopefully there will be a fix but until then just make sure activity auto-refresh is unchecked. I hope this helps debug and helps others that may experience this issue. Thanks!I’ve read the relevant codex page https://codex.buddypress.org/plugindev/post-types-activities/ and have copied the code given there, but it doesn’t seem to want to work for me.
My custom post type is “music”, and I want it on the activity stream, so I amended the code to:
add_post_type_support( 'music', 'buddypress-activity' ); function customize_page_tracking_args() { if ( ! bp_is_active( 'activity' ) ) return; bp_activity_set_post_type_tracking_args( 'music', array( 'component_id' => buddypress()->activity->id, 'action_id' => 'new_music', 'bp_activity_admin_filter' => __( 'Added a new Music Resource', 'custom-domain' ), 'bp_activity_front_filter' => __( 'Music', 'custom-domain' ), 'contexts' => array( 'activity', 'member' ), 'activity_comment' => true, 'bp_activity_new_post' => __( '%1$s added a new <a href="%2$s">music resource</a>', 'custom-textdomain' ), 'bp_activity_new_post_ms' => __( '%1$s added a new <a href="%2$s">music resource</a>, on the site %3$s', 'custom-textdomain' ), 'position' => 100, ) ); } add_action( 'bp_init', 'customize_page_tracking_args' );But all I get in the activity stream is the generic
Site Admin wrote a new item 10 seconds agoand Music does not appear in the Show drop-down menu.What am I missing?
Cheers
Hi,
I am using a custom form created by Frontend User Pro the output of which populates the sitewide activity stream on BuddyPress. One element of the form allows users to upload images, but these are not appearing on the BP stream. Looking through old queries I see that there may have been an issue with the plugin not allowing images on the stream. Is this the case? If so, is there any workaround I can employ to allow images to appear? It is essential that a user can upload images to my site…
Please help?!?
Thanks in advance,
Tom.
I love all the features BuddyPress has to offer but is there a way to disable the BuddyPress registration option and leave the default one only? I have the Sparkle theme and have BBPress installed.
If there’s a way to do this, I would appreciate if you’re as detailed as possible to avoid confusion.
The URL to my site: http://www.carfanaticsforum.com/forums/
Topic: Author Posts in Profile Page
Hi, actually there are a few issues i need to handle. I used @azchipka’s code
in bp-custom.php author posts are been seeing in profile page. However as you’ ll see in this photo how can i solve these highlighted problems?
– remove the rating showing on avatar.
– give hyperlink to page titles.
– post content must be deleted.Regards,
Code is:
//POSTS ON PROFILE STARTS HERE add_action( 'bp_setup_nav', 'add_profileposts_tab', 100 ); function add_profileposts_tab() { global $bp; bp_core_new_nav_item( array( 'name' => 'My Posts', 'slug' => 'posts', 'screen_function' => 'bp_postsonprofile', 'default_subnav_slug' => 'My Posts', 'position' => 25 ) ); } // show feedback when 'Posts' tab is clicked function bp_postsonprofile() { add_action( 'bp_template_content', 'profile_screen_posts_show' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function profile_screen_posts_show() { query_posts( 'author=' . bp_displayed_user_id() ); if ( have_posts() ) : get_template_part( 'author' ); else:?> <div id="message" class="info"> <p><?php bp_displayed_user_username(); ?> has not published any post! </p> </div> <?php endif; ?> <?php } //POSTS ON PROFILE ENDS HERE ?>Topic: HTML in Profile Field again!
Hello,
sry for my bad english but i am from Germany.
I use WordPress 4.1 and Buddypress 2.2.1….Now i want to enable HTML for profile fields, because the user want to iframe some soundcloud players. i know it’s a problem fpr security, but thats no problem because only 10 users are allowed tu have a profile.
i’ve tried to enable html for this fields on this way in the bp-custom.php but i only geht a white site.
function stuff_i_want_triggered_after_bp_loads(){ remove_filter( 'xprofile_get_field_data', 'wp_filter_kses', 1 ); } add_action('wp', 'stuff_i_want_triggered_after_bp_loads');any idea what i can try now? I really want to enable html.
kind regards
friloo