Skip to content
General IRCd

Ircd Roomlist

A TG007 community discussion started by kevin2k3.

Discussion 18 posts
Page 1 of 1
Open
Topic #11519 · 18 published posts · 6,351 views

I am looking for a IRCD roomlist for my chat server, i tried a couple different ones i found on here but it does not show any rooms, just the empty table. can someone help me out with this?

 

btw i'm using unrealircd as my server.

 

 

Thanks.

yea, there are ones listed, but none of us are really bothered to make one to ensure it works for you.

 

please pick one, try and adapt it, and see if it works. there is another user working on the same problem as you right now, so see what they are doing. perhaps you can collaborate?

I tried unrealircd with the ones here as well, and couldn't get it working. Unreal is nice because it's free, unlike what I'm currently testing. It would be nice to have one though...

The tutorials are meant to give you a basic guideline, not do all the work for you. You have to know PHP to get them to work. They're made to get your brain working.

I know a bit of php and had no idea where to start with mine. The stuff in that file I had never even seen before until know.

 

Does it require major changes?

It depends on what you want to do with it. If you want it to join the room, then yes, it probably requires you to know moderate to advanced PHP. If you just want it to do the listing, then it probably wouldn't take much modifcation.

I talked with Kevin after he posted this, and thats all he was wanting to do was show the rooms. I figured out how to do the join now. I could help him with that much.

 

When I tried it with IRCD, even the one that was corrected for me in the other thread, It would just sit, take forever to load, show the top table (Users, Room, Topic). Then have nothing under it. However it works fine for IRCX.

I've got mine working fine for IRCX, and have been trying to get one working for him. I still have not gotten anything, could someone please help us out?

I don't think you should try run a chat network, if you don't know any basic coding towards it. Instead of asking here have either of you looked into learning the basics of PHP and how the IRC daemon works?

I don't think you should try run a chat network, if you don't know any basic coding towards it. Instead of asking here have either of you looked into learning the basics of PHP and how the IRC daemon works?

 

I know the basics of php, and know a good deal about the irc, but like everybody else, you learn new things everyday. However, this problem still exists, even after countless hours of trying things.

I don't think you should try run a chat network, if you don't know any basic coding towards it. Instead of asking here have either of you looked into learning the basics of PHP and how the IRC daemon works?

 

Funny that you should say that while having a link in siggy that point to a page that's title is "Everybody has to start somewhere."

:oops:

What one man can do, another can do!

nooone's perfect. look at me, I used too many o's and no grammar ....

 

 

Get over it.

 

 

Edit: Back to the topic. I believe this guy needs help with a room list for his IRCd network. Show us what you got so far. Maybe someone can see what your problem is.

Edited Nov 14, 2008 12:45 AM by Travis
I know the basics of php, and know a good deal about the irc, but like everybody else, you learn new things everyday. However, this problem still exists, even after countless hours of trying things.

 

You were asking me just about the same thing is 2 years ago!

You were asking me just about the same thing is 2 years ago!

 

I don't even know you, and we fixed the issue anyway..

Thanks, DJ helped me get it fixed :D

Edited Nov 14, 2008 2:28 AM by kevin2k3
Thanks, DJ helped me get it fixed :D

 

No problem.

if you have the problem fixed, perhaps you can post the result to allow others who may be in your predicament to try your solution?

 

Guys, this is a forum, we are here to learn, and teach. However, as some have suggested, a level of knowledge is somewhat expected when questions of greater difficulty are asked, such as what you have requested. We try our best to lead you in the right direction, and we may not always be able to provide the final state that you need, but the idea should be enough to get any experienced/knowledgeable person over the line.

Here is the final code.

 

<?php
include("header.php"); 
error_reporting(E_ALL ^ E_NOTICE);
    $botnick = "";
    $server = "";
    $port = "6667";
    $channel = "";
