The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Chatbox v2 not working

View previous topic View next topic Go down

Solved Chatbox v2 not working

Post by msedgley on November 9th 2011, 2:22 am

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
Forumember

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

http://www.rateoffire.com

Back to top Go down

Solved Re: Chatbox v2 not working

Post by msedgley on November 9th 2011, 2:28 am

they are if you look now i was just trying again

msedgley
Forumember

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

http://www.rateoffire.com

Back to top Go down

Solved Re: Chatbox v2 not working

Post by msedgley on November 9th 2011, 2:32 am


msedgley
Forumember

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

http://www.rateoffire.com

Back to top Go down

Solved Re: Chatbox v2 not working

Post by msedgley on November 9th 2011, 2:34 am

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
Forumember

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

http://www.rateoffire.com

Back to top Go down

Solved Re: Chatbox v2 not working

Post by msedgley on November 9th 2011, 2:43 am

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

msedgley
Forumember

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

http://www.rateoffire.com

Back to top Go down

Solved Re: Chatbox v2 not working

Post by Guest on November 9th 2011, 6:51 am

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>

Guest
Guest


Back to top Go down

Solved Re: Chatbox v2 not working

Post by msedgley on November 9th 2011, 6:35 pm

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
Forumember

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

http://www.rateoffire.com

Back to top Go down

Solved Re: Chatbox v2 not working

Post by msedgley on November 11th 2011, 12:52 am

bump

msedgley
Forumember

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

http://www.rateoffire.com

Back to top Go down

Solved Re: Chatbox v2 not working

Post by msedgley on November 11th 2011, 1:11 am

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

msedgley
Forumember

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

http://www.rateoffire.com

Back to top Go down

Solved Re: Chatbox v2 not working

Post by kirk on November 11th 2011, 1:49 am

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

kirk
Forumaster

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

Back to top Go down

Solved Re: Chatbox v2 not working

Post by Guest on November 11th 2011, 7:06 pm

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.

Guest
Guest


Back to top Go down

Solved Re: Chatbox v2 not working

Post by msedgley on November 11th 2011, 11:01 pm

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

msedgley
Forumember

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

http://www.rateoffire.com

Back to top Go down

Solved Re: Chatbox v2 not working

Post by SLGray on November 12th 2011, 12:58 am

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


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


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Chatbox v2 not working

Post by Guest on November 12th 2011, 9:02 am

@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

Guest
Guest


Back to top Go down

Solved Re: Chatbox v2 not working

Post by msedgley on November 12th 2011, 11:55 am

i have sent you a pm buddy, thank you

msedgley
Forumember

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

http://www.rateoffire.com

Back to top Go down

Solved Re: Chatbox v2 not working

Post by msedgley on November 12th 2011, 1:51 pm

thanks mathias all fixed and solved Very Happy

msedgley
Forumember

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

http://www.rateoffire.com

Back to top Go down

Solved Re: Chatbox v2 not working

Post by Sanket on November 12th 2011, 3:43 pm

Since this thread appears to be solved, I will archive this thread.


Sanket Smile


Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum