Okay
  Public Ticket #1888675
jquery and email
Closed

Comments

  •  3
    jennis015 started the conversation

    Hello. I have installed the theme and I have doubts.

    1. Is the jquery loaded? in my previous topic startit could visualize a custom html that calls the database and here I see error. Can I do it? 

    2. I have activated notification for new message in the mail panel, and they do not reach me. If I get new friendships ... what can it be?

    3. How can I add the code to single.php to open a chat with the author?
    Thank you!

    Jennifer

    Attached files:  1.PNG

  •  606
    François replied

    Hello, 

    Let me clear out those doubtssmile.png

    1. Yup, it's loaded by WordPress out of the box. Make sure your script is called after the jQuery script is loaded, or try to replace $ with jQuery. 

    2. Are you receiving other emails from your WordPress site? Like when a new comment is posted? 

    3. You can modify the file by duplicating it in your child theme. Then, you can add a link to the author's message page (feel free to customize the URL):

    echo '<a href="'. bp_core_get_user_domain() .'/messages">Message the author</a>;
    

    I hope that helps

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •   jennis015 replied privately
  •  606
    François replied

    Hello, 

    Regarding: 

    and if I write by chat they are not sent to the mail, as if it happens with eonet.

    Both are using BuddyPress messages as the Messaging engine. So it'll only depends on your site configuration. Woffice won't block the email sending process. 

    Whatever suits you, Eonet is also a complete theme, it's just less updated. You can get a refund from this page:https://themeforest.net/refund_requests/new 

    Have a nice day

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    jennis015 replied

    hi!

    I mean the private message by chat wise pro does not appear in sent items and that is why it is not sent by mail. Or is there something I'm doing wrong?
    I was referring to eonet having another type of messaging if that happens.
    thanks for your attention

  •   jennis015 replied privately
  •  599
    Imran replied

    Hi Jennis,

    Thanks for writing back! Yes, we are much looking forward to getting your translated file. You can use a plugin like: https://wordpress.org/plugins/email-log/ to check the email and see on BuddyPress settings how that's handled. 

    With regard to the Wise chat Pro, you will need to get in touch with their support.

    https://kaine.pl/projects/wp-plugins/wise-chat-pro/ 

    Best Regards,
    Imran.

    P.S.: Want feedback on your awesome Intranet? Get yourself a beta access on Feedier.com.

  •  3
    jennis015 replied

    Hi. thanks for the information but as I said I needed to return the woffice license that I have not been able to use and if I use eonet.How much is your return delayed?

  •   jennis015 replied privately
  •  606
    François replied

    Hello, 

    Thanks! Will be in the next updatesmile.png 

    I just proceeded with your refund request. 

    Have a nice day. 

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    jennis015 replied

    Hello ! Thank you!
    Take this opportunity to consult them:

    1 Eonet Frontend Publisher  can i add acf?

    2. the code to send message appears error page when clicking Send Message Could it be that I have to modify the permanent link?

    <?php 
    echo '<a href="'. bp_core_get_user_domain() .'/messages">Enviar Mensaje</a>';
    ?>

    regards, 

    Jennifer

  •  606
    François replied

    Hello Jennifer, 

    Thanks for your patience here. 

    1. Nope, you'd have to make changes manually to the code. 

    2. Do you have a screenshot or screencast for us? 

    Could be but I need more details to confirm and send you changes. Keep me postedsmile.png 

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    jennis015 replied

    Hi François!

    I used this code in function.php

        function bpfr_message_shortcode() {
        $user_id = get_the_author();
        $message = 'Inicia Sesión para enviar un mensaje al usuario!';

        if( is_user_logged_in() ) {
        return '<a href=" '.wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . bp_core_get_username( $user_id ) ) .' $subject="Mensaje Privado" ">Enviar Mensaje</a>';
         } else {
        return $message;
        }
        } 

        add_shortcode( 'ksam', 'bpfr_message_shortcode' );

    and this in single.php:

    <?php echo do_shortcode ('[ksam]'); ?>

    This redirects me to write new message and the selected user does not appear to me (author of the post)

    Any suggestions? Is it possible to do something to open the chat window instead of that window?

    thanks!!

    Attached files:  Captura.PNG

  •  606
    François replied

    Hello, 

    So what's the URL returned by this: 

    wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . bp_core_get_username( $user_id )
    

    It should match: 

    {site_url}/members/{current_username}/messages/compose/?r={target_username}

    If it matches this, there is no reason it won't work as it's the official link used by BuddyPress, just checked on my end. 

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    jennis015 replied

    Hi! Thanks for your answer.

    I had a problem. I can send messages through the chat but the emails do not arrive. 

    If the emails arrive when I send directly from "write". In spite of this, the messages sent from the chat appear to me in sent tray.

    It can be a javascript or jquery problem?
    Only warnings appear on the console:

    14[Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as 'passive' to make the page more responsive. See <URL>
    eo_theme.min.js?ver=1.0:9 [Violation] 'setTimeout' handler took 168ms
    [Violation] Forced reflow while executing JavaScript took 91ms

    Can you help me?

    thanks!

    Attached files:  Captura chat.PNG

  •  606
    François replied

    Hello, 

    Is it just the email which is missing? 

    Like do you see them in your BuddyPress inbox? 

    Keep me posted, we're looking into this. 

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    jennis015 replied

    Yes, exactly. I see it in the mail tray, as if I sent it from the conventional mail. even live notifications arrive but not to the mail. it's strange!

  •  606
    François replied

    Hello, 

    Sorry not sure I understand: 

    I see it in the mail tray

    Do you have any screenshot? 

    Like Eonet will handle the BuddyPress notification part, but the after this, it's all handled by WordPress. Do you receive other WordPress emails? 

    Keep me posted

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •   jennis015 replied privately
  •  606
    François replied

    Hello, 

    - Made some digging, you can enable the Emails from Profile > Settings > Email > "A member sends you a new message" > "Yes"

    https://codex.buddypress.org/administrator-guide/messages/ 

    - You can do that from the Menus page in your WordPress admin, see: 

    https://doc.alka-web.com/docs/eonet-theme/layout/menus/

    I hope that helps

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    jennis015 replied

    Hi.Thanks for the reply.

     I'm frustrated. =( This option was already activated.

     I still cant send automatic emails with each new chat conversation.When I write in the chat, a notification appears but it does not reach the email.

    All other wordpress and buddypress notifications work with email ..

    does this work with ajax? Can something to do?

  •  3
    jennis015 replied

    I clarify that I reinstalled buddypress and eonet also

  •  606
    François replied

    Hello, 

    Okay, I found the issue, can you use this in your child theme's functions.php:

    add_filter('eo_disable_email_notification_for_chat_messages', function() {
        return false;
    });

    That'll fix itsmile.png

    Have a nice day

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/

  •  3
    jennis015 replied

    you're great! it worked!

    thanks!!

  •  606
    François replied

    Awesome! Have a nice weekendsmile.png

    Kind Regards,

    François 

    Want feedback on your awesome site? Get yourself a beta access on our new product Feedier.com here: https://feedier.com/