SRL Archive - News and General

My Signature Widget


Harry

2009-04-01 15:23:32

Welcome. Here is my release of my signature widget :)

What it does: You go to SRL's IRC, and say "!sig <what text you want in my signature>". Then, it will automatically add it to the sig :)

I might release the code in a few weeks.

Mucho thanks to Laser, Blobbie1 @ ##mIRC on Freenode, and Faty.


Please don't be an idiot and try to abuse it, or put offensive stuff in there, this project is just for fun, and will get more users to #SRL . Don't be a douche. Kthx.

Enjoy, and have fun, and flock to the IRC!
~ Harry

For those of you who are lazy / don't have an IRC client, go to the mibbit client here. http://hy71194.mgatesphoto.com/srlchat

NiiX

2009-04-01 15:39:38

This is so awesome!

Thanx for this, I think that you should make VIP or something so people can donate to you (like 1$) and then that money goes to the Villavu payments and that person gets one of these in their sig.

Could be like

!sig Name Text

just a thought ;)

Torrent of Flame

2009-04-01 15:43:55

From: Niixu
This is so awesome!

Thanx for this, I think that you should make VIP or something so people can donate to you (like 1$) and then that money goes to the Villavu payments and that person gets one of these in their sig.

Could be like

!sig Name Text

just a thought ;)


Why would he make something, sell it then give the money to VillaVu?

NiiX

2009-04-01 15:47:12

To help out the community by paying a small part of the payments needed for it to run mby?

Idk, its really just a thougt

Harry

2009-04-01 15:50:14

To be honest, the bandwidth this requires would cost Villavu more than $1 :rolleyes: But it is a nice idea, but it would probably fail.

NiiX

2009-04-01 15:51:59

From: Harry
To be honest, the bandwidth this requires would cost Villavu more than $1 :rolleyes: But it is a nice idea, but it would probably fail.


I love this tho xD

Heres a smaller idea, easier to do aswell, being able to click on links in the sig, idk how it would work or if its possible but that would be awsume

Harry

2009-04-01 15:54:12

From: Niixu
I love this tho xD

Heres a smaller idea, easier to do aswell, being able to click on links in the sig, idk how it would work or if its possible but that would be awsume

Would be impossible, as I can't have the PHP image change the signature's URL. ;)

Bobarkinator

2009-04-01 17:15:08

How do you get your bot to stay on in PHP indefinitely? The only way I was able to do it was that I had to have the actual page open for my bot to connect.

Harry

2009-04-01 17:24:27

From: Bobarkinator
How do you get your bot to stay on in PHP indefinitely? The only way I was able to do it was that I had to have the actual page open for my bot to connect.

Nope. I have my mIRC client, (which is always on), connect to a PHP page, "index.php?<my secret keyword (it tis a long MD5 hash, so don't try to guess it :_)>=<what was said in mIRC>" and it updates the text file, which the image uses to generate.

Tniffoc

2009-04-01 22:09:22

This gave me an idea… yes.. Another Tniffoc IRC Bot.

Harry

2009-04-01 22:19:04

Would you guys stop being jerks and doing the exploit you found to mess up my connection? Thanks. :mad: :mad: :mad: :mad:

It is not funny anymore.

Tniffoc

2009-04-01 22:23:03

From: Harry
Would you guys stop being assholes and doing the exploit you found to messup my connection? Thanks. :mad: :mad: :mad: :mad:

