Live Helper Chat support forum.. Forum is locked. New place for questions - Github Discussions
You are not logged in.
Pages: 1
Hello,
I have made simple extension using mostly JS which displays some recommendations after user votes in chat. I would like to get some configuration using AJAX call. All I want to do is to get JSON object with my config dependent on current chat from server. I was not able to figure out how does aplication framework work for these cases.
I have tried to trace core ajax calls, for example 'chat/syncusers' in my plugin structure, but when I try to call my extensions URL (http://domain.net/index.php/cse/PLUGINm … /getconfig), I am redirected to homepage.
Remdex, could you please give me some clue how to structure my plugin? I have not found any similar situation in your extensions github repository.
Thanks a lot!
Offline
Hi,
Take a look at this extension.
https://github.com/LiveHelperChat/osTicket it has single module https://github.com/LiveHelperChat/osTic … lhosticket
And url this extension get is
osticket/createanissue
Also https://github.com/LiveHelperChat/osTic … module.php module file defines what permisions has to have user to be able to access this URL. To allow everyone access module url https://github.com/LiveHelperChat/osTic … le.php#L11 just remove this line.
That's all, hope it helps
Offline
Thank you, this should save me a lot of time
Offline
Pages: 1