-
Author
-
October 19, 2016 at 07:01 #140206RoaderParticipant
Post or Press Esc in Commentary box. Here I need the BuddyPress Default CANCEL Button. Press Esc is not practical.
And, I’m trying to add a Border to Activity Content but, I can not change this little triangle… I need this with border too.
Attachments:
You must be logged in to view attached files.October 20, 2016 at 08:35 #140452LauraModeratorHi,
What you need requires significant amount of time to create a functionality like that and our purpose here is to help you with any theme problem that you may encounter or with small customizations.
For anything that theme doesn’t have or you need something different you should hire a programmer/web developer to achieve what you need.If you want a quote from our developers team, contact our colleague cornel@seventhqueen.com about your request.
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
October 29, 2016 at 03:39 #142002RoaderParticipantPor favor Laura, ayúdame con esto.
Yo vi dónde está la función. entry.php
COPY CODE</div> <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(); ?>" /> </div>
El paquete Buddypress tiene:
COPY CODE</div> <input type="submit" name="ac_form_submit" value="<?php esc_attr_e( 'Post', 'buddypress' ); ?>" /> <a href="#" class="ac-reply-cancel"><?php _e( 'Cancel', 'buddypress' ); ?></a> <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" /> </div>
Este código va después del del código anterior. Lo pegué en el entry.php modificado del Tema SweetDate y nada sucedió, quizás me faltó algo.
Creo que con la solución a esto ya no tendría más Tickets, así que por favor habla con alguien que me explique cómo solucionar el asunto del botón Cancel.
October 31, 2016 at 18:50 #142250LauraModeratorHola, lo raro es que no es algo normal, quiza lo esté añadiendo un plugin, revisalo desactivando plugins hasta que se quite
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
November 1, 2016 at 02:12 #142354RoaderParticipantNo amiga Laura, el asunto es que hay algo más implicado ahí. Los Desarrolladores de SD deben saber cómo restaurar el botón Cancel en comentarios. No vale copiar el code original y reemplazar el editado. El punto es que no es práctico un texto que diga: “or press esc to cancel”, pues BP originalmente trae su botón.
November 1, 2016 at 02:14 #142355RoaderParticipantPero me gustaría que tú pruebes a ver si te funciona, y me dices si logras restaurar el botón.
November 2, 2016 at 02:05 #142482LauraModeratorHola, sweetdate no cambia el código de buddypress para esa parte, por eso te decía que puede ser otro plugin.
Instalando sweetdate desde 0 esto no ocurre, lo he probado varias veces y no me sale lo que te sale a ti, por eso sugiero probar lo que te decía en el post anterior 🙂Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
November 2, 2016 at 23:15 #142606RoaderParticipantEstimada Laura, ese problema del botón Cancel está presente incluso en el Demo, y para la versión Mobile es peor, ya que el teclado normal en pantalla no tiene botón Esc.
Attachments:
You must be logged in to view attached files.November 2, 2016 at 23:16 #142609RoaderParticipantY sí, Laura, los desarrolladores de SD cambiaron el código, puedes verificarlo tú misma comparando el original que trae BP, con el que trae el Theme. Es preciso ese botón Cancel.
November 4, 2016 at 21:52 #142905LauraModeratorHola, nosotros no hemos añadido eso, es parte de la actualización de buddypress, si quieres puedes comentarlo en los foros de buddypress, ya que nosotros no podemos cambiar eso
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
November 4, 2016 at 22:02 #142907RoaderParticipantEstimada 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(); ?>” />Attachments:
You must be logged in to view attached files.November 4, 2016 at 22:04 #142910RoaderParticipantno va, lo puse para marcar el texto aquí pero no salió.
El mismo Theme SD en la página DEMO, tiene este problema, NO hay botón Cancel, solo aparece “or press esc to cancel”, y esto es un problema ya que como te mostré, para la versión Mobile el teclado Android por defecto, NO tiene tecla Esc.November 6, 2016 at 01:50 #142997RoaderParticipantHola Laura. Observa esto.
Este código —->, original en Buddypress, ubicado en: bp-legacy / js / buddypress.js
Está ausente en: sweetdate / custom_buddypress / _inc / global.js—–>
// Canceling an activity comment
if ( target.hasClass( ‘ac-reply-cancel’ ) ) {
jq(target).closest(‘.ac-form’).slideUp( 200 );
return false;
}
});Además en sweetdate / entry.php está este código:
<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(); ?>” />Pero el original de buddypress para entry.php es:
<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(); ?>” />Y es por esta razón que el botón Cancelar comentario no está disponible en el Theme. Los desarrolladores del Theme deben reparar eso ya que el botón Cancel es muy necesario, y más para la versión Mobile del Theme.
Una solución, quizás, es desarrollar una Función js con el código Canceling an activity comment, que se ejecute desde function.php (ChildTheme).
Obviamente, el usuario deberá reemplazar: <?php _e( ‘or press esc to cancel.’, ‘buddypress’ ); Por: <?php _e( ‘Cancel’, ‘buddypress’ ); ?>
Para que funcione.
Espero que tú misma compruebes esto que te digo, para que puedas ayudarme a mí y otros usuarios que necesiten esta solución.
November 6, 2016 at 01:53 #142998RoaderParticipantCOPY CODE<input type="submit" name="ac_form_submit" value="<?php esc_attr_e( 'Post', 'buddypress' ); ?>" /> <a href="#" class="ac-reply-cancel"><?php _e( 'Cancel', 'buddypress' ); ?></a> <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
November 7, 2016 at 18:33 #143153RoaderParticipantFor RADU and others
Please look at the differences either.
This is the reason why there is no Cancel button Comment in SD Theme.SweetDate: entry.php Code —>
COPY CODE<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: entry.php Code —>
COPY CODE<input type="submit" name="ac_form_submit" value="<?php esc_attr_e( 'Post', 'buddypress' ); ?>" /> <a href="#" class="ac-reply-cancel"><?php _e( 'Cancel', 'buddypress' ); ?></a> <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
Buddypres: bp-legacy / js / buddypress.js —>
COPY CODE// Canceling an activity comment if ( target.hasClass( ‘ac-reply-cancel’ ) ) { jq(target).closest(‘.ac-form’).slideUp( 200 ); return false; } });
But, insiede sweetdate / custom_buddypress / _inc / global.js
This code does not exist. Only is: “or press esc to cancel”.I tried to fix it, but it does not work.
It’s not enough with copy, paste and replace codes.
Please help!
November 7, 2016 at 18:39 #143154RoaderParticipantRadu
A solution:
Within a script recorded function.php
which serves to call sweetdate-child-theme / cancel button folder / cancel_button_script.js
Within cancel_button_script.js put the js code that allows close the comment box when you click the Cancel button.
If you do it, please send me the php function and js code.
November 7, 2016 at 18:51 #143156RoaderParticipantOr more simple:
A function.php code + js-script
to run> “ac-cancel-reply” on commentary box.
Obviously, you need to modify entry.php also.November 9, 2016 at 17:10 #143566RaduModeratorHi,
Keep your modification in child theme theme to can have those even you update the theme.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 9, 2016 at 21:44 #143619RoaderParticipantMy friend Radu, Only I can restore the Cancel button, Please Help Me!
November 10, 2016 at 17:50 #143760RaduModeratorHi,
WE have fixed this
Please replace those files : /wp-content/themes/sweetdate/custom_buddypress/_inc/global.js with this content : http://pastebin.com/raw/xRPqRnR4
and this : /wp-content/themes/sweetdate/activity/entry.php with this : http://pastebin.com/raw/Lp0E7LD5We will include this fix in next theme update
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionNovember 10, 2016 at 22:14 #143800RoaderParticipantPlease replace those files : /wp-content/themes/sweetdate/custom_buddypress/_inc/global.js with this content : http://pastebin.com/raw/xRPqRnR4
and this : /wp-content/themes/sweetdate/activity/entry.php with this : http://pastebin.com/raw/Lp0E7LD5DOES NOT WORK :-/
Please, Try in your Localhost first!
November 10, 2016 at 22:41 #143806RoaderParticipantMaybe, there is a problem with this: <a href=”#” class=”
(Remember entry-wall.php in activity / childtheme)If it does not work, try with function.php + js code for Cancel button.
Attachments:
You must be logged in to view attached files.November 11, 2016 at 16:24 #143901RaduModeratorPlease replace the JS ! It behaves like that because the js it’s not replace on mine it works ! The files are the same as mine
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 12, 2016 at 00:50 #143954RoaderParticipantWorking in web-host. In localhost maybe… I need to install something more.
Thanks Radu.November 14, 2016 at 16:59 #144161RaduModeratorOk then
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.