?>
<html>
<head>
<meta http-equiv="Content-Language" content="en">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Room List</title>
</head>
<body>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="AutoNumber1" style="border-collapse: collapse">
  <tr>
    <td width="8%" height="20" align="center" valign="middle" bgcolor="#FFFFCC" style="border-left:1px solid #333333;border-bottom:1px solid;border-top:1px solid #333333;FONT-FAMILY: verdana;FONT-SIZE: 8pt;TEXT-DECORATION: none;"> Users</td>
    <td width="15%" height="20" align="left" valign="middle" bgcolor="#FFFFCC" style="border-bottom:1px solid;border-top:1px solid #333333;FONT-FAMILY: verdana;FONT-SIZE: 8pt;TEXT-DECORATION: none;"> Roomname:</td>
    <td width="77%" height="20" align="left" valign="middle" bgcolor="#FFFFCC" style="border-right:1px solid #333333;border-top:1px solid #333333;FONT-FAMILY: verdana;FONT-SIZE: 8pt;TEXT-DECORATION: none;"> Topic:</td>
  </tr>
<?php
    $fp = fsockopen($server, $port, $errno, $errstr, 30);
    if (!$fp) {
        echo "$errstr ($errno)<br />\n";
    }
    else {
        fputs($fp,"USER $botnick $botnick 127.0.0.1 :php\n");
        $nick = $botnick . rand(10000,99999);
        fputs($fp,"NICK $nick\n");
        while (!feof($fp)) {
            usleep(50);
            $fget = @fgets($fp, 128);
            //echo "$fget <br>\n";
            $match = explode(" ", $fget);
            $fget = ereg_replace ("\n", "", $fget);
            $fget = ereg_replace ("\r", "", $fget);
            if ($match[1] == "001") {
                fputs($fp,"LIST\n");
            }
else if ($match[0] == "PING") {
                fputs($fp, "PONG " . $match[1]);
            }
            else if ($match[1] == "433") {
                $nick = $botnick . rand(10000,99999);
                fputs($fp,"NICK $nick\n");
            }
            else if ($match[1] == "323") {
                fputs($fp, "QUIT :bye!\n");
                break;
            }
            else if ($match[1] == "322") {
                $match[3] = ereg_replace ("#", "", $match[3]);
                if (eregi ("$channel(.*)", $match[3], $chan)) {
                    $topic = explode(":", $fget);
                    unset($topic[0]);
                    unset($topic[1]);
                    $topic = implode(":", $topic);
                    if ($color == "FBFBF7") {
                        $color = "FFFFFF";
                    }
                    else {
                        $color = "FBFBF7";
                    }
                    ?>
  <tr>
    <td width="8%" align="center" valign="middle" bgcolor="#<?php echo $color; ?>" style="border-top:1px solid #333333;border-left:1px solid #333333;border-bottom:1px solid #333333;FONT-FAMILY: verdana;FONT-SIZE: 8pt;TEXT-DECORATION: none;"><?php echo $match[4]; ?></td>
    <td width="15%" style="border-bottom:1px solid #333333;bordertop:1px solid #333333;border-top:1px solid #333333;FONT-FAMILY: verdana;FONT-SIZE: 8pt;TEXT-DECORATION: none;" bgcolor="#<?php echo $color; ?>"> <a href="http://chatterupchat.webhop.org/chat/channel.aspx?value=<?php echo $chan[1]; ?>&member=XS803m">
      <?php echo $chan[1]; ?>
      </a></td>
    <td width="77%" style="border-right:1px solid #333333;border-bottom:1px solid #333333;FONT-FAMILY:;border-top:1px solid #333333; verdana;FONT-SIZE: 8pt;TEXT-DECORATION: none;"bgcolor="#<?php echo $color; ?>"> 
      <?php echo $topic; ?></td>
  </tr>
                      <?php
                }
            }
        }
        fclose($fp);
    }
?>
</table>
</body>
</html>