Skip to:
Content
Pages
Categories
Search
Top
Bottom

simple entry.php modification breaks posting reply


  • tiptap
    Participant

    @tiptap

    Hey, this ones got me stumped.

    im editing activity>entry.php and adding ‘<div class=”ac-reply-holder”></div>’ around the activity reply form. and when doing so it no longer posts replies… if i open up firebug it tells me that;

    comment_id form = form

    form_id = undefined

    which obviously incorrect. the final code for that part is;

    <form action="<?php bp_activity_comment_form_action() ?>" method="post" id="ac-form-<?php bp_activity_id() ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display() ?>>

    <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=25&height=25' ) ?></div>

    <div class="ac-reply-holder">

    <div class="ac-reply-content">

    <div class="ac-textarea"><textarea id="ac-input-<?php bp_activity_id() ?>" class="ac-input" name="ac_input_<?php bp_activity_id() ?>"></textarea></div>

    <input type="submit" name="ac_form_submit" value="<?php _e( 'Post', 'buddypress' ) ?> →" />   <?php _e( 'or press esc to cancel.', 'buddypress' ) ?>

    <input type="hidden" name="comment_form_id" value="<?php bp_activity_id() ?>" />

    </div>

    <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ) ?>

    </div>

    </form>

    I can’t see why that would fail. any ideas or pointers?

    Cheers

  • The topic ‘simple entry.php modification breaks posting reply’ is closed to new replies.
Skip to toolbar