Replies
- Ravi on April 14, 2016 at 2:33 pm in reply to: Group Categories and restricting which ones display. #3516
Hi Phil,
Please Visit Group(Any group), Then click on its Manage Tab. Under Manage, you will see a tab called “Blog Categories”. If you don’t see it, Please click on the settings tab and at the top of the group settings page, you will see the option to enable/disable Blog Categories. Please make sure it is enabled. Once it is enabled, the Blog Categories will appear there.
Please do let me know if it works for you or not?
Thank you
Ravi - Ravi on April 14, 2016 at 1:33 pm in reply to: Group Categories and restricting which ones display. #3514
Hi Phill,
Please follow the steps and let me how it goes
1. Configuring in Admin section. Please update Blog category for settings under setting menu.
2. Please find ‘Blog Categories’ menu under group’s manage tab from front-end and assign the category to that group.Thank You
Ravi - 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