Post by Wrighty on Apr 11, 2007 14:14:50 GMT -5
So here goes... Self explaniatory really... Adds a box to the bottom of the IC showing who is currently chatting. Just fill in the info at the top of the code!
NOTE: This is a Campina Line EXCLUSIVE Code
Preview: None
Placement: Main Footer
NOTE: This is a Campina Line EXCLUSIVE Code
Preview: None
Placement: Main Footer
<div id="cchat" style="display: none;">
<script type="text/javascript">
<!--
/* Users in Chat
Created By Wrighty
For Campina Line ONLY. Please do not repost.
http://campinaline.proboards83.com
*/
var chatid = "186263"; //Your Chat id - Admin Panel, Live Chat Settings, 6 digit (Numerical) AddonChat Account ID.
var bgcolor = "FEFEFE"; //Background colour of iFrame
var namecol = "52B1F0"; //Colour of names of people chatting
var face = "verdana"; //Font of names of people chatting.
var height = "50"; //Height of Iframe
var width = "400"; //Width of Iframe
var sectionTitle = "Currently Chatting"; //Name of IC Section
var iconURL = "http://s4.images.proboards.com/online.gif"; //Icon to Show in IC
document.write ('<iframe width=' + width + ' height=' + height + ' frameborder=0 scrolling=no src=http://client0.addonchat.com/scwho.php?id=' + chatid + '&port=0&style=2&color_username=' + namecol + '&color_bg=' + bgcolor + '&font_face=' + face + '></iframe></div>');
//Attach to IC code by cali
var curchat= document.getElementById("cchat").innerHTML;
var tr = document.getElementsByTagName("tr");
if(location.href.match(/com\/?((index\.cgi)?\??(action=(logout|home))?(#.+)?)?$/)){
for(i=tr.length-1;i>0;i--){
if(tr[i].cells[0].innerHTML.match("Users Online") && tr[i].cells[0].className=="catbg"){
with(tr[i].parentNode.insertRow(tr[i].parentNode.rows.length).insertCell(0)){
className="catbg";
align="left";
colSpan="2";
style.fontWeight="bold";
style.fontSize="12px";
appendChild(document.createTextNode(sectionTitle));
}
var iconImg=new Image();
iconImg.src=iconURL;
var row2=tr[i].parentNode.insertRow(tr[i].parentNode.rows.length);
with(row2.insertCell(0)){
className="windowbg";
align="center";
vAlign="middle";
width="20";
appendChild(iconImg);
}
with(row2.insertCell(1)){
className="windowbg2";
style.fontSize="11px";
innerHTML=curchat;
}break;}}}
// -->
</script>