Comments on: How to add a list of users in your GeekShed IRC channel to your website https://www.geekshed.net/2010/04/how-to-add-a-list-of-users-in-your-geekshed-irc-channel-to-your-website/ GeekShed IRC Network Sun, 31 Aug 2014 02:23:35 +0000 hourly 1 https://wordpress.org/?v=4.5.3 By: Phil https://www.geekshed.net/2010/04/how-to-add-a-list-of-users-in-your-geekshed-irc-channel-to-your-website/#comment-306 Thu, 08 Apr 2010 13:42:33 +0000 http://www.geekshed.net/?p=973#comment-306 Put in a header('Content-Type: text/xml; charset=ISO-8859-1'); which should fix some issues people are having with various parsers. Also means that browsers with XML support will parse the raw XML into a pretty style.

Phil

]]>
By: OriginalThing https://www.geekshed.net/2010/04/how-to-add-a-list-of-users-in-your-geekshed-irc-channel-to-your-website/#comment-305 Thu, 08 Apr 2010 13:28:18 +0000 http://www.geekshed.net/?p=973#comment-305 Wow thats fairly handy. Ive been playing with the XML logs my chat client outputs and using PHP in combination with some AJAX.
As a little mini project to test my abilities/to learn something new i made a web view of these logs which update as the logs grow.
Now with this I could have a user list next to this which would be nice. Something for me to do to reinforce what i have learnt so far.

One thing though, this may be picking at something purely cosmetic but I noticed that the Content-type of this XML is text/html and iirc ive had issues with some javascript engines not liking this and wanted a text/xml content type. I cant remember the exactly what i was trying to do or which browsers but to avoid issues maybe header('Content-type: text/xml'); could be added into your PHP script (not to the example but the file located at http://www.geekshed.net/usertable.php)

Up to you whether you bother doing this or not as it could be more effort than worth. Its up to you :).

]]>
By: Phil https://www.geekshed.net/2010/04/how-to-add-a-list-of-users-in-your-geekshed-irc-channel-to-your-website/#comment-285 Mon, 05 Apr 2010 15:00:29 +0000 http://www.geekshed.net/?p=973#comment-285 Eh, it’s server side code that does nothing but generate a HTML table. If your browsers crash then it is the fault of your computer.

Phil

]]>
By: Corey https://www.geekshed.net/2010/04/how-to-add-a-list-of-users-in-your-geekshed-irc-channel-to-your-website/#comment-277 Mon, 05 Apr 2010 13:09:32 +0000 http://www.geekshed.net/?p=973#comment-277 I believe that phil fixed a minor issue with it. If you are still having issues, let us know.
It works fine here

]]>
By: pico https://www.geekshed.net/2010/04/how-to-add-a-list-of-users-in-your-geekshed-irc-channel-to-your-website/#comment-272 Mon, 05 Apr 2010 12:19:55 +0000 http://www.geekshed.net/?p=973#comment-272 It crashes firefox, and google chrome.

]]>
By: Phil https://www.geekshed.net/2010/04/how-to-add-a-list-of-users-in-your-geekshed-irc-channel-to-your-website/#comment-269 Mon, 05 Apr 2010 09:34:19 +0000 http://www.geekshed.net/?p=973#comment-269 Little need to do that. RSS is just XML anyway so it’s a very similar concept to put the topic from RSS on your site:

< ?php // Edit This $chan = 'phil'; // Don't edit this $xml = simplexml_load_file('http://rss.geekshed.net/?type=single&channel='.$chan); ?>


#< ?php echo $chan; ?> Topic: < ?php echo $xml->channel->item->description; ?>

]]>
By: Soiled Bargains https://www.geekshed.net/2010/04/how-to-add-a-list-of-users-in-your-geekshed-irc-channel-to-your-website/#comment-256 Mon, 05 Apr 2010 00:27:59 +0000 http://www.geekshed.net/?p=973#comment-256 This is pretty cool. Have you ever thought about merging this with the channel topic RSS feed into a tiny API?

]]>