Announcement

Collapse
No announcement yet.

Dynamic Live chat Image query

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dynamic Live chat Image query

    Hi all,

    Im designing my own custom site at the moment, and am wondering if anyone who has designed their own site can help me with this.

    I am trying to show when the live chat is online or offline in my site. I know i'll need two images (online and offline), but how do i use HTML to show the correct image?

    Also, can you please include the links for opening the chat window too?

    Thanks in advance for any help!
    Last edited by Chameleon; 23-04-2007, 01:05 AM. Reason: Extra info required

  • #2
    Yea, I had a huge problem with that and couldn't get it to work. So I just gave up as RSP didn't know how to do it.

    Comment


    • #3
      hmm I seemed to have gotten mine working good on my custom design. Check out the hosting page on my site. I just used one code and changed the id number/name on the code to my account and it worked.

      Regards,

      Comment


      • #4
        I think you need 3 images, live chat online image, live chat off-line image and a busy image.

        Comment


        • #5
          Actually you won't be able to check the live chat status by simply using the java script that polls the server, as the live chat really never goes offline (the status).

          You will have to implement a timer script that manually toggles the live chat buttons based on the hour.

          However, I don't think RSP are to happy with resellers using the live chat on custom stores so you might as well let it go.

          Comment


          • #6
            Use this code bellow changing what is in red:

            Code:
            <!-- Start LiveChatNow.Com Chat Window -->
             
            <script type="text/javascript">
            function _cln_enter()
            {
                window.open('http://secure.hostinglivechat.com/lcn/js/enter.php?site_id=&amp;url=&amp;refer=&amp;name=&amp;email=&amp;skin=&amp;user=&amp;uid=[COLOR=red]12345[/COLOR]&amp;sid=&amp;op=&amp;ip=&amp;group=rclients&amp;q=&amp;track=','_chat_livechatnow','resizable=yes,menubar=no,scrollbars=no, width=, height=');
                 return false;
            }
            document.write("<a href='[COLOR=red]http://www.your-site.com[/COLOR]' onclick='_cln_enter(); return false;';><img src='http://secure.hostinglivechat.com/lcn/img/img.php?site_id=&amp;img=url&amp;online=http%3A%2F%2F[COLOR=red]www.your-site.com[/COLOR]%2Fimages%2Flivechat_online.gif&back5=http%3A%2F%2F[COLOR=red]www.your-site.com[/COLOR]%2Fimages%2Flivechat_busy.gif&amp;offline=http%3A%2F%2F[COLOR=red]www.your-site.com[/COLOR]%2Fimages%2Flivechat_offline.gif&url=&amp;refer=&group=rclients&t=" + (new Date()).getTime() + "' width=180 height=120 border=0><\/a>");
            </script>
            <!-- End LiveChatNow.Com Chat Window -->
            <!-- Start LiveChatNow.Com Monitoring -->
            <script language='javascript' type='text/javascript' src='http://secure.hostinglivechat.com/lcn/js/js.php?site_id=&amp;img=url=&amp;uid=[COLOR=red]12345[/COLOR]&amp;refer=&amp;group=rclients'></script>
            <script language='javascript' type="text/javascript">
            <!--
            _lcn_reload(0);
            // -->
            </script>
            <!-- End LiveChatNow.Com Monitoring -->
            The uid should be replaced with your uid number, thats the ID number after the telephone number on the template site.

            Your three images should be named as bellow and placed in your images directory:

            livechat_online.gif

            livechat_busy.gif

            livechat_offline.gif
            Last edited by The Loon; 23-04-2007, 10:55 PM.

            Comment


            • #7
              Originally posted by JohnQ View Post
              Actually you won't be able to check the live chat status by simply using the java script that polls the server, as the live chat really never goes offline (the status).

              You will have to implement a timer script that manually toggles the live chat buttons based on the hour.

              However, I don't think RSP are to happy with resellers using the live chat on custom stores so you might as well let it go.
              I often see the status off-line when I'm working on my site in the early hours of the morning and have regularly seen it busy.
              Last edited by The Loon; 23-04-2007, 09:56 PM.

              Comment


              • #8
                Well OK, but that is what I was told and I also discovered it myself while I was implementing the live chat. They might have changed it now, though.

                Anyway, in the code above you should also replace the reseller ID with your own ID, as I think it is used to keep track of which reseller's site the live chat visitor came from.

                Comment


                • #9
                  Originally posted by JohnQ View Post
                  in the code above you should also replace the reseller ID with your own ID, as I think it is used to keep track of which reseller's site the live chat visitor came from.
                  Quite right, I forgot about that, I have edited the code above to reflect that.

                  Comment


                  • #10
                    That's awesome! Thanks loon.

                    I'll just go and implement it and post here if i have any troubles with it.

                    Comment


                    • #11
                      ok, i added the code to a new custom joomla module, made the changes required after adding HTML code, but nothing has come up on the site side of things.

                      The images are named as per what you stated, and are uploaded to the sites images directory.

                      Any idea's what's gone wrong?

                      Comment


                      • #12
                        do not forget to published your user module..in case you forgot

                        Comment


                        • #13
                          It was published. Thanks for the reminder though.

                          Comment


                          • #14
                            ive got the same problem here
                            i use frontpage .... ive uploaded the images to the images directory and made all the change to the html code....... but i dont see anything

                            anyone knows y??

                            Comment


                            • #15
                              Nice tip thanks for the code Loon.

                              Comment

                              Working...
                              X