1. This sub-forum relates to Kayako 3, which is now end-of-life. Please be aware that a lot of information relating to features, sales and the roadmap in the Kayako 3 forums is now outdated or defunct (no longer applicable).

    If unsure about anything, please create a new thread or contact us.

    You can visit the main forums for the latest Kayako here.

Make SupportSuite work under SSL

Discussion in 'Modifications, extensions and addons' started by B00MER, Sep 18, 2006.

  1. B00MER

    B00MER New Member

    Fix

    Scenerio, kayako installed under subdir /support/ off public_html

    Edit modules/livesupport/visitor_htmlcode.php

    Locate:

    PHP:
    ob_start();
    BEFORE this line add:

    PHP:
    $_SWIFT["swiftpath"] = "/support/";
    Next locate:

    PHP:
    $proactivetmpl $template->displayTemplate("proactivechatdiv");
    Change this line to:

    PHP:
    $proactivetmpl eregi_replace('http://www.yourdomain.com/support/',"/support/",$template->displayTemplate("proactivechatdiv"));
    Next locate:

    PHP:
    document.write("<?php echo addslashes(str_replace("\n"""str_replace("\r\n""\n",$template->displayTemplate("chatimage")))); ?>");
    Change this line to:

    PHP:
    document.write("<?php echo addslashes(str_replace("\n"""str_replace("\r\n""\n",eregi_replace('http://www.yourdomain.com/support/',"/support/",$template->displayTemplate("chatimage"))))); ?>");
    Also be sure you are using https within the JS include statement that you've pasted anywhere:
    Code:
    <!-- Begin SupportSuite Javascript Code -->
    <script language="javascript" src="https://www.yourdomain.com/support/visitor/index.php?_m=livesupport&_a=htmlcode"></script>
    <!-- End SupportSuite Javascript Code -->
    This should cause the JS to load over HTTPS, and any subsequent image requests from within visitor_htmlcode.php that the above script src includes to be rewritten to just /support/ instead of http://www.yourdomain.com/support/ making the Mixed HTTP/HTTPS errors disappear.

    NOTE, obviously your going to want to change www.yourdomain.com and support to your relative kayako installation domain and directory.

    Hope this helps anyone out, until Kayako can come up with a better out of box resolution. :D
  2. Jamie Edwards

    Jamie Edwards Chief Limey Staff Member

    Post copied to a new thread, thank you boomer :)
  3. bear

    bear Reputed Member

    Agreed, this was a great fix. Thanks Boomer!

Share This Page