Web Hosting Talk







View Full Version : Modifying phplive


blue27
03-13-2005, 02:58 PM
This is a question for anyone who is familiar with phplive (phplivesupport.com)

Is there a way to change the link in the offline mode?

For instance, when we have live support online we want the icon to show online but when live support is offline we want to show an icon that directs people to our flash tutorials instead of the default offline email window.

Can this be done?

enis
03-13-2005, 05:31 PM
I would imagine this can be changed by simply changing the code you insert into your website. You can change the icons from within the administrator interface of phplivesupport. I have been using phplivesupport for years, and its a great product.

blue27
03-13-2005, 05:33 PM
There is nothing in the code that you insert that I can see.
Changing the icons is easy, it's changing the link they direct to that seems hard.

leslie
05-17-2005, 05:25 PM
Originally posted by blue27
This is a question for anyone who is familiar with phplive (phplivesupport.com)

Is there a way to change the link in the offline mode?

For instance, when we have live support online we want the icon to show online but when live support is offline we want to show an icon that directs people to our flash tutorials instead of the default offline email window.

Can this be done?

No code modification is required to do this. What you can do is enter some javascript in the offline message for it to redirect the page page to your flash tutorials and close the chat window.

Login to the PHP live admin area and go to "Manage Departments". Click the link next to each department that says "offline message".

For your offline message enter...

<script language=JavaScript>
url = 'url to your flash tutorials';
parent.opener.location.href=url;
parent.window.close();
</script>


What this will do is once the offline form is hit it redirects the page they opened the chat from to your flash tutorials and closes the chat window.