What exploit? :(

Harry

2009-04-01 22:25:29

From: Tniffoc
What exploit? :(

You know what it is….. stop it. All of you. It is not funny anymore.

Griff

2009-04-01 22:44:56

From: Harry
All of you. It is not funny anymore.


Maye a little bit? :p Anyways, this looks cool, but tbh the payment thing wouldn't work, as you said.

Harry

2009-04-02 10:25:11

From: griff721
Maye a little bit? :p Anyways, this looks cool, but tbh the payment thing wouldn't work, as you said.

Meh, I am gonna fix the bug when I get back from school hopefully :rolleyes:

Tniffoc

2009-04-02 11:30:58

From: Harry
You know what it is….. stop it. All of you. It is not funny anymore.


No. Really. I don't know it… :(

Harry

2009-04-02 14:20:23

From: Tniffoc
No. Really. I don't know it… :(

Lies :p

Changed the host. Should go much faster now.

ashender

2009-04-02 17:01:06

nice idea

NiiX

2009-04-02 17:14:28

Is this 'bug' the fact that you can fill up the sig with crap text?

Harry

2009-04-02 17:20:57

From: Niixu
Is this 'bug' the fact that you can fill up the sig with crap text?

No. It was a flaw in the code that allowed PHP characters (IE %A0) to be sent, making weird spaces and faked quotes, etc. But I fixed it :D

Brain

2009-04-03 01:22:55

How quickly does it update?

edit:
very quickly I see, but only in #hy71194, not #srl?

Harry

2009-04-03 01:25:03

From: Brain
How quickly does it update?

Instantly every time the command is sent :D

It only works in #SRL

Brain

2009-04-03 01:27:35

is there a log of past sigs?
or perhaps a huge sig you could add?

Harry

2009-04-03 01:29:55

From: Brain
is there a log of past sigs?
or perhaps a huge sig you could add?

I could do it. Tomorrow. Will only need 1 line edited.

Brain

2009-04-03 01:41:22

eh, no big deal, just kinda curious what kind of abuse has been going on

Bobarkinator

2009-04-03 09:10:02

From: Brain
eh, no big deal, just kinda curious what kind of abuse has been going on


Awesome abuse.

Harry

2009-04-04 13:41:12

K, it should make a log of all things said into it :rolleyes:

http://harry.talkflack.com/sig.gif/textall.txt

Enjoy looking at all the abuse :p It will limit that to only 50 lines though, so it won't make a huge file. (Though I doubt people will abuse it)

Fixed the escape char problem when someone did a ' symbol.

Update: Temporary disabled until I work a few things out with Wizzup.

Reenabled nao

Myhatisblack

2009-04-26 23:51:33

:o Mah IRC name is in teh link. o.O

Harry

2009-05-02 02:20:35

Hi ya guize! I got it re-enabled now.


Harry

2009-05-06 00:57:39

The last line is now right-aligned, thanks to Freddy1990 ^_^

Also, I am considering making it Open-Sauce. Any comments on that idea?
Only problem I see with that is tons of nubs using it, it will feel less 'special' to me (:

MylesMadness

2009-05-08 03:21:59

From: Harry
The last line is now right-aligned, thanks to Freddy1990 ^_^

Also, I am considering making it Open-Sauce. Any comments on that idea?
Only problem I see with that is tons of nubs using it, it will feel less 'special' to me (:
Make it with with a error like a { backwards or somthing

Dynamite

2009-05-08 03:26:37

I think share the sauce in the members section ;)
Love it though :)

T~M

Harry

2009-05-08 03:34:06

From: Mylesmadness
Make it with with a error like a { backwards or somthing

As in "tons of nubs", I mean like just a lot of people using it, then putting their name into the credits, etc :/
From: The Man
I think share the sauce in the members section ;)
Love it though :)

T~M

Thanks :D

Shuttleu

2009-05-08 03:50:48

so if i say its yours then i can have it in my sig?

~shut

Harry

2009-05-08 04:03:23

Sure, feel free to. :) I just do not want a ton of people using the PHP code if I was to post it, then making their own bot idle at IRC as a total rip-off of this project.

Shuttleu

2009-05-08 04:08:00

ty
all done

~shut

MylesMadness

2009-05-08 04:09:04

To be honest I just want to see how you did the image writing…

Harry

2009-05-08 04:13:44

From: Mylesmadness
To be honest I just want to see how you did the image writing…

Sure thing captn.

[PHP]$lines = explode("\n",file_get_contents('text.txt'));[/PHP]
[PHP]$img = imagecreate(512, 100);
imagecolortransparent($img, $bg);
$x = XOFFSET;
$y = YOFFSET;

foreach ($lines as $line)
{
$output = array();
$line = stripslashes($line);

$color = 1;

$parts = explode(".", $line);
for ($i = 0; $i < count($parts); $i++)
{
$part = $parts[$i];

if ($i > 0) // Always skip first element because of the explode
{
if (ereg("^[0-1][0-9]?", $part, $code) && $code[0] <= count($colorTable)-1) // if this part has a code
{
$part = substr($part, strlen($code[0])); // strip code
$color = intval($code[0]);
}
else
{
$output[$i-1][0] .= ".";
$color = 1;
}
}

$output[$i] = array($part,$color);
}

foreach($output as $temp) {
imagestring($img, FONT, $x, $y, $temp[0], AllocateMircColor($temp[1]));
$x += (strlen($temp[0])*WIDTH);
}

$x = XOFFSET;
$y += HEIGHT;
}
//$IPADDR = '255.255.255.255';
imagestring($img, FONT, XOFFSET + 102 - strlen($IPADDR) * 5, $y,
" Hey there " . $IPADDR .", you are the " . $count[1] . "th hit to my signature :)", AllocateMircColor(13));

MakeBorder($img, AllocateMircColor(4)); // my own little func, not for you :D

header("Expires: Mon, 5 Jun 1999 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Content-type: image/gif");

imagegif($img); // sends to browser
imagedestroy($img);[/PHP]
Hopefully you can understand that :rolleyes: :)

Shuttleu

2009-05-08 04:50:21

[php]header("Expires: Mon, 5 Jun 1999 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Content-type: image/gif"); [/php]
what is all that for?

~shut

Harry

2009-05-08 04:51:23

That portion of the code defines the properties of the image, so people with fail browsers do not get errors :) It also defines the properties, such as to not cache the image in their browser.

Harry

2009-05-14 09:52:31

SOURCE?! YOU CAN HAS

http://www.hawkee.com/snippet/6139/

Enjoy, please do not use it here though, I only released so you could learn off the source code. :)

Iron Man

2009-05-14 10:16:04

Nice.. you finally posted source! Good way to go. :D

Harry

2009-05-30 07:16:25

From: Iron Man
Nice.. you finally posted source! Good way to go. :D

Thanks :D

Ogre

2009-05-30 11:08:33

Double post!

Harry

2009-05-30 18:48:16

From: Ogre
Double post!

Wat?

Camaro'

2009-06-29 07:01:08

I thought you said you dont know php >.<

nahiyan

2009-07-11 19:33:08

The code is pretty easy to find out :D
Should I post it? :rolleyes:

EDIT : Wait I shouldn't… Can I put it in my sig and…. Wait my sig is full lol… I have to think of a new one…