Concerning #tls... a community rant

Fangu

Great Old One
Also, Fangu wins the post of the year competition, \o/. Should we chuck that onto the /chat page or the IRC thread?
Sure, let me brush it up:

STEP 1

step1_zpsa671b91a.png


This goes in your address bar. If you can't find your address bar, good luck with life in general.


STEP 2

step2_zps2c9129ee.png


You can put your nick right in here, but to open the app in a new tab, click on 'here' (not this here, and not the one in that image, but the one that follows after completing step 1 - if you managed)


STEP 3

step3_zps252174cf.png


Now think of something DIFFERENT than BananaKing. If you really have no imagination, you can always use PineappleKing or whatevs. Typically, this nick should resemble the one you have on the forum, but since the two are not connected in any way technically, it's all up to you. LEAVE THE PASSWORD FIELD BLANK. I REPEAT. LEAVE IT BLANK. This goes for EVERYONE.
If you already registered and know the command for identifying, leave the password field blank and identify when you are in. iPocalypse's identifying commands are a bit irregular from other servers, and so the built in command in the app don't match the server, and therefore will not work until someone on the app team fixes it.

FAQ
Q: Does this mean anyone can enter on my nick????!!!
A: No. Or, it means they can enter with your nick just as if they were using a regular client (like mIRC), but the server will ask for a password, then change their nick if they fail to register. Just as with mIRC. The app is just another way to enter #tls, but the rules are the same.

When you have successfully managed to type out 4-12 letters (preferably something a bit more original than 'Dave' or 'Legolas' - I won't trouble you with the explanation for that, just do as I say) click 'Start'.


HURRAH!

step4_zps66876ae6.png


This is all you need to do, really. WELCOME TO #tls! Now was that hard? Not verily.

Also, should you get an error message when clicking Start, click it again, usually it works the second tme.

Now, there's this thing about having the notification bar on your computer blink when there's new messages in the channel. Sadly this isn't working for me at the moment - but that could be Adblock or something.

So, should you want to explore this: Click on the toolbar thingy as shown in the picture above.

Congratulations! You are now in Settings. Look for this:

step5_zps3fd9b6a8.png


Click it and see if you can make something out of it.
iPocalypse is currently having a netsplit, by the way. So if you show up and the room is empty, try again later. (No, this doesn't happen very often. No, it's not an argument against #tls. :P)
 

Dawnbreaker

~The Other Side of Fear~
I like how it automatically spell-checks your words. Skype doesn't do that.

I don't like how it means I have to have the chrome window open when I play Neverwinter. It slows down the game (oh well).

also hoping this won't become a Skype vs. IRC thing (I don't anticipate that, though).
 

Telcontar

Donator
Can't this code be edited to display the number of users online at regular intervals?

<?php

/* CONFIGURATIONS! */
$irc_server = 'irc.rizon.net'; // Server
$irc_port = '6667'; // Port
$irc_nick = 'mxRocksMySocks'; // Nick
$irc_channel = '#anime-mx'; // Channel
/* END CONFIGURATIONS! */

$socket = fsockopen($irc_server,$irc_port); // Connect to the server.
fputs($socket,"USER SOCKS SOCKS SOCKS :SOCKS\r\n"); // Send the username.
fputs($socket,"NICK $irc_nick \r\n"); // Set our nick.
fputs($socket,"LIST $irc_channel \r\n"); // List the provided channel.

// $handle = fopen('log.txt',a); // Log if you want.

// Set initial value.
$users = 0;

// Receive the incoming data.
while(1) {
$sock_data = fgets($socket,1024); // Get each line of data from the response.
// fwrite($handle,"$sock_data\r\n"); // Write the log.

// Get the information section of the desired responses.
$sep = explode(':',$sock_data); // Separate by colons.
$info = $sep[1]; // After the first colon is the important information.
$message = $sep[2];

// Break down the response and get the id and who sent it.
$info_sep = explode(' ',$info); // Separate by spaces.
$full_who = $info_sep[0]; // The person who sent it is the first item in the list.
$id = $info_sep[1]; // The id is the second item in the list.
$who_sep = explode('!',$full_who); // Separate by exclamation points.
$who = $who_sep[0]; // The nick of the person is the part before the exclamation point.

// I saw some scripts checking for this, so...
if ($who == 'PING') {
fputs($socket,"PONG $message");
}

// PRIVMSG indicates someone is sending you a message.
// We just need this to reply to the VERSION and PING requests.
if ($id == 'PRIVMSG') {
if (substr($message, 0, 8) == 'VERSION') { // Reply to the version response.
fputs($socket,"NOTICE $who :".chr(1)."VERSION getUsers v0.1b".chr(1)."\r\n");
} elseif (strstr($message, 'PING') !== false) { // Ping them back if needed.
fputs($socket,"NOTICE $who :$message");
}
}

// 322 is the list response.
// This should get the number of users on the provided channel.
if ($id == '322') {
$users = $info_sep[4]; // The number of users.
// fclose($handle); // Close the log.
fclose($socket); // Close the connection.
break; // End the loop.
}

// 323 is the end list response.
// This is in case there is no 322 response (the channel doesn't exist, maybe?)
if ($id == '323') {
// fclose($handle); // Close the log.
fclose($socket); // Close the connection.
break; // End the loop.
}

// 263 is the failed response.
// Wait 2 seconds and retry.
if ($id == '263') {
sleep(2); // Pause for 2 seconds.
fputs($socket,"LIST $irc_channel \r\n"); // List the provided channel.
}
}

// Display the results on the page.
if ($users == '1') {
echo "There is 1 user in $irc_channel.";
} else {
echo "There are $users users in $irc_channel.";
}

?>
 

Cthulhu

Administrator
AKA
Yop
Yeah it probably could, we'd have to adjust it to work with vB or the front page though, which TBH is kind of a shit job and I haven't a clue :monster:. Also by the looks of it, it'll create a new connection with the IRC server for every page view; wouldn't want that, it'd create dozens of connections per page view on tls, which would probably have TLS' server get an IP ban from the IRC server pretty quickly; ergo, it'd have to have a scheduled task to do the check, then store that into a database or wherever, which a plugin in the forums can then read again.
 

Flintlock

Pro Adventurer
Sometime this week I'll install mIRC on my computer again and make it auto-join #TLS when I boot up. It'll only be on in the background but people can say Flintlock if they want my attention :)

University is about to start for me soon, which means I'll actually have more time on my hands than I have done for most of the summer. I want to be a bigger part of this community again.
 

Carlie

CltrAltDelicious
AKA
Chloe Frazer
I've tried logging in a few times this past week but it just kept me on loading.
 

Telcontar

Donator
Yeah it probably could, we'd have to adjust it to work with vB or the front page though, which TBH is kind of a shit job and I haven't a clue :monster:. Also by the looks of it, it'll create a new connection with the IRC server for every page view; wouldn't want that, it'd create dozens of connections per page view on tls, which would probably have TLS' server get an IP ban from the IRC server pretty quickly; ergo, it'd have to have a scheduled task to do the check, then store that into a database or wherever, which a plugin in the forums can then read again.

Ramboth.jpg
 
Last edited:
Top Bottom