News:

SMF for DIYStompboxes.com!

Main Menu

chat bar below?

Started by Mike Burgundy, October 19, 2004, 01:15:03 PM

Previous topic - Next topic

Mike Burgundy

Hey, I just noticed a text bas on the bottom of the screen saying "There is nobody chatting right now". I thought this was a cool feature, but now it's gone again? Am I seeing things here?

Peter Snow

Hi Mike,

I still see it.  Maybe slide the bottom edge of the frame up a bit - it may be hiding underneath?  I notice that it does not show up in the "post a reply" screen so it may not be there all the time, in all screens.

Peter
Remember - A closed mouth gathers no foot.

Mike Burgundy

Nope. I wonder if Mozilla has something to do with this...

Peter Snow

Well, now I have logged-in (I had to, in order to post a reply) the thing has disappeared!  But if I start another Netscape session and enter the forum without logging in, I see it!

This may be one for Peter Snowberg...

Peter
Remember - A closed mouth gathers no foot.

mikeb

I'm using Mozilla and I can see it....

Mike

Hal

i never see it on my home computer, but I do when I'm away from home...No matter what browser I use here (mozilla, firefox, opera, or IE).

gez

Chat?!  That's what normal people do!  We're nerds, pull yourselves together chaps!!  :)
"They always say there's nothing new under the sun.  I think that that's a big copout..."  Wayne Shorter

puretube


Mike Burgundy

No diff  -both don't have the lower text bar. Are you on to something?

puretube

I thought you`re looking for not to have the bar.... :oops:

go to the forum via this link:
http://www.diystompboxes.com/forums/stompboxforum/

shows up?  8)

Peter Snowberg

The chat check bar is a page that gets displayed in a frameset along with the forum. If you bookmark that frameset file (See Puretube's link above) you'll get the chat status.

The code is a hack on top of a hack. For anybody that wants to add the chat check to their own setup..... :D

<html>
<head>
<META HTTP-EQUIV=Refresh CONTENT="180; URL=<?php echo $_SERVER['PHP_SELF'&#93;; ?>">
</head>
<BODY style="margin: 0px; margin-left: 4px; margin-top: 0px; margin-right: 0px;" link=black vlink=black alink=red>
<?php
$page 
"www.diystompboxes.com/chat/phpMyChat.php3"
echo 
"<a href='http&#58;//".$page."' target='chat'>";

$errmsg PageGet&#40;$page, $z&#41;;
if &#40;strlen&#40;$errmsg&#41;&#41; &#123;
echo&#40;"Unable to retrieve ".$page.", reason&#58; ".$errmsg."<BR>"&#41;;
break;
&
#125;
$x1='';

$s1='<A HREF="chat/users_popupL.php3?From=..%2FphpMyChat.php3&L=english" CLASS="ChatLink" onClick="users_popup&#40;&#41;; return false" TARGET="_blank">';
$s2=" user";

$a1=strpos&#40;$z,$s1&#41;;
if &#40;$a1&#41; &#123;$z=substr&#40;$z,$a1+strlen&#40;$s1&#41;&#41;;&#125; else &#123;echo "#### chatcheck error&#58; didn't find first string ####<BR>";&#125; // trim up to 

$a2=strpos&#40;$z,$s2&#41;;
if &#40;$a2&#41; &#123;$nu=substr&#40;$z,0,$a2&#41;;&#125; else &#123;echo "#### chatcheck error&#58; didn't find second string  ####<BR>";&#125; // extract

if &#40;$nu==0&#41; &#123;echo "Nobody chatting at this moment";&#125; else
if &#40;$nu==1&#41; &#123;echo "There is currently 1 user in chat";&#125; else
&#123;echo "There are currently ".$nu." users chatting";&#125;

echo "</a></body></html>";

##########################

function PageGet&#40;$sURL, &$sPage&#41; &#123;
$errmsg "";
$sPage "";
if &#40;&#40;$nCursor = strpos&#40;$sURL, '/'&#41;&#41; > 0&#41; &#123;
$sServer substr&#40;$sURL, 0, $nCursor&#41;;
$sURL substr&#40;$sURL, $nCursor&#41;;
&#125; else &#123;
$sServer $sURL;
$sURL "/";
&#125;

$fp fsockopen&#40;$sServer, 80, $nErr, $errmsg, 30&#41;;
if &#40;!$fp&#41; &#123;
break;
&#125;
$sReq 
"GET ".$sURL." HTTP/1.0\r\n".
"User-Agent&#58; Robot-Code &#40;chatcheck.php&#41;\r\n".
"Pragma&#58; No-Cache\r\n".
"Host&#58; ".$sServer."\r\n".
"Accept&#58; */*\r\n".
"\r\n";
fputs&#40;$fp, $sReq&#41;;
for &#40;$i = 0; !feof&#40;$fp&#41;; $i++&#41; &#123;
$sTemp fgets&#40;$fp, 4096&#41;;
if &#40;!$i&#41; &#123;
$nTemp 555;
if &#40;&#40;$nCursor = strpos&#40;$sTemp, ' '&#41;&#41; > 0&#41; &#123;
$nTemp intval&#40;substr&#40;$sTemp, $nCursor + 1&#41;&#41;;
&#125;
if &#40;$nTemp != 200&#41; &#123;
$errmsg substr&#40;$sTemp, $nCursor + 1&#41;;
break;
&#125;
&#125;
$sPage .= $sTemp;
&#125;
fclose&#40;$fp&#41;;
return &#40;$errmsg&#41;;
&#125;
?>

</body></html>

Use at your own risk. ;)
Eschew paradigm obfuscation

Mike Burgundy

Now I'm confused. That link is letter-for-letter the sameas what's in my bookmarks - but it DOES work now.

puretube

look closer at the URL after the " .com/" ...