Re: Auto login Chatbox
Posted December 3rd 2011, 10:41pm
where's the body tag ? have i in this code "onload="if(!connected){CB_disconnect();}ajax_refresh_chatbox('?archives=100', 1);" like this
[spoiler=Spoiler]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><title>Chatbox</title><link rel="shortcut icon" type="image/x-icon" href="http://mirrorimg.net/im1/fwy.ico" /><meta http-equiv="content-script-type" content="text/javascript" /><meta http-equiv="content-style-type" content="text/css" /><link rel="stylesheet" href="/92-ltr.css" type="text/css" /><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script><script src="http://illiweb.com/rsc/24/frm/lang/id.js" type="text/javascript"></script><script type="text/javascript">var params = '?archives';var smilies_sid = '';</script><script src="http://illiweb.com/rsc/24/frm/chatbox/chatbox4.js" type="text/javascript"></script></head><body class="chatbox"><div id="chatbox_header" class="clearfix"><h3 class="chatbox-title"><a href="/chatbox/index.forum" target="chatbox" class="chat-title">Chatbox</a></h3><ul class="chatbox-options" id="chatbox_main_options"><li><a href="javascript:void(0)" onclick="ajax_refresh_chatbox('?archives', 1);">Refresh</a> | </li><li id="chatbox_option_with_archives" style="display: ;"><a href="/chatbox/index.forum?archives=1">Archives</a> | </li><li id="chatbox_option_without_archives" style="display: none;"><a href="/chatbox/index.forum?archives">Without archives</a> | </li><li id="chatbox_option_autorefresh" style="display: none;" onclick="refresh_chatbox('?archives');"><label>Auto refresh <input type="checkbox" name="refresh_auto" id="refresh_auto" checked="checked" style="background: transparent;" /></label> | </li><li><a href="javascript:void(0)" onclick="CB_disconnect();"><span id="chatbox_option_co" style="display: ;"><strong>Login</strong></span><span id="chatbox_option_disco" style="display: none;">Logout</span></a>  </li></ul></div><div id="chatbox_members" class="chatbox-members"></div><div id="chatbox"></div><div id="chatbox_footer"><form name="post" action="/chatbox/index.forum" method="post" onsubmit="submitmsg('?archives');refresh_chatbox('?archives');return false;"><div id="chatbox_messenger_form" style="display: none;"><div class="right style-buttons"><input type="hidden" name="sbold" value="0" /><input type="hidden" name="sitalic" value="0" /><input type="hidden" name="sunderline" value="0" /><input type="hidden" name="sstrike" value="0" /><input type="hidden" name="scolor" id="scolor" value="#373737" /><div class="text-field" onclick="document.post.message.focus();"><label>Message : <input type="text" id="message" name="message" size="35" maxlength="1024" class="post" autocomplete="off" onkeydown="number_of_refresh=0;" /></label> <input type="hidden" name="sent" value="" /><input type="submit" name="submit_button" value="Send" id="submit_button" /> </div></div><div class="right"><div id="divbold" class="fontbutton fontbutton_normal" onmouseover="this.className='fontbutton fontbutton_hover'" onmouseout="this.className=( document.post.sbold.value == '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'" onclick="do_style('bold');" onmousedown="this.className='fontbutton fontbutton_clicked';" onmouseup="this.className=( document.post.sbold.value != '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'"><img src="http://illiweb.com/fa/subsilver/wysiwyg/bold.gif" width="21" height="20" alt="Bold" title="Bold" /></div><div id="divitalic" class="fontbutton" onmouseover="this.className='fontbutton fontbutton_hover'" onmouseout="this.className=( document.post.sitalic.value == '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'" onclick="do_style('italic');" onmousedown="this.className='fontbutton fontbutton_clicked';" onmouseup="this.className=( document.post.sitalic.value != '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'"><img src="http://illiweb.com/fa/subsilver/wysiwyg/italic.gif" width="21" height="20" alt="Ital." title="Ital." /></div><div id="divunderline" class="fontbutton" onmouseover="this.className='fontbutton fontbutton_hover'" onmouseout="this.className=( document.post.sunderline.value == '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'" onclick="do_style('underline');" onmousedown="this.className='fontbutton fontbutton_clicked';" onmouseup="this.className=( document.post.sunderline.value != '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'"><img src="http://illiweb.com/fa/subsilver/wysiwyg/underline.gif" width="21" height="20" alt="Underl." title="Underl." /></div><div id="divstrike" class="fontbutton" onmouseover="this.className='fontbutton fontbutton_hover'" onmouseout="this.className=( document.post.sstrike.value == '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'" onclick="do_style('strike');" onmousedown="this.className='fontbutton fontbutton_clicked';" onmouseup="this.className=( document.post.sstrike.value != '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'"><img src="http://illiweb.com/fa/subsilver/wysiwyg/strike.gif" width="21" height="20" alt="Strike" title="Strike" /></div><div id="divcolor" class="fontbutton" onmouseover="this.className='fontbutton fontbutton_hover'" onmouseout="this.className='fontbutton fontbutton_normal'" onclick="do_selectcolor(event);"><img src="http://illiweb.com/fa/subsilver/wysiwyg/color.gif" width="21" height="16" alt="Warna huruf" title="Warna huruf" /><img src="http://illiweb.com/fa/subsilver/wysiwyg/menupop.gif" width="11" height="16" alt="Warna huruf" title="Warna huruf" /><img src="http://illiweb.com/fa/subsilver/wysiwyg/clear.gif" id="show_color" alt="Warna huruf" title="Warna huruf" width="21" height="4" /></div><div id="divsmilies" class="fontbutton" onmouseover="this.className='fontbutton fontbutton_hover'" onmouseout="this.className='fontbutton fontbutton_normal'" onclick="do_selectsmilies(event);"><img src="http://illiweb.com/fa/subsilver/wysiwyg/smilie.gif" width="21" height="20" alt="Emoticons" title="Emoticons" /><img src="http://illiweb.com/fa/subsilver/wysiwyg/menupop.gif" width="11" height="20" alt="Emoticons" title="Emoticons" /></div></div></div></form></div><script type="text/javascript">//<![CDATA[
function ajax_connect(params, mode){if ( params == '' || params == undefined ){params = '?achives=0';}if (window.XMLHttpRequest){var http_request = new XMLHttpRequest();}else if (window.ActiveXObject){var http_request = new ActiveXObject("Microsoft.XMLHTTP");}http_request.onreadystatechange = function(){if (http_request.readyState == 4 && http_request.status == 200){var parsed_text = http_request.responseText;if ( parsed_text ){if ( mode == 'connect' ){document.getElementById('chatbox_option_co').style.display = 'none';document.getElementById('chatbox_option_disco').style.display = '';document.getElementById('refresh_auto').checked = true;document.getElementById('chatbox_option_autorefresh').style.display = '';document.getElementById('chatbox_messenger_form').style.display = '';document.getElementById('chatbox_footer').style.display = 'block';connected = 1;number_of_refresh = 0;}else if ( mode == 'disconnect' ){document.getElementById('chatbox_option_co').style.display = '';document.getElementById('chatbox_option_disco').style.display = 'none';document.getElementById('chatbox_option_autorefresh').style.display = 'none';document.getElementById('chatbox_messenger_form').style.display = 'none';document.getElementById('chatbox_footer').style.display = 'none';connected = 0;}refresh_chatbox(params);}}};http_request.open('GET', '/chatbox/chatbox_actions.forum' + params + '&mode=' + mode + '&tid=7d391fd7c2698a465a9950cf25f5473d', true);http_request.send(null);}function CB_disconnect(){if ( connected ){ajax_connect('?archives', 'disconnect');clearInterval(refresh_interval);}else{ajax_connect('?archives', 'connect');try {refresh_interval = setInterval("refresh_chatbox('?archives')", 5000);} catch (err) {}}}if ( document.location.href.indexOf('chatbox', 1) == -1 ){$('#divcolor').css('display', 'none');$('#divsmilies').css('display', 'none');}var connected = false;var chatbox_updated = 1322973474;var chatbox_last_update = 1322973474;var template_color = '#373737';var refresh_interval;window.setTimeout("document.getElementById('chatbox').scrollTop = 999999; Init_pref();", 200);window.setTimeout("document.getElementById('chatbox').scrollTop = 999999;", 1000);if ( connected ){try {refresh_interval = setInterval("refresh_chatbox('?archives')", 5000);} catch (err) {}}else{try {refresh_chatbox('?archives');} catch (err) {}}//]]></script></body></html><body>onload="if(!connected){CB_disconnect();}ajax_refresh_chatbox('?archives=100', 1);"</body>[/spoiler]
φ
Posts:
Avatar
Guest
Auto login Chatbox
Posted December 3rd 2011, 11:19pm
@tommycoo: Find this in your code and then change it into
φ
Posts: 209
Joined: September 10th 2011, 11:00pm
Location: SC, USA
Likes Given: 8
Likes Received: 8
Auto login Chatbox
Posted December 4th 2011, 6:04am
sentinel said:
sir how about for phpbb3 , i still get disconnected from the cbox
try to deactive HTML on HTML pages
φ
Posts:
Avatar
Guest
Auto login Chatbox
Posted December 4th 2011, 7:24am
can i have to add cookies like phpbb3 ? i used invision
φ
Posts:
Avatar
Guest
Auto login Chatbox
Posted December 5th 2011, 12:58pm
I have never used invision before, so you have to figure it on your own :(
φ
Posts: 209
Joined: September 10th 2011, 11:00pm
Location: SC, USA
Likes Given: 8
Likes Received: 8
Auto login Chatbox
Posted December 5th 2011, 2:29pm
The chatbox code is almost identical on all four board types, so whatever works for phpBB3 or PunBB boards will most likely work for IPB2/Invision boards.
φ
Posts: 1599
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
Auto login Chatbox
Posted December 7th 2011, 5:44am
this is my tid .. '&tid=133076015fd49efdaa512c5567ad73bc'

should be i add like this
my_getcookie('&tid=133076015fd49efdaa512c5567ad73bc').substr(my_getcookie('&tid=133076015fd49efdaa512c5567ad73bc').indexOf('&tid=133076015fd49efdaa512c5567ad73bc'),37)
φ
Posts:
Avatar
Guest
Auto login Chatbox
Posted December 8th 2011, 12:15am
Zero said:
@tommycoo: Find this in your code and then change it into

I THINK THAT CODE NOT WORKK
φ
Posts:
Avatar
Guest
Auto login Chatbox
Posted December 8th 2011, 9:16am
it does, it's worked for me and many other people!
φ
Posts: 237
Joined: October 29th 2011, 11:00pm
Location: england, united kingdom, stoke on trent
Likes Given: 20
Likes Received: 4
Auto login Chatbox
Posted December 8th 2011, 4:08pm
can i see your code ? in HTML
φ
Posts:
Avatar
Guest
Auto login Chatbox
Posted December 15th 2011, 1:50am
does this actually work? i mean i followed all the steps carefully and nothing happened, the chatbox didn't appear at all.

i use phpBB3 btw.
φ
Posts: 21
Joined: December 10th 2011, 12:00am
Likes Given: 2
Auto login Chatbox
Posted December 15th 2011, 10:09pm
i think thats doesn't work i used punbb .. can anyone i see your HTML ?
φ
Posts:
Avatar
Guest
Auto login Chatbox
Posted December 31st 2011, 5:41am
Zero said:
@tommycoo: Find this in your code and then change it into

where's the body tag ? I can not find this in my code.
φ
Posts: 63
Joined: November 7th 2011, 12:00am
Likes Received: 4
Auto login Chatbox
Posted January 1st 2012, 4:56pm
Hossam said:
Zero said:
@tommycoo: Find this in your code and then change it into

where's the body tag ? I can not find this in my code.

Is there code for that ?
φ
Posts: 63
Joined: November 7th 2011, 12:00am
Likes Received: 4
Auto login Chatbox
Posted January 1st 2012, 7:20pm
Another thing, how i disable the chat link like here ?
www.diondesigns.org/chatbox
φ
Posts: 63
Joined: November 7th 2011, 12:00am
Likes Received: 4
Re: Auto login Chatbox
Posted January 1st 2012, 8:49pm
Try this css, dion is using the redesigned chatbox...btw, you can go to my forum for the new chatbox system ;)
body.chatbox {

    visibility: hidden;
}
φ
Posts: 209
Joined: September 10th 2011, 11:00pm
Location: SC, USA
Likes Given: 8
Likes Received: 8
Re: Auto login Chatbox
Posted January 2nd 2012, 6:32pm
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><title>Chatbox</title><link rel="shortcut icon" type="image/x-icon" href="http://illiweb.com/fa/favicon/smiley.ico" /><meta http-equiv="content-script-type" content="text/javascript" /><meta http-equiv="content-style-type" content="text/css" /><link rel="stylesheet" href="/116-ltr.css" type="text/css" /><script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script><script src="http://illiweb.com/rsc/26/frm/lang/tl.js" type="text/javascript"></script><script type="text/javascript">var params = '?archives';var smilies_sid = '';</script><script src="http://illiweb.com/rsc/26/frm/chatbox/chatbox4.js" type="text/javascript"></script><style type="text/css">* {margin: 0; padding: 0;}html, body {overflow: hidden;}body {padding: 0;margin: 0;background-color: #ecf3f7;}</style></head><body class="chatbox"><div id="chatbox_header" class="forabg"><h2 class="chatbox-title"><a href="/chatbox/index.forum" target="chatbox" class="chat-title">Chatbox</a></h2><ul class="chatbox-options" id="chatbox_main_options"><li><a href="javascript:void(0)" onclick="ajax_refresh_chatbox('?archives', 1);">Refresh</a> | </li><li id="chatbox_option_with_archives" style="display: ;"><a href="/chatbox/index.forum?archives=1">Archives</a> | </li><li id="chatbox_option_without_archives" style="display: none;"><a href="/chatbox/index.forum?archives">Without archives</a> | </li><li id="chatbox_option_autorefresh" style="display: none;" onclick="refresh_chatbox('?archives');"><label>Auto refresh <input type="checkbox" name="refresh_auto" id="refresh_auto" checked="checked" style="background: transparent;" /></label> | </li><li><a href="javascript:void(0)" onclick="CB_disconnect();"><span id="chatbox_option_co" style="display: ;"><strong>Log in</strong></span><span id="chatbox_option_disco" style="display: none;">Log out</span></a>  </li></ul></div><div id="chatbox_members" class="chatbox-members"></div><div id="chatbox"></div><div id="chatbox_footer" class="forabg" style="display: none;"><form name="post" action="/chatbox/index.forum" method="post" onsubmit="submitmsg('?archives');refresh_chatbox('?archives');return false;"><div id="chatbox_messenger_form"><div class="right-box style-buttons"><input type="hidden" name="sbold" value="0" /><input type="hidden" name="sitalic" value="0" /><input type="hidden" name="sunderline" value="0" /><input type="hidden" name="sstrike" value="0" /><input type="hidden" name="scolor" id="scolor" value="#536482" /><div class="text-field" onclick="document.post.message.focus();"><label>Message : <input type="text" id="message" name="message" size="35" maxlength="1024" class="post" autocomplete="off" onkeydown="number_of_refresh=0;" /></label> <input type="hidden" name="sent" value="" /><input type="submit" name="submit_button" value="Send" id="submit_button" /> </div></div><div class="right-box"><div id="divbold" class="fontbutton fontbutton_normal" onmouseover="this.className='fontbutton fontbutton_hover'" onmouseout="this.className=( document.post.sbold.value == '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'" onclick="do_style('bold');" onmousedown="this.className='fontbutton fontbutton_clicked';" onmouseup="this.className=( document.post.sbold.value != '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'"><img src="http://illiweb.com/fa/subsilver/wysiwyg/bold.gif" width="21" height="20" alt="Bold" title="Bold" /></div><div id="divitalic" class="fontbutton" onmouseover="this.className='fontbutton fontbutton_hover'" onmouseout="this.className=( document.post.sitalic.value == '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'" onclick="do_style('italic');" onmousedown="this.className='fontbutton fontbutton_clicked';" onmouseup="this.className=( document.post.sitalic.value != '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'"><img src="http://illiweb.com/fa/subsilver/wysiwyg/italic.gif" width="21" height="20" alt="Ital." title="Ital." /></div><div id="divunderline" class="fontbutton" onmouseover="this.className='fontbutton fontbutton_hover'" onmouseout="this.className=( document.post.sunderline.value == '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'" onclick="do_style('underline');" onmousedown="this.className='fontbutton fontbutton_clicked';" onmouseup="this.className=( document.post.sunderline.value != '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'"><img src="http://illiweb.com/fa/subsilver/wysiwyg/underline.gif" width="21" height="20" alt="Underl." title="Underl." /></div><div id="divstrike" class="fontbutton" onmouseover="this.className='fontbutton fontbutton_hover'" onmouseout="this.className=( document.post.sstrike.value == '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'" onclick="do_style('strike');" onmousedown="this.className='fontbutton fontbutton_clicked';" onmouseup="this.className=( document.post.sstrike.value != '1' ) ? 'fontbutton fontbutton_selected' : 'fontbutton fontbutton_normal'"><img src="http://illiweb.com/fa/subsilver/wysiwyg/strike.gif" width="21" height="20" alt="Strike" title="Strike" /></div><div id="divcolor" class="fontbutton" onmouseover="this.className='fontbutton fontbutton_hover'" onmouseout="this.className='fontbutton fontbutton_normal'" onclick="do_selectcolor(event);"><img src="http://illiweb.com/fa/subsilver/wysiwyg/color.gif" width="21" height="16" alt="Font color" title="Font color" /><img src="http://illiweb.com/fa/subsilver/wysiwyg/menupop.gif" width="11" height="16" alt="Font color" title="Font color" /><img src="http://illiweb.com/fa/subsilver/wysiwyg/clear.gif" id="show_color" alt="Font color" title="Font color" width="21" height="4" /></div><div id="divsmilies" class="fontbutton" onmouseover="this.className='fontbutton fontbutton_hover'" onmouseout="this.className='fontbutton fontbutton_normal'" onclick="do_selectsmilies(event);"><img src="http://illiweb.com/fa/subsilver/wysiwyg/smilie.gif" width="21" height="20" alt="Emoticons" title="Emoticons" /><img src="http://illiweb.com/fa/subsilver/wysiwyg/menupop.gif" width="11" height="20" alt="Emoticons" title="Emoticons" /></div></div></div></form></div><script type="text/javascript">//<![CDATA[

function ajax_connect(params, mode){if ( params == '' || params == undefined ){params = '?achives=0';}if (window.XMLHttpRequest){var http_request = new XMLHttpRequest();}else if (window.ActiveXObject){var http_request = new ActiveXObject("Microsoft.XMLHTTP");}http_request.onreadystatechange = function(){if (http_request.readyState == 4 && http_request.status == 200){var parsed_text = http_request.responseText;if ( parsed_text ){if ( mode == 'connect' ){document.getElementById('chatbox_option_co').style.display = 'none';document.getElementById('chatbox_option_disco').style.display = '';document.getElementById('refresh_auto').checked = true;document.getElementById('chatbox_option_autorefresh').style.display = '';document.getElementById('chatbox_messenger_form').style.display = '';document.getElementById('chatbox_footer').style.display = 'block';connected = 1;number_of_refresh = 0;}else if ( mode == 'disconnect' ){document.getElementById('chatbox_option_co').style.display = '';document.getElementById('chatbox_option_disco').style.display = 'none';document.getElementById('chatbox_option_autorefresh').style.display = 'none';document.getElementById('chatbox_messenger_form').style.display = 'none';document.getElementById('chatbox_footer').style.display = 'none';connected = 0;}refresh_chatbox(params);}}};http_request.open('GET', '/chatbox/chatbox_actions.forum' + params + '&mode=' + mode + '&tid=1e9b6effadf043f5bd3207dba8fd5b61', true);http_request.send(null);}function CB_disconnect(){if ( connected ){ajax_connect('?archives', 'disconnect');clearInterval(refresh_interval);}else{ajax_connect('?archives', 'connect');try {refresh_interval = setInterval("refresh_chatbox('?archives')", 5000);} catch (err) {}}}if ( document.location.href.indexOf('chatbox', 1) == -1 ){$('#divcolor').css('display', 'none');$('#divsmilies').css('display', 'none');}var connected = false;var chatbox_updated = 1325549944;var chatbox_last_update = 1325549944;var template_color = '#536482';var refresh_interval;window.setTimeout("document.getElementById('chatbox').scrollTop = 999999; Init_pref();", 200);window.setTimeout("document.getElementById('chatbox').scrollTop = 999999;", 1000);if ( connected ){try {refresh_interval = setInterval("refresh_chatbox('?archives')", 5000);} catch (err) {}}else{try {refresh_chatbox('?archives');} catch (err) {}}//]]></script></body></html>

help w/ this code step by step
φ
Posts:
Avatar
Guest
Re: Auto login Chatbox
Posted January 2nd 2012, 11:12pm
Zero said:
Try this css, dion is using the redesigned chatbox...btw, you can go to my forum for the new chatbox system ;)
body.chatbox {

    visibility: hidden;
}

Doesn't work.
φ
Posts: 63
Joined: November 7th 2011, 12:00am
Likes Received: 4
Auto login Chatbox
Posted January 11th 2012, 9:58am
This is really cool :D
φ
Posts:
Avatar
Guest

Who is online

Users browsing this forum: No registered users and 1 guest