This topic has 26 replies, 3 voices, and was last updated 8 years by Radu.

  • Author
  • #140206
     Roader
    Participant

     

    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.
    #140452
     Laura
    Moderator

    Hi,

    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 solution

    Laura 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 🙂

    #142002
     Roader
    Participant

    Por 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' ); ?>" /> &nbsp; <?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' ); ?>" /> &nbsp; <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.

    #142250
     Laura
    Moderator

    Hola, 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 solution

    Laura 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 🙂

    #142354
     Roader
    Participant

    No 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.

    #142355
     Roader
    Participant

    Pero me gustaría que tú pruebes a ver si te funciona, y me dices si logras restaurar el botón.

    #142482
     Laura
    Moderator

    Hola, 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 solution

    Laura 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 🙂

    #142606
     Roader
    Participant

    Estimada 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.
    #142609
     Roader
    Participant

    Y 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.

    #142905
     Laura
    Moderator

    Hola, 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 solution

    Laura 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 🙂

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

    Attachments:
    You must be logged in to view attached files.
    #142910
     Roader
    Participant

    no 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.

    #142911
     Roader
    Participant

    No va strong> …

    #142997
     Roader
    Participant

    Hola 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.

    #142998
     Roader
    Participant
    COPY CODE
    <input type="submit" name="ac_form_submit" value="<?php esc_attr_e( 'Post', 'buddypress' ); ?>" /> &nbsp; <a href="#" class="ac-reply-cancel"><?php _e( 'Cancel', 'buddypress' ); ?></a>
    						<input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
    #143153
     Roader
    Participant

    For 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’ ); ?>” />&nbsp;  <?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' ); ?>" /> &nbsp; <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!

    #143154
     Roader
    Participant

    Radu

    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.

    #143156
     Roader
    Participant

    Or more simple:

    A function.php code + js-script
    to run> “ac-cancel-reply” on commentary box.
    Obviously, you need to modify entry.php also.

    #143566
     Radu
    Moderator

    Hi,

    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 solution
    #143619
     Roader
    Participant

    My friend Radu, Only I can restore the Cancel button, Please Help Me!

    #143666
     Roader
    Participant

    Waiting for reply (solution)

    #143760
     Radu
    Moderator

    Hi,

    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/Lp0E7LD5

    We 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 solution
    #143800
     Roader
    Participant

    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/Lp0E7LD5

    DOES NOT WORK :-/

    Please, Try in your Localhost first!

    #143806
     Roader
    Participant

    Maybe, 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.
    #143901
     Radu
    Moderator

    Please 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 solution
    #143954
     Roader
    Participant

    Working in web-host. In localhost maybe… I need to install something more.
    Thanks Radu.

    #144161
     Radu
    Moderator

    Ok 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
Viewing 27 posts - 1 through 27 (of 27 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?