Coder Social home page Coder Social logo

Comments (6)

alexeych avatar alexeych commented on May 31, 2024

API to get operator's status would be useful also to develop an own widget style (if '#lhc_status_container' code structure doesn't suite my needs).

from livehelperchat.

remdex avatar remdex commented on May 31, 2024

I suggest to have a look at this file. https://github.com/remdex/livehelperchat/blob/master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus.tpl.php it's template used for showing operator status.
Also take a look at:
http://livehelperchat.com/article/view/59
http://livehelperchat.com/article/view/60

You can override any part of chat you want.

from livehelperchat.

alexeych avatar alexeych commented on May 31, 2024

Yep, I've overwritten template that renders widget to get style I need, but the main goal is to get operator's live status change in widget (without page reload). As soon, this isn't a current feature yet, I thought It's possible to implement it in JavaScript (on website page), for example, to poll periodically some 'magic' URL, that will return an answer whether there are online operators. The only URL I found is '/index.php/xml/lists/', but seems it doesn't return operators status.

from livehelperchat.

remdex avatar remdex commented on May 31, 2024

Well, for that you will have to write your own module :) I have added enchancement tag for your issue. If you won't do it I will do it in some time :)

from livehelperchat.

alexeych avatar alexeych commented on May 31, 2024

not me, I'm not a PHP guy yet :)

from livehelperchat.

remdex avatar remdex commented on May 31, 2024

Hi,

Take a look at new chatapi module. https://github.com/remdex/livehelperchat/tree/master/lhc_web/modules/lhchatapi

from livehelperchat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.