Message & Booking function

This topic contains 15 replies, has 2 voices, and was last updated by  at4to 3 months ago.

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #33642

    at4to
    Participant

    Supported

    Hello CTHthemes,

    I have two questions.

    1. Is there any way to send message between listing authors and subscribers? Listing authors can send messages to admins. Admin also can see a message was sent from a listing user to another one (Widget Listing Author Message), but the listing user (receiver) can not see it or send/reply messages to other listing authors/subscribers. Should we have a “messages” function for all users can communicate?

    2. How to use “General Booking”, “Tour Booking” and “Widget Booking hotel”? Users can choose a date then press “Book now” button, but nothing happens, neither message/email to listing authors nor email to admin.

    TIA!

    #33650

    CTHthemes
    Keymaster

    1. Is there any way to send message between listing authors and subscribers? Listing authors can send messages to admins. Admin also can see a message was sent from a listing user to another one (Widget Listing Author Message), but the listing user (receiver) can not see it or send/reply messages to other listing authors/subscribers. Should we have a “messages” function for all users can communicate?

    –> Hello, currently you can use chat feature.

    2. How to use “General Booking”, “Tour Booking” and “Widget Booking hotel”?
    –> Please use General Booking instead of others.

    Users can choose a date then press “Book now” button, but nothing happens, neither message/email to listing authors nor email to admin.

    –> did you enable new booking email on Settings -> CityBook Add-Ons -> Emails tab?

    #33654

    at4to
    Participant

    Supported

    Hello CTHthemes,

    1. –> Hello, currently you can use chat feature.
    I mean a new “message feature” between listing users. The “chat feature” can be used for chatting with admin only.

    2. –> Please use General Booking instead of others.
    Yes, I’ve tried them all from several versions. But none of them are working, even with the new General Booking.

    –> did you enable new booking email on Settings -> CityBook Add-Ons -> Emails tab?
    Yes, I did, but still not working.

    #33678

    CTHthemes
    Keymaster

    Ok, it will be improved in the next update

    #33902

    at4to
    Participant

    Supported

    Hopefully you will add this Message function to the new version, so that all listing users can send messages soon. TIA!

    #33954

    CTHthemes
    Keymaster

    Sure, please wait ( new version will be release next week )

    #34119

    at4to
    Participant

    Supported

    Hello,
    The latest update makes me a bit confused the name of “Chats” & “Messages”.
    “Chats” is like normal inbox. It means a registered user (subscriber) can send messages (or chat) to other listing authors who have listings.
    “Messages” is for sending to admin only.
    Am I right? 🙂

    Can we also translate “chats” and the greeting “Hello, I am author of … May I help you?” in Inbox?
    TIA!

    #34131

    CTHthemes
    Keymaster

    “Chats” is like normal inbox. It means a registered user (subscriber) can send messages (or chat) to other listing authors who have listings.

    –> Yes, register user can chat with listing author ( when viewing single listing page ). He can also chat with site owner.

    “Messages” is for sending to admin only.
    –> No, sending to listing author only. And you have to use Send message to author element. http://prntscr.com/og6ed9

    Can we also translate “chats” and the greeting “Hello, I am author of … May I help you?” in Inbox?

    –> Yes, Sync new strings from .pot file then translate it. https://docs.cththemes.com/docs/advance-features/theme-and-plugin-translations/theme-update/

    #34136

    at4to
    Participant

    Supported

    Another question. Every time a user clicks on it inadvertently, it will send the greeting message (Hello, I am …. May I help you?) to admin or listing authors. It’s really a noise because the user has no question yet.

    Can we somehow turn off the default greeting message? Or turn the Chat Box off on all sites, but still keep it in the user dashboard only, so that users still can read and reply message around.

    • This reply was modified 3 months ago by  at4to.
    #34139

    at4to
    Participant

    Supported

    One more thing, when you receive messages from several users (like the admin), the newest chat messages of a user, who sent chat message to you in the past, do not show up. He can see his chat messages in his Inbox, but you can not.

    #34160

    CTHthemes
    Keymaster

    Can we somehow turn off the default greeting message? Or turn the Chat Box off on all sites, but still keep it in the user dashboard only, so that users still can read and reply message around.

    –> Delete this code (from CityBook Add-Ons plugin ): http://prntscr.com/ogmbrt

    One more thing, when you receive messages from several users (like the admin), the newest chat messages of a user, who sent chat message to you in the past, do not show up. He can see his chat messages in his Inbox, but you can not.

    –> Would you provide more details?

    #34164

    at4to
    Participant

    Supported

    Hi,
    I rethink that “turn off all chat box” is not a good idea, because users can not find where/how to contact a listing author. From my opinion, “Chats” is still better than “Messages” because it show history of messages, which is very useful. But both “Chats” & “Messages” have no email or any whatsapp/Viber/Facebook notification yet, which is still a weak point, because users can not check their listing service every hour/day.

    Back to the problem with several chat messages. I think if we can turn off the greeting message and sort the list of users in chat box show up based on time of the newest message, instead of time of the first chat message, then the problem is solved. You can see several greeting message in the chat inbox of admin (capture 1), so that a user, who contacted admin in the past, can not show up his message in admin’s chat box. He still can see them in his chat box (capture 2), but admin can not see him.

    #34201

    CTHthemes
    Keymaster

    1 – Try this code: http://prntscr.com/oh4opf
    add_action( 'cth_chat_reply_after',array( __CLASS__, 'chat_reply_email' ), 10, 1 );

    and http://prntscr.com/oh4p2a

    
    public static function chat_reply_email($reply_obj){
            // get to user
            $to_user = $reply_obj['uid'];
            if( $reply_obj['user_one'] != $reply_obj['current_user'] ){
                $to_user = $reply_obj['user_one'];
            }
    
            $receiver = get_userdata( $to_user );
            $replyer = get_userdata( $reply_obj['current_user'] );
    
            $temp_args = array(
                'receiver'          => $receiver->display_name,
                'reply_text'             => $reply_obj['reply'],
                'date'              => current_time( get_option( 'date_format' ) ),
                'replyer'           => $replyer->display_name,
            );
            $email_template = self::process_email_template( 
                '<p style="text-align: left;">Hello {receiver},</p>
    <p style="text-align: left;">{replyer} has just replied you on {site_title}</p>
    <p style="text-align: left;">-------------------------</p>
    <p style="text-align: left;">{reply_text}</p>
    <p style="text-align: left;">-------------------------</p>
    <p style="text-align: left;">Please login to view details.</p>', 
                $temp_args
            );
    
            $headers = array( 'Reply-To: '.$replyer->display_name .' ' . '<'.$replyer->user_email.'>' );
            self::do_wp_mail( $receiver->user_email, 'Chat reply', $email_template, $headers);
        }
    

    2, did you mean can not scroll to view all contacts?

    #34209

    at4to
    Participant

    Supported

    Hi,
    1. Thanks! I will try the code.

    2. Still scroll down to view the last 20 contacts. But the important thing is if a sender is not in the last 20 contacts, his chat messages will not been seen.

    #34214

    CTHthemes
    Keymaster

    2 – All contacts will be showing next update.

    #34222

    at4to
    Participant

    Supported

    2- And could you please sort the contacts based on the newest messages first, and user also can delete a conversion with a contact, like he can delete messages.

Viewing 16 posts - 1 through 16 (of 16 total)

You must be logged in to reply to this topic.

New featues: CityBook - Listing & Directory WordPress Theme version 2.1.8 was outUpdate now
+