• Resolved CrazySerb

    (@crazyserb)


    When “Business Hours” are disabled, clicking on the chat icon brings this up:

    https://prnt.sc/ppl893

    But when we enable Business Hours, in off-hours clicking on that chat icon brings up the similar box but ONLY with the heading (“Offline Form Title” from the Offline Messages setting), but no sub-heading. Can you add one in there, and in the backend admin so that we can specify additional text / instructions on what/how to do in that case (in place and format of the highlighted text above)?

    Should be an easy addition.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter CrazySerb

    (@crazyserb)

    Easy fix on my end was replacing this:

    $wplc_tl_msg = "<span class='wplc_offline'>" . ($wplc_using_locale ? $wplc_na : stripslashes($wplc_settings['wplc_pro_na'])) . "</span>";

    with this:

    $wplc_tl_msg = "<div class='wplc_offline'><strong>" . ($wplc_using_locale ? $wplc_na : stripslashes($wplc_settings['wplc_pro_na'])) . "</strong> " . ( $wplc_using_locale ? $wplc_offline1 : stripslashes($wplc_settings['wplc_pro_offline1'])) ."</div>";

    in wp-live-chat-support.php, line 1972.

    That should do it, and that’s all I’d need.

    Feel free to incorporate that into the live version somehow, if possible.

    Plugin Author wordpress3cx

    (@wordpress3cx)

    Thanks @crazyserb, you’re right, custom strings were missing there. Merging your fix for next release.

    Thread Starter CrazySerb

    (@crazyserb)

    I did add some replication with that though, as now that text shows up twice on the full expanded chat window, because of the code on lines 1794-1797:

    $text = ($wplc_using_locale ? $wplc_offline : stripslashes($wplc_settings['wplc_pro_offline1']));
    $ret_msg = "<div id=\"wp-live-chat-2-info\" class=\"wplc-color-bg-1 wplc-color-2\">";
    $ret_msg .= $text;
    $ret_msg .= "</div>";

    I just commented that part out for now, but I’m sure you can make that prettier than my quick hack job there…

    Thread Starter CrazySerb

    (@crazyserb)

    Also, another “bug” – in Chat Box -> Picture section, removing the image and saving that form does nothing – the image comes back to what it was previously:

    https://prnt.sc/pplupq

    Can you fix that, and maybe add a check for whether that image is defined or not in order to display the “wplc_hovercard_content_left” / “wplc_left_logo” class divs in the code itself? Because we’re trying to get rid of that image and get the text to display full width instead. I mean, I can do it through CSS by hiding and forcing things, but… you know, it would be nice if it worked as it should right out of the box.

    Thanks!

    Plugin Author wordpress3cx

    (@wordpress3cx)

    Hello @crazyserb, we’ll look into this issue. Suggestions about layout improvements are always welcome. Thanks for your help!

    Plugin Author wordpress3cx

    (@wordpress3cx)

    Hello @crazyserb, issues you reported have been fixed in new version 8.1.3. Give us some feedback!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add sub-text to Offline Button…’ is closed to new replies.