#142907
 Roader
Participant

Estimada Laura. Mira esta foto. Es de una instalación en localhost que acabo de hacer. Como ves, ahí aparece el botón Cancel que viene por defecto con BuddyPress.

En el Theme SweetDate NO existe este botón. De hecho, compara bien el código original de BuddyPress / Template / Activity / entry.php con el código del Theme SD para que veas que NO están iguales.

SweetDate: Activity / entry.php Code —>

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

<?php bp_loggedin_user_avatar( ‘width=’ . BP_AVATAR_THUMB_WIDTH . ‘&height=’ . BP_AVATAR_THUMB_HEIGHT ); ?>
<textarea id=”ac-input-<?php bp_activity_id(); ?>” class=”ac-input bp-suggestions” name=”ac_input_<?php bp_activity_id(); ?>”></textarea>

<input type=”submit” name=”ac_form_submit” class=”tiny button radius” 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(); ?>” />

BuddyPress Code —>

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

<?php bp_loggedin_user_avatar( ‘width=’ . BP_AVATAR_THUMB_WIDTH . ‘&height=’ . BP_AVATAR_THUMB_HEIGHT ); ?>
<label for=”ac-input-<?php bp_activity_id(); ?>” class=”bp-screen-reader-text”><?php
/* translators: accessibility text */
_e( ‘Comment’, ‘buddypress’ );
?></label>
<textarea id=”ac-input-<?php bp_activity_id(); ?>” class=”ac-input bp-suggestions” name=”ac_input_<?php bp_activity_id(); ?>”></textarea>

<input type=”submit” name=”ac_form_submit” value=”<?php esc_attr_e( ‘Post’, ‘buddypress’ ); ?>” />   <?php _e( ‘Cancel’, ‘buddypress’ ); ?>
<input type=”hidden” name=”comment_form_id” value=”<?php bp_activity_id(); ?>” />

Log in with your credentials

Forgot your details?