WordPress.org

Forums

Quick Chat
[resolved] Custom chat box (5 posts)

  1. Onimousse
    Member
    Posted 3 years ago #

    Hello,

    How can I remove the avatar and the hour when someone send a quick message in the chat box?
    I don't want show this information :)

    Thank you in advance

    http://wordpress.org/extend/plugins/quick-chat/

  2. Dar_Kuntu
    Member
    Posted 3 years ago #

    Hi!

    To remove the (gr)avatar is a built-in function of the widget. So go to your widgets, open the widget area where your quick chat widget is placed and there under its settings uncheck the box "show avatars".

    For removing the hour I only have a kinda dirty way to remove the whole timestamp. Therefore go into your quick-chat.css and find the string

    /* Message time, applies to all messages */
    div.quick-chat-history-timestring{display:none; font-style:italic; margin: 0; padding: 0;}

    add the display:none; to your entry (see above)

    Hope I could help a bit ;)

    Best regards

  3. Onimousse
    Member
    Posted 3 years ago #

    Hi Dar_Kuntu

    Thank you so much for your help :)
    I would like just remove the hour do you think it's possible?

    Best regards

  4. Marko-M
    Member
    Plugin Author

    Posted 3 years ago #

    Hello,
    sorry for not answering to support emails and questions I'm quite ill and most of the time I'm not able to help. You can read more on my blog post here.

    It's hard for me to see that someone needs help and do nothing about it so here it is :)

    All Dar_Kuntu wrote about hiding timestamp and avatar is correct (thanks Dar_Kuntu). If you need to hide only hour and leave date you'll need to modify quick-chat.php file like this:

    1. You will find two occurrences of the following line inside quick-chat.php

    $v->timestring = date_i18n($quick_chat_date_format.' - '.$quick_chat_time_format, $v->unix_timestamp+($quick_chat_gmt_offset* 3600));

    2. To hide only hour and leave date just replace that line with the following:

    $v->timestring = date_i18n($quick_chat_date_format, $v->unix_timestamp+($quick_chat_gmt_offset* 3600));

    Good luck!

  5. Onimousse
    Member
    Posted 3 years ago #

    Hello,

    Thank you so much for your help! It's worked well.

    Good recovery :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Quick Chat
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags