BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on in reply to: Add an activity when a new user signs up #3574

    Thank you, Ravi. I will try that and let you know.

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on in reply to: [Resolved] BP Simple Front End Post Form #3573
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 79
    Leo on in reply to: [Resolved] BP Simple Front End Post Form #3570

    Hi Ravi,

    Thanks for getting back to this.

    Do you mean website url and user access? If so, please let me know and I’ll message you.

    Thank you,
    Leo

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on in reply to: [Resolved] BP Simple Front End Post Form #3566

    Hi Brajesh,

    here’s the code Ravi provided, I use only categories, no tags:

    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 );

    The 2 forms are different, the problem is when you want to edit the post, it doesn’t load the 2nd custom form and that’s why after editing the post falls under the first form’s category.

    Concerning WPML, yes, that would be great, however, all BuddyDev plugins that I use are quite compatible with WPML, just a few issues, that usually are solved here in this forum.

    Thanks,
    Leo

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on in reply to: [Resolved] BP Simple Front End Post Form #3558

    Hi Brajesh,

    I just wonder if it would be easier if instead of different categories I make a custom post type? What do you think?

    Also, there’s the issue with form submission in Spanish and at WPML they’re trying to solve it.
    They also asked if you would like to apply for plugin compatibility. I remember you were interested.

    “It would be great if you can also contact the author asking him to apply to our Go Global program: http://wpml.org/documentation/theme-compatibility/go-global-program/ .”

    Thank you,
    Leo

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on in reply to: [Resolved] BP Simple Front End Post Form #3552

    Hi Brajesh,

    It happens for new posts, too. I just created a post and after editing, it does the same, goes to another category.

    Also, can you please check this?
    wp-debug is enabled and when I edit the form and submit, there’re such a notice and a warning:
    Notice: Undefined index: bp_simple_post_upload_thumbnail in /home/artsyner/public_html/test/wp-admin/includes/media.php on line 277
    Warning: Cannot modify header information – headers already sent by (output started at /home/artsyner/public_html/test/wp-admin/includes/media.php:277) in /home/artsyner/public_html/test/wp-includes/pluggable.php on line 1228

    maybe it has something to do with this all?

    Thank you,
    Leo

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on in reply to: [Resolved] BP Simple Front End Post Form #3548

    Hi Brajesh,

    Thank you. I added the line to show the form, but it still doesn’t show the correct form and after editing the posts go to other category.

    Thank you,
    Leo

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on in reply to: [Resolved] BP Simple Front End Post Form #3537

    Hi Ravi,

    Thank you very much.

    I tried and replaced the codes you provided but it doesn’t load any form at all, the edit page loads without any form both for these posts and the main buddyblog posts. What could be the reason for that?

    Thank you,
    Leo

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on in reply to: [Resolved] BP Simple Front End Post Form #3494
    This reply has been marked as private.
  • Participant
    Level: Enlightened
    Posts: 79
    Leo on in reply to: [Resolved] BP Simple Front End Post Form #3482

    Hello Ravi,

    I am back again, there’s another problem here. Can you please have a look?

    When you publish a post (all works well here), the post is published under the category 65. I have a loop to show only these posts there.
    Later if you want to edit the post, opens the url like this: site.com/members/member-name/buddyblog/edit/
    like the general posts from buddyblog published under another category.
    The problem is when you make the changes and submit the form, the post changes the category and it is being listed in the main loop.

    Is there any way to open another form for editing the post, the same form that we use to publish it?

    Thank you,
    Leo