How to automatically connect/pass-through an authenticated website visitor to a LiveSupport chat session?

Last post 11-05-2011, 4:13 PM by iceflow. 8 replies.
Sort Posts: Previous Next
  •  06-02-2011, 9:32 PM 67793

    How to automatically connect/pass-through an authenticated website visitor to a LiveSupport chat session?

    My website is an web application where all users (Agencies) are authenticated using asp .net membership.
     
    I only use the LiveSupport so that the users at the Agencies can request support from staff at our head office.
     
    Currently, when users click the [Click to Live Support], they have to fill in the details, and from there they can chat.
     
    I would like to have users be connect straight through to the LiveSupport operators without filling in details (which I know btw).
     
    What is the best way to do this? BTW, I have been looking at the CuteChat/SupportClient.aspx file to see how this works so I could probably try to hack it, though I wanted to get your opinion first.
     
    Also, the suggested way to add button:
    <script src="http://cutesoft.net/CuteSoft_Client/CuteChat/Support-Image-Button.js.aspx"></script>
     Does not work when I add this inside an .aspx page. Please advise also.
     
    Thanks,
        
    Pat.
     
     
     
     
  •  06-03-2011, 3:24 AM 67795 in reply to 67793

    Re: How to automatically connect/pass-through an authenticated website visitor to a LiveSupport chat session?

    Hi pjs75,
     
    Question #1
     
    1. Open file "\CuteSoft_Client\CuteChat\SupportClient.aspx" .
     
    2. Add the code below to the bottom of the page above.
     
        <script>
        window.onload=function()
        {
          var input_name=document.getElementById("input_name");
          //set the user name here
            input_name.value="ken";
            call_submit_form();  
        }
        
        </script>
     
    3. Now the page will set the requirement directly.
     
    4. The only thing you need to set just input_name.value="ken";
     
    you can use a default value like me. Or set it dynamically yourself.
     
     
    Question #2
     
    <script src="http://cutesoft.net/CuteSoft_Client/CuteChat/Support-Image-Button.js.aspx"></script>
     
    Change the red part  to your site url.
     
     
    regards,
     
    ken
  •  06-06-2011, 6:49 PM 67828 in reply to 67795

    Re: How to automatically connect/pass-through an authenticated website visitor to a LiveSupport chat session?

    Thanks that all worked perfectly!
     
    Pat.
  •  06-10-2011, 6:20 AM 67894 in reply to 67795

    Re: How to automatically connect/pass-through an authenticated website visitor to a LiveSupport chat session?

    Hi Ken
     
    In the process of evaluating the product and have the following set-up requirements.
     
    I have one instance of DNN installed with  3 Parent Portals;
     
    • Company A
    • Company B
    • Company C
    We have operators that look after specific companies or a combination of them.
     
    For example for unauthenticated users I do not want a visitor to have to specify a Category as I want operators dedicated for Company A to automatically que requests for Company A operators without specifying the Department in the drop down.
     
    For example for authenticated users I do not want users to complete any form but just pickup their DNN user name and email etc. I also want only operators dedicated to Company A to que requests automaticaly for Company A only.
     
    I have not looked at the sourcefiles just yet but would I be able to achieve this with your suggested solution to question 1 above?
     
    Regards,
    Joffies
  •  06-13-2011, 4:00 AM 67917 in reply to 67894

    Re: How to automatically connect/pass-through an authenticated website visitor to a LiveSupport chat session?

    Hi Joffies,
     
    #1 
     
    Add the code below to the bottom of page "CuteSoft_Client\CuteChat\SupportClient.aspx". Now the require window will always select the first department.
     
    Use this simple logic, you can specify the department for the user.
     
    <script>
    window.onload=function()
    {
        var input_department=document.getElementById("input_department");
        input_department.selectedIndex=1;
    }
    </script>
     
     
     
    #2
     
    You can use the same way above to achieve it.
     
    regards,
     
    Ken
  •  06-14-2011, 9:37 AM 67954 in reply to 67795

    Re: How to automatically connect/pass-through an authenticated website visitor to a LiveSupport chat session?

    Hi Ken,
     
    I have used your code as I am trying to achieve something very similar
     
        <script>
        window.onload=function()
        {
          var input_name=document.getElementById("input_name");
          //set the user name here
            input_name.value="ken";
            call_submit_form();  
        }
        
        </script>
     
     
    The script worked great but i need to do this dynamically, could you provide me with some code to achieve this?
     
     All the best
     
    Mike 
     
  •  06-14-2011, 9:31 PM 67962 in reply to 67954

    Re: How to automatically connect/pass-through an authenticated website visitor to a LiveSupport chat session?

    Hi Mike,
     
    You can get the authenticated user information in C# code or behind
     
    For example,
    1. in C# code
     public User user = YOUR OWN METHOD TO GET AUTHENTICATED USER
     
     
    2. in .aspx page 
    <script>
        window.onload=function()
        {
          var input_name=document.getElementById("input_name");
          //set the user name here
            input_name.value='<%= user.UserName %>';
            call_submit_form();  
        }   
        </script>
         
         you can set the Email address by the same way.
     
    Regards,
    Jeff
  •  06-20-2011, 8:49 AM 68048 in reply to 67962

    Re: How to automatically connect/pass-through an authenticated website visitor to a LiveSupport chat session?

    Hi Jeff,
     
    Thank you for your reply . 
     
    I  solved this by passing the variable in the URL 
     
    All the best
     
     
    Mike 
  •  11-05-2011, 4:13 PM 71120 in reply to 68048

    Re: How to automatically connect/pass-through an authenticated website visitor to a LiveSupport chat session?

View as RSS news feed in XML