The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    Chatbox v2 not working

    msedgley
    msedgley
    Forumember


    Female Posts : 618
    Reputation : 35
    Language : English
    Location : UK

    Solved Chatbox v2 not working

    Post by msedgley Wed 9 Nov - 3:22

    My chat box v2.0 does not work all i get is script on my front page here are the codes i entered in my forum. i followed the tutorial and does not work script comes up as you can see here www.rateoffire.com please help

    This code was entered in the html pages
    as stated to
    Code:
    var cb_new=1;
    var cbmp3='http://bit.ly/rupblD';
    jQuery(document).ready(function(){
    jQuery('body').append('<span id="cbalarm"></span>');
    });
    jQuery('body').append('<div style="border-top: 7px solid yellow;border-left: 7px solid yellow; border-radius: 20px 0 0 0; z-index: 10000; -moz-border-radius: 20px 0 0 0; -webkit-border-radius: 20px 0 0 0; background-color: black; position: fixed; bottom: 0px; right: 0px;" onMousever="stopINT()" onClick="stopINT()" onClick="stopINT()" onMouseOut="stopINT()" id="chatbox_ret_cont"><div style="font-size: 12px; font-family: \'trebuchet ms\', serif; cursor: pointer; padding: 3px;"  onClick="(document.getElementById(\'chatbox_ret\').style.display==\'block\')?my_setcookie(\'chatbox_ret\',\'0\',0,0):my_setcookie(\'chatbox_ret\',\'1\',0,0); jQuery(\'#chatbox_ret\').toggle(\'normal\');"><span style="color:black" id="chat1">ChatBox</span><span id="chat2"></span></div><iframe src="/chatbox/index.forum" id="chatbox_ret" name="chatbox_ret" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="width: 740px; height: 400px; display: none;" onLoad="if(cb_new) { cb_start(); cb_new=0; }"></iframe></div>')
    if(parseInt(my_getcookie('chatbox_ret'))==1) document.getElementById('chatbox_ret').style.display='block';
    if(!document.getElementById('i_icon_mini_login')){var oldCCB;var oldDCB;var pageTitle=document.title; var INTCB;function stopINT(){ if(INTCB!=undefined){clearInterval(INTCB);document.title=pageTitle;} return true;} function checkCB(){ if(parent.chatbox_ret.connected){ if(parent.chatbox_ret.document.getElementById('chatbox_members').childNodes.length==2) { if(parent.chatbox_ret.document.getElementById('chatbox_members').childNodes[0].className=='member-title away') { document.getElementById('chat1').innerHTML="Chat";document.getElementById('chat2').innerHTML="Box"; } else { document.getElementById('chat2').innerHTML="Box";document.getElementById('chat1').innerHTML="Chat"; } } else if(parent.chatbox_ret.document.getElementById('chatbox_members').childNodes.length>2) { document.getElementById('chatbox_ret_online').innerHTML=parent.chatbox_ret.document.getElementById('chatbox_members').childNodes[1].childNodes.length;document.getElementById('chatbox_ret_offline').innerHTML=parent.chatbox_ret.document.getElementById('chatbox_members').childNodes[5].childNodes.length; }
     parent.chatbox_ret.document.getElementById('refresh_auto').checked=true; var newDCB= parent.chatbox_ret.document.getElementById('chatbox').childNodes[ parent.chatbox_ret.document.getElementById('chatbox').childNodes.length-1].firstChild.innerHTML; if(newDCB!=oldDCB){oldDCB=newDCB;var newCCB= parent.chatbox_ret.document.getElementById('chatbox').childNodes[ parent.chatbox_ret.document.getElementById('chatbox').childNodes.length-1].childNodes[2].innerHTML; stopINT();if(newCCB!=oldCCB){ oldCCB=newCCB; jQuery('#cbalarm').html('<object id="cbalarm" type="application/x-shockwave-flash" data="http://tinyurl.com/minidew-fa" width="0" height="0" style="visibility:hidden"><param name="movie" value="http://tinyurl.com/minidew-fa" /><param name="flashvars" value="mp3='+cbmp3+'&autoplay=1" /></object>');INTCB=setInterval("document.title=(document.title==pageTitle)?'!!! New Message !!!':pageTitle;",500); setTimeout('stopINT()',300000);}}}else {  stopINT();}} function cb_start() { if(parent.chatbox_ret.connected) { oldDCB= parent.chatbox_ret.document.getElementById('chatbox').childNodes[ parent.chatbox_ret.document.getElementById('chatbox').childNodes.length-1].firstChild.innerHTML;oldCCB= parent.chatbox_ret.document.getElementById('chatbox').childNodes[ parent.chatbox_ret.document.getElementById('chatbox').childNodes.length-1].childNodes[2].innerHTML; } else { oldDCB=''; oldCCB=''; } setInterval('checkCB()',1000); parent.chatbox_ret.onfocus= parent.chatbox_ret.onkeypress= parent.chatbox_ret.onclick= parent.chatbox_ret.onblur=stopINT;}}

    This is posted in css

    Code:
      .resize_process img.resize_img {
            display: inline;
            }

    msedgley
    msedgley
    Forumember


    Female Posts : 618
    Reputation : 35
    Language : English
    Location : UK

    Solved Re: Chatbox v2 not working

    Post by msedgley Wed 9 Nov - 3:28

    they are if you look now i was just trying again
    msedgley
    msedgley
    Forumember


    Female Posts : 618
    Reputation : 35
    Language : English
    Location : UK

    Solved Re: Chatbox v2 not working

    Post by msedgley Wed 9 Nov - 3:32

    msedgley
    msedgley
    Forumember


    Female Posts : 618
    Reputation : 35
    Language : English
    Location : UK

    Solved Re: Chatbox v2 not working

    Post by msedgley Wed 9 Nov - 3:34

    yep all my other html pages work fine, would you be able to take a look via my admin as i see you did the v2 chat box tutorial please
    msedgley
    msedgley
    Forumember


    Female Posts : 618
    Reputation : 35
    Language : English
    Location : UK

    Solved Re: Chatbox v2 not working

    Post by msedgley Wed 9 Nov - 3:43

    like stated above, the first one in the html page i made for it and the small one as a new widget like stated in the tutorial
    avatar
    Guest
    Guest


    Solved Re: Chatbox v2 not working

    Post by Guest Wed 9 Nov - 7:51

    You forgot <script> tag:
    Code:
    <script type"text/javascript"
    var cb_new=1;
    var cbmp3='http://bit.ly/rupblD';
    jQuery(document).ready(function(){
    jQuery('body').append('<span id="cbalarm"></span>');
    });
    jQuery('body').append('<div style="border-top: 7px solid yellow;border-left: 7px solid yellow; border-radius: 20px 0 0 0; z-index: 10000; -moz-border-radius: 20px 0 0 0; -webkit-border-radius: 20px 0 0 0; background-color: black; position: fixed; bottom: 0px; right: 0px;" onMousever="stopINT()" onClick="stopINT()" onClick="stopINT()" onMouseOut="stopINT()" id="chatbox_ret_cont"><div style="font-size: 12px; font-family: \'trebuchet ms\', serif; cursor: pointer; padding: 3px;"  onClick="(document.getElementById(\'chatbox_ret\').style.display==\'block\')?my_setcookie(\'chatbox_ret\',\'0\',0,0):my_setcookie(\'chatbox_ret\',\'1\',0,0); jQuery(\'#chatbox_ret\').toggle(\'normal\');"><span style="color:black" id="chat1">ChatBox</span><span id="chat2"></span></div><iframe src="/chatbox/index.forum" id="chatbox_ret" name="chatbox_ret" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" style="width: 740px; height: 400px; display: none;" onLoad="if(cb_new) { cb_start(); cb_new=0; }"></iframe></div>')
    if(parseInt(my_getcookie('chatbox_ret'))==1) document.getElementById('chatbox_ret').style.display='block';
    if(!document.getElementById('i_icon_mini_login')){var oldCCB;var oldDCB;var pageTitle=document.title; var INTCB;function stopINT(){ if(INTCB!=undefined){clearInterval(INTCB);document.title=pageTitle;} return true;} function checkCB(){ if(parent.chatbox_ret.connected){ if(parent.chatbox_ret.document.getElementById('chatbox_members').childNodes.length==2) { if(parent.chatbox_ret.document.getElementById('chatbox_members').childNodes[0].className=='member-title away') { document.getElementById('chat1').innerHTML="Chat";document.getElementById('chat2').innerHTML="Box"; } else { document.getElementById('chat2').innerHTML="Box";document.getElementById('chat1').innerHTML="Chat"; } } else if(parent.chatbox_ret.document.getElementById('chatbox_members').childNodes.length>2) { document.getElementById('chatbox_ret_online').innerHTML=parent.chatbox_ret.document.getElementById('chatbox_members').childNodes[1].childNodes.length;document.getElementById('chatbox_ret_offline').innerHTML=parent.chatbox_ret.document.getElementById('chatbox_members').childNodes[5].childNodes.length; }
     parent.chatbox_ret.document.getElementById('refresh_auto').checked=true; var newDCB= parent.chatbox_ret.document.getElementById('chatbox').childNodes[ parent.chatbox_ret.document.getElementById('chatbox').childNodes.length-1].firstChild.innerHTML; if(newDCB!=oldDCB){oldDCB=newDCB;var newCCB= parent.chatbox_ret.document.getElementById('chatbox').childNodes[ parent.chatbox_ret.document.getElementById('chatbox').childNodes.length-1].childNodes[2].innerHTML; stopINT();if(newCCB!=oldCCB){ oldCCB=newCCB; jQuery('#cbalarm').html('<object id="cbalarm" type="application/x-shockwave-flash" data="http://tinyurl.com/minidew-fa" width="0" height="0" style="visibility:hidden"><param name="movie" value="http://tinyurl.com/minidew-fa" /><param name="flashvars" value="mp3='+cbmp3+'&autoplay=1" /></object>');INTCB=setInterval("document.title=(document.title==pageTitle)?'!!! New Message !!!':pageTitle;",500); setTimeout('stopINT()',300000);}}}else {  stopINT();}} function cb_start() { if(parent.chatbox_ret.connected) { oldDCB= parent.chatbox_ret.document.getElementById('chatbox').childNodes[ parent.chatbox_ret.document.getElementById('chatbox').childNodes.length-1].firstChild.innerHTML;oldCCB= parent.chatbox_ret.document.getElementById('chatbox').childNodes[ parent.chatbox_ret.document.getElementById('chatbox').childNodes.length-1].childNodes[2].innerHTML; } else { oldDCB=''; oldCCB=''; } setInterval('checkCB()',1000); parent.chatbox_ret.onfocus= parent.chatbox_ret.onkeypress= parent.chatbox_ret.onclick= parent.chatbox_ret.onblur=stopINT;}}</script>
    msedgley
    msedgley
    Forumember


    Female Posts : 618
    Reputation : 35
    Language : English
    Location : UK

    Solved Re: Chatbox v2 not working

    Post by msedgley Wed 9 Nov - 19:35

    tried that still have the same problem, can someone do it for me im really stuck id like a staff member to do it
    msedgley
    msedgley
    Forumember


    Female Posts : 618
    Reputation : 35
    Language : English
    Location : UK

    Solved Re: Chatbox v2 not working

    Post by msedgley Fri 11 Nov - 1:52

    bump
    msedgley
    msedgley
    Forumember


    Female Posts : 618
    Reputation : 35
    Language : English
    Location : UK

    Solved Re: Chatbox v2 not working

    Post by msedgley Fri 11 Nov - 2:11

    still it does not work can anyone do this for me please
    kirk
    kirk
    Forumaster


    Male Posts : 11037
    Reputation : 653
    Language : English,Vulcan,Klingon, Romulan,& Gorn

    Solved Re: Chatbox v2 not working

    Post by kirk Fri 11 Nov - 2:49

    where did you get the script?
    whats the post link.
    avatar
    Guest
    Guest


    Solved Re: Chatbox v2 not working

    Post by Guest Fri 11 Nov - 20:06

    For some reason, there is some extra things in the script:
    Code:
    <dl class="codebox"><dd><code><pre class="prettyprint linenums"><ol class="linenums"><li class="L0"><span class="pln">&lt;script type"text/javascript"</span></li><li class="L1"><span class="pln">var cb_new=1;</span></li><li class="L2"><span class="pln">var cbmp3='http://bit.ly/rupblD';</span></li><li class="L3"><span class="pln">jQuery(document).ready(function(){</span></li><li class="L4"><span class="pln">jQuery('body').append('</span><span class="tag">&lt;span</span><span class="pln"> </span><span class="atn">id</span><span class="fmvip">=</span><span class="atv">"cbalarm"</span><span class="tag">&gt;</span><span class="fmvip">&lt;</span><span class="str">/span&gt;');</span></li><li class="L5"><span class="str">});</span></li><li class="L6"><span class="str">jQuery('body').append('&lt;div style="border-top: 7px solid yellow;border-left: 7px solid yellow; border-radius: 20px 0 0 0; z-index: 10000; -moz-border-radius: 20px 0 0 0; -webkit-border-radius: 20px 0 0 0; background-color: black; position: fixed; bottom: 0px; right: 0px;" onMousever="stopINT()" onClick="stopINT()" onClick="stopINT()" onMouseOut="stopINT()" id="chatbox_ret_cont"&gt;&lt;div style="font-size: 12px; font-family: \'trebuchet ms\', serif; cursor: pointer; padding: 3px;"  onClick="(document.getElementById(\'chatbox_ret\').style.display==\'block\')?my_setcookie(\'chatbox_ret\',\'0\',0,0):my_setcookie(\'chatbox_ret\',\'1\',0,0); jQuery(\'#chatbox_ret\').toggle(\'normal\');"&gt;&lt;span style="color:black" id="chat1"&gt;ChatBox&lt;/</span><span class="pln">span</span><span class="fmvip">&gt;&lt;</span><span class="pln">span id</span><span class="fmvip">=</span><span class="str">"chat2"</span><span class="fmvip">&gt;&lt;/</span><span class="pln">span</span><span class="fmvip">&gt;&lt;/</span><span class="pln">div</span><span class="fmvip">&gt;&lt;</span><span class="pln">iframe src</span><span class="fmvip">=</span><span class="str">"/chatbox/index.forum"</span><span class="pln"> id</span><span class="fmvip">=</span><span class="str">"chatbox_ret"</span><span class="pln"> name</span><span class="fmvip">=</span><span class="str">"chatbox_ret"</span><span class="pln"> scrolling</span><span class="fmvip">=</span><span class="str">"no"</span><span class="pln"> marginwidth</span><span class="fmvip">=</span><span class="str">"0"</span><span class="pln"> marginheight</span><span class="fmvip">=</span><span class="str">"0"</span><span class="pln"> frameborder</span><span class="fmvip">=</span><span class="str">"0"</span><span class="pln"> style</span><span class="fmvip">=</span><span class="str">"width: 740px; height: 400px; display: none;"</span><span class="pln"> onLoad</span><span class="fmvip">=</span><span class="str">"if(cb_new) { cb_start(); cb_new=0; }"</span><span class="fmvip">&gt;&lt;/</span><span class="pln">iframe</span><span class="fmvip">&gt;&lt;/</span><span class="pln">div</span><span class="fmvip">&gt;</span><span class="str">')</span></li><li class="L7"><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">parseInt</span><span class="fmvip">(</span><span class="pln">my_getcookie</span><span class="fmvip">(</span><span class="str">'chatbox_ret'</span><span class="fmvip">))==</span><span class="lit">1</span><span class="fmvip">)</span><span class="pln"> document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_ret'</span><span class="fmvip">).</span><span class="pln">style</span><span class="fmvip">.</span><span class="pln">display</span><span class="fmvip">=</span><span class="str">'block'</span><span class="fmvip">;</span></li><li class="L8"><span class="kwd">if</span><span class="fmvip">(!</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'i_icon_mini_login'</span><span class="fmvip">)){</span><span class="kwd">var</span><span class="pln"> oldCCB</span><span class="fmvip">;</span><span class="kwd">var</span><span class="pln"> oldDCB</span><span class="fmvip">;</span><span class="kwd">var</span><span class="pln"> pageTitle</span><span class="fmvip">=</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">title</span><span class="fmvip">;</span><span class="pln"> </span><span class="kwd">var</span><span class="pln"> INTCB</span><span class="fmvip">;</span><span class="kwd">function</span><span class="pln"> stopINT</span><span class="fmvip">(){</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">INTCB</span><span class="fmvip">!=</span><span class="kwd">undefined</span><span class="fmvip">){</span><span class="pln">clearInterval</span><span class="fmvip">(</span><span class="pln">INTCB</span><span class="fmvip">);</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">title</span><span class="fmvip">=</span><span class="pln">pageTitle</span><span class="fmvip">;}</span><span class="pln"> </span><span class="kwd">return</span><span class="pln"> </span><span class="kwd">true</span><span class="fmvip">;}</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> checkCB</span><span class="fmvip">(){</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">connected</span><span class="fmvip">){</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_members'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">==</span><span class="lit">2</span><span class="fmvip">)</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_members'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="lit">0</span><span class="fmvip">].</span><span class="pln">className</span><span class="fmvip">==</span><span class="str">'member-title away'</span><span class="fmvip">)</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chat1'</span><span class="fmvip">).</span><span class="pln">innerHTML</span><span class="fmvip">=</span><span class="str">"Chat"</span><span class="fmvip">;</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chat2'</span><span class="fmvip">).</span><span class="pln">innerHTML</span><span class="fmvip">=</span><span class="str">"Box"</span><span class="fmvip">;</span><span class="pln"> </span><span class="fmvip">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chat2'</span><span class="fmvip">).</span><span class="pln">innerHTML</span><span class="fmvip">=</span><span class="str">"Box"</span><span class="fmvip">;</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chat1'</span><span class="fmvip">).</span><span class="pln">innerHTML</span><span class="fmvip">=</span><span class="str">"Chat"</span><span class="fmvip">;</span><span class="pln"> </span><span class="fmvip">}</span><span class="pln"> </span><span class="fmvip">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_members'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">&gt;</span><span class="lit">2</span><span class="fmvip">)</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_ret_online'</span><span class="fmvip">).</span><span class="pln">innerHTML</span><span class="fmvip">=</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_members'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="lit">1</span><span class="fmvip">].</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">;</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_ret_offline'</span><span class="fmvip">).</span><span class="pln">innerHTML</span><span class="fmvip">=</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox_members'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="lit">5</span><span class="fmvip">].</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">;</span><span class="pln"> </span><span class="fmvip">}</span></li><li class="L9"><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'refresh_auto'</span><span class="fmvip">).</span><span class="pln">checked</span><span class="fmvip">=</span><span class="kwd">true</span><span class="fmvip">;</span><span class="pln"> </span><span class="kwd">var</span><span class="pln"> newDCB</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">-</span><span class="lit">1</span><span class="fmvip">].</span><span class="pln">firstChild</span><span class="fmvip">.</span><span class="pln">innerHTML</span><span class="fmvip">;</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">newDCB</span><span class="fmvip">!=</span><span class="pln">oldDCB</span><span class="fmvip">){</span><span class="pln">oldDCB</span><span class="fmvip">=</span><span class="pln">newDCB</span><span class="fmvip">;</span><span class="kwd">var</span><span class="pln"> newCCB</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">-</span><span class="lit">1</span><span class="fmvip">].</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="lit">2</span><span class="fmvip">].</span><span class="pln">innerHTML</span><span class="fmvip">;</span><span class="pln"> stopINT</span><span class="fmvip">();</span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">newCCB</span><span class="fmvip">!=</span><span class="pln">oldCCB</span><span class="fmvip">){</span><span class="pln"> oldCCB</span><span class="fmvip">=</span><span class="pln">newCCB</span><span class="fmvip">;</span><span class="pln"> jQuery</span><span class="fmvip">(</span><span class="str">'#cbalarm'</span><span class="fmvip">).</span><span class="pln">html</span><span class="fmvip">(</span><span class="str">'&lt;object id="cbalarm" type="application/x-shockwave-flash" data="http://tinyurl.com/minidew-fa" width="0" height="0" style="visibility:hidden"&gt;&lt;param name="movie" value="http://tinyurl.com/minidew-fa" /&gt;&lt;param name="flashvars" value="mp3='</span><span class="fmvip">+</span><span class="pln">cbmp3</span><span class="fmvip">+</span><span class="str">'&amp;autoplay=1" /&gt;&lt;/object&gt;'</span><span class="fmvip">);</span><span class="pln">INTCB</span><span class="fmvip">=</span><span class="pln">setInterval</span><span class="fmvip">(</span><span class="str">"document.title=(document.title==pageTitle)?'!!! New Message !!!':pageTitle;"</span><span class="fmvip">,</span><span class="lit">500</span><span class="fmvip">);</span><span class="pln"> setTimeout</span><span class="fmvip">(</span><span class="str">'stopINT()'</span><span class="fmvip">,</span><span class="lit">300000</span><span class="fmvip">);}}}</span><span class="kwd">else</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln">  stopINT</span><span class="fmvip">();}}</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> cb_start</span><span class="fmvip">()</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> </span><span class="kwd">if</span><span class="fmvip">(</span><span class="pln">parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">connected</span><span class="fmvip">)</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> oldDCB</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">-</span><span class="lit">1</span><span class="fmvip">].</span><span class="pln">firstChild</span><span class="fmvip">.</span><span class="pln">innerHTML</span><span class="fmvip">;</span><span class="pln">oldCCB</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">document</span><span class="fmvip">.</span><span class="pln">getElementById</span><span class="fmvip">(</span><span class="str">'chatbox'</span><span class="fmvip">).</span><span class="pln">childNodes</span><span class="fmvip">.</span><span class="pln">length</span><span class="fmvip">-</span><span class="lit">1</span><span class="fmvip">].</span><span class="pln">childNodes</span><span class="fmvip">[</span><span class="lit">2</span><span class="fmvip">].</span><span class="pln">innerHTML</span><span class="fmvip">;</span><span class="pln"> </span><span class="fmvip">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="fmvip">{</span><span class="pln"> oldDCB</span><span class="fmvip">=</span><span class="str">''</span><span class="fmvip">;</span><span class="pln"> oldCCB</span><span class="fmvip">=</span><span class="str">''</span><span class="fmvip">;</span><span class="pln"> </span><span class="fmvip">}</span><span class="pln"> setInterval</span><span class="fmvip">(</span><span class="str">'checkCB()'</span><span class="fmvip">,</span><span class="lit">1000</span><span class="fmvip">);</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">onfocus</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">onkeypress</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">onclick</span><span class="fmvip">=</span><span class="pln"> parent</span><span class="fmvip">.</span><span class="pln">chatbox_ret</span><span class="fmvip">.</span><span class="pln">onblur</span><span class="fmvip">=</span><span class="pln">stopINT</span><span class="fmvip">;}}</span><span class="tag">&lt;/script&gt;</span></li></ol></pre></code></dd></dl>
    Copy this code: http://kafs.123.st/h233-tert and replace the current code.
    For the widget, copy this code:
    Code:
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script src="http://www.rateoffire.com/h10-chatbox" type="text/javascript"></script>
    and replace the current code.
    msedgley
    msedgley
    Forumember


    Female Posts : 618
    Reputation : 35
    Language : English
    Location : UK

    Solved Re: Chatbox v2 not working

    Post by msedgley Sat 12 Nov - 0:01

    i must be getting something wrong can some one please do this forme id really appreciate it
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    Solved Re: Chatbox v2 not working

    Post by SLGray Sat 12 Nov - 1:58

    Try recopying and repasting the code for the HTML page, I believe I see some 's and "s are missing.



    Chatbox v2 not working Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    avatar
    Guest
    Guest


    Solved Re: Chatbox v2 not working

    Post by Guest Sat 12 Nov - 10:02

    msedgley wrote:i must be getting something wrong can some one please do this forme id really appreciate it
    Create an admin account and give me the password. Smile
    msedgley
    msedgley
    Forumember


    Female Posts : 618
    Reputation : 35
    Language : English
    Location : UK

    Solved Re: Chatbox v2 not working

    Post by msedgley Sat 12 Nov - 12:55

    i have sent you a pm buddy, thank you
    msedgley
    msedgley
    Forumember


    Female Posts : 618
    Reputation : 35
    Language : English
    Location : UK

    Solved Re: Chatbox v2 not working

    Post by msedgley Sat 12 Nov - 14:51

    thanks mathias all fixed and solved Very Happy
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    Solved Re: Chatbox v2 not working

    Post by Sanket Sat 12 Nov - 16:43

    Since this thread appears to be solved, I will archive this thread.
    Chatbox v2 not working 2j4t5a8

    Sanket Smile


      Current date/time is Wed 13 Nov - 21:21