Replies
- Ravi on April 14, 2016 at 1:01 pm in reply to: Group Categories and restricting which ones display. #3512
Hi Phill,
Welcome on BuddyDev.
Please disable all above plugins except ‘Blog Categories for Groups’ and ‘BP simple front end post’ and assign single category to each group.
Thank You
Ravi Hi Leo,
It is difficult to navigate the user to the page from where the post was published as it is a custom form and can be called on any places. But we can edit it from BuddyBlog edit form. Please modify the code for registering custom form
function buudydev_post_form() { $settings = array( 'post_type' => 'post', 'post_author' => bp_loggedin_user_id(), 'post_status' => 'publish', 'tax' => array( 'category' => array( 'include' => array( 61 ), //category ids 'view_type' => 'checkbox', ) ), 'current_user_can_post' => is_user_logged_in(), 'show_categories' => true, 'allow_upload' => true ); bp_new_simple_blog_post_form( 'my_custom_form', $settings ); } add_action( 'bp_init', 'buudydev_post_form', 4 );with this code
function buudydev_post_form() { $settings = array( 'post_type' => 'post', 'post_author' => bp_loggedin_user_id(), 'post_status' => 'publish', 'tax' => array( 'category' => array( 'include' => array( 65 ), //category ids 'view_type' => 'checkbox', ) ), 'custom_fields' => array( '_my_custom_form' => array( 'type' => 'hidden', 'id' => 'my_custom_form', 'name' => 'my_custom_form', 'default' => 'my_custom_form' ) ), 'current_user_can_post' => is_user_logged_in(), 'show_categories' => true, 'allow_upload' => 1 ); bp_new_simple_blog_post_form( 'my_custom_form', $settings ); } add_action( 'bp_init', 'buudydev_post_form', 4 );Also we need to override the buddyblog form template by copy “buddyblog/template/buddyblog/edit.php” file to your theme folder “buddyblog/edit.php” after copying, modify the following section
$form = bp_get_simple_blog_post_form( 'buddyblog-user-posts' ); $form->show();with
$form_id ='buddyblog-user-posts'; $post_id = bp_action_variable( 0 ); if( ! empty( $post_id ) && ! empty( get_post_meta( $post_id, '_my_custom_form', true ) ) ) { $form_id ='my_custom_form'; } $form = bp_get_simple_blog_post_form( $form_id );it will load over custom form instead of BuddyBlog Form.
Hi Leo,
I am Sorry for the delayed reply.
Most probably the BuddyBlog settings are conflicting with our custom code(single we are using the BuddyBlog edit form to update).We will need to use a different edit/add new form. So, you will need to add an endpoint for that. Do you want me to provide code for it ?
Thank you
RaviHi Leo,
Welcome back. I will get back to you shortly on this.
Thank You
RaviHi Leo,
Thank You for confirming.
Hi Leo,
Please check the following code in your bp-custom.php file and let me know if it is working or not.
function buddydev_add_new_activity_type( $allowed ) { $allowed[] = 'mpp_media_upload'; return $allowed; } add_filter('bp_editable_activity_allowed_type', 'buddydev_add_new_activity_type' );Thank You
RaviHi Zabrina,
Sorry, we do not have photo tagging functionality for MediaPress right now. But we do have plans to integrate this functionality as MediaPress Addon in future.
Thank You
RaviHi Leo,
Thank You for confirming. I am glad that i could help.
Thank You
Ravi- Ravi on April 9, 2016 at 5:19 pm in reply to: [Resolved] Show new notification without having to refresh? #3432
Hi Alayna,
Thank You for posting, Yes you can achieve this functionality using one our free plugin named “BuddyPress Live Notification”. It works exactly like your requirement. Please refer the following Link
https://buddydev.com/plugins/buddypress-live-notification/
Thank You
Ravi