Live customer support system Demo Signup Forums Downloads Contact

Multiple chat buttons on same page

Guides, helps, etc

Moderator: Ace

Multiple chat buttons on same page

Postby liveadmin » Sat Jun 27, 2009 12:10 am

If you need to have two chat buttons on same page (i.e. you have two accounts and there are different agents on each) you may tag the liveadmin 'span'.

To have one button on a page place this code at top:

Code: Select all
<script language="javascript" type="text/javascript" src="http://www.liveadmin.net/client/liveadmin.php?key=SITE_KEY"></script>


where SITE_KEY is the site key and this code where button should be visible:

Code: Select all
<span id='liveadmin'></span>


But if you want to add two of them with SITE_KEY_1 and SITE_KEY_2 place this at the top:

Code: Select all
<script language="javascript" type="text/javascript" src="http://www.liveadmin.net/client/liveadmin.php?key=SITE_KEY_1&tag=liveadmin_btn_1"></script>

<script language="javascript" type="text/javascript" src="http://www.liveadmin.net/client/liveadmin.php?key=SITE_KEY_2&tag=liveadmin_btn_2"></script>


and then first button using:

Code: Select all
<span id='liveadmin_btn_1'></span>


and second button using:

Code: Select all
<span id='liveadmin_btn_2'></span>


Regards
Farhad Malekpour
liveadmin
 
Posts: 101
Joined: Sat Feb 28, 2009 8:30 pm

Return to Guides and FAQs

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron