...

View Full Version : Chat room divider bar...



thepriceoflust
12-02-2009, 01:46 AM
There used to be a divider bar in my chat room... I have included a screen shot of it... For some reason something must have gotten erased because it is no longer there... I drew on the screen shot to let you know were the divider bar used to be... I also have included the script.. The bar can be solid, outlined, whatever... Just make it look good... Thanks guys...



<div id="middle-column">
<br />
<? $en['hideright'] = true; ?>
<!--[Include File includes/verify_session.php]-->
<? if (paid_chat == 'Yes' && $en['m_daysleft'] == 0) {ob_clean(); header('Location:'.constant('dir').'upgrade.html'); exit; } ?>

<h1><a href='<%dir%>chat_rooms.html'><%_ch_rooms%></a> &gt;
<!--[Loop Start QUERY:SELECT * FROM $roomtable WHERE r_id=<%id%> ORDER BY r_name ASC]-->
<%r_name%>
<!--[Loop End]-->
</h1><br />
<div class="member-info">
<!--[If Start <%loops_index%> == 0]-->
<? call404(); ?>
<!--[If End]-->

<script language=javascript>
var clear = 0;

function do_clear() {
if (clear == 1) {
document.forms.fm.msg.value = '';
clear = 0;
}
}

function set_clear() {
clear = 1;
setTimeout("do_clear()",500);
}

settimeout("do_clear()",1000);

</script>

<table width=671>
<tr>

<td width=462 height=300px valign=top>
<iframe name=messages src='<%dir%>modules/chat/templates/chathead.htm' width=100% height=100%></iframe><br>
<iframe name=central src='<%dir%>modules/chat/templates/chathead.htm' width=0px height=0px style='display:none;'></iframe>
</td>

<td width=197 height=300px valign=top>
<iframe name=users src='<%dir%>modules/chat/templates/chathead.htm' width=100% height=100%></iframe>
</td>

</tr>

<tr>
<td colspan=2>
<form action='<%dir%>modules/chat/chat.php' method=post name=fm target=central onsubmit='javascript:set_clear();'>
<b><%m_user%></b>:&nbsp;
<input type=hidden name=act value=post>
<input type=hidden name=room value=<%id%>>
<input type=text name=msg value='' size=40>&nbsp;&nbsp;&nbsp;
<input type="submit" class="button" name=sm value='<%_post%>'>
</form>
</td>
</tr>
</table>

</div>
</div>

<script language=javascript>
function getHTTPObject() { var xmlhttp; /*@cc_on @if (@_jscript_version >= 5) try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { xmlhttp = false; } } @else xmlhttp = false; @end @*/ if (!xmlhttp && typeof XMLHttpRequest != 'undefined') { try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; } } return xmlhttp; }

var base64s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

function decode(encStr)
{
var bits;
var decOut = '';
var i = 0;
for(; i<encStr.length; i += 4)
{
bits = (base64s.indexOf(encStr.charAt(i)) & 0xff) <<18 |
(base64s.indexOf(encStr.charAt(i +1)) & 0xff) <<12 |
(base64s.indexOf(encStr.charAt(i +2)) & 0xff) << 6 |
base64s.indexOf(encStr.charAt(i +3)) & 0xff;
decOut += String.fromCharCode((bits & 0xff0000) >>16,
(bits & 0xff00) >>8, bits & 0xff);
}
if(encStr.charCodeAt(i -2) == 61)
{
return(decOut.substring(0, decOut.length -2));
}
else if(encStr.charCodeAt(i -1) == 61)
{
return(decOut.substring(0, decOut.length -1));
}
else {return(decOut)};
}

var http = getHTTPObject();
<? $en['time'] = time(); ?>
var timestamp = '<%time%>';
var url = '';

/* messages */
function handleHttpResponse() {
if (http.readyState == 4) {
result = http.responseText;
output = result.substring(result.indexOf('|')+1,10000000);
timestamp = result.substring(0,result.indexOf('|'));
top.messages.document.body.innerHTML+=output;
top.messages.scrollBy(0, 2000);
}
}

function download_messages() {
url = "<%dir%>modules/chat/chat.php?room=<%id%>&act=show&time=" + timestamp;
http.open("URL",url,true);
http.onreadystatechange = handleHttpResponse;
http.send(null);
setTimeout("download_messages()",<%c_msg_refresh%> * 1000);
}

download_messages();

/* user list */
var userlist = getHTTPObject();

function usersHttpResponse() {
if (userlist.readyState == 4) {
top.users.document.body.innerHTML=userlist.responseText;
}
}

function get_users() {
userlist.open("URL","<%dir%>modules/chat/chat.php?room=<%id%>&act=users",true);
userlist.onreadystatechange = usersHttpResponse;
userlist.send(null);
setTimeout("get_users()",<%c_usr_refresh%> * 1000);
}

get_users();

</script>




http://img88.imageshack.us/img88/7130/1234s.jpg

thepriceoflust
12-02-2009, 02:18 AM
Ok this is really wierd but when I look at the chat rooms using I/E the bar is there... The screen shot that I took for you there is from Firefox? Is there something I need to add or do to make it show up in Firefox?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum