Log in

View Full Version : WLM Signature



timROGERS
11-03-2007, 11:46 AM
I've just coded myself one :) Shall I release the code?

Colin-Roberts
11-03-2007, 12:13 PM
yes plz. dentafrice owes me a copy but w.e

benjamin
11-03-2007, 12:14 PM
yeah!!

Tomm
11-03-2007, 01:23 PM
Don't release it to just anyone lol. Select who you want to have it :P

TFerg006
11-03-2007, 01:44 PM
Yes Please ;) Ill +REP if i get a copy :D (on the 15th when I get Jaffa Cakes! back ;))

the wombats
11-03-2007, 01:51 PM
don't just give it out. give it to certain people or make them abit on uploadz. :)

Blob
11-03-2007, 02:09 PM
don't just give it out. give it to certain people or make them abit on uploadz. :)

That is Tomms message in "bad" talk everyone.

Elitesean
11-03-2007, 02:41 PM
Why does everyone insist on keeping code private?
I'd like to see it, personally I'd share it, not like it's top secret :|

cocaine
11-03-2007, 02:48 PM
well if you're gonna hide it from everyone then theres no point in mentioning you have one :rolleyes:

TFerg006
11-03-2007, 03:17 PM
Yes, basically this thread is to show off, as he isnt going to release it "/

timROGERS
11-03-2007, 05:05 PM
Why does everyone insist on keeping code private?
I'd like to see it, personally I'd share it, not like it's top secret :|


Yes, basically this thread is to show off, as he isnt going to release it "/

You two don't know me, so don't accuse my of doing things that I haven't done. I'm going to give out the code now, and I was intending to if people wanted it.

All you need to do is install the Status2FTP plugin (http://www.leejeffery.co.uk/Status2FTP/Status2FTP.plsc) for Messenger Plus Live. Open a conversation, click the Messenger Plus button then set it up with the FTP details for your hosting. Before you click OK, use your name FTP client or cPanel to make the folder you gave it. Then, in the following code, change $data_source to the URL of the XML file and then upload the script, the template image, the HTACCESS file and the font into the same directory as the XML file.

Here is the code:


<?php
/* WLM Status Signature */

/* Begin GetStringBetween function */
function get_string_between($string, $start, $end){
$string = " ".$string;
$ini = strpos($string,$start);
if ($ini == 0) return "";
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
return substr($string,$ini,$len);
}
/* End GetStringBetween function */

/* Begin to get the WLM data */
$data_source = "http://www.uploadz.co.uk/tim/wlm/data.xml";
$data = file_get_contents($data_source);
$nickname = get_string_between($data, "<CleanUsername>", "</CleanUsername>");
$psm = get_string_between($data, "<CleanPSM>", "</CleanPSM>");
$status = get_string_between($data, "<Status>", "</Status>");
$dp = imagecreatefrompng("dp.png");
/* Finished getting WLM data */


/* Form the image */
$font = "segoeui.ttf";
$image = imagecreatefrompng("template.png");
$black = imagecolorallocate($image, 0, 0, 0);
imagettftext($image, 8, 0, 183, 32, $black, $font, $nickname);
imagettftext($image, 8, 0, 227, 63, $black, $font, $psm);
imagettftext($image, 8, 0, 162, 92, $black, $font, $status);
imagecopy($image, $dp, 11, 12, 0, 0, 96, 96);
/* Image has been formed */

/* Display image and free memory */
header("Content-type: image/png");
imagepng($image);
imagedestroy($dp);
imagedestroy($image);
/* Finished */
?>


and here is the ZIP file (http://www.uploadz.co.uk/524wlmstatussignature.rar) with the htaccess to make it work on Habbox Forum, the font file and the template image.

Elitesean
11-03-2007, 05:17 PM
NintendoNews I didn't mean it like that,
I know you wanted to give it out, I was pointing out the people saying
"omg give it to pplz who ask lolz dont share it publicly!!"

Jahova
11-03-2007, 05:20 PM
How do you put it into your sig?

timROGERS
11-03-2007, 05:22 PM
The normal way. The only difference is that you need to use an htaccess file to make HabboxForum accept it.

Jahova
11-03-2007, 05:25 PM
whats the code to put it into my sig?
i no that other part..

Colin-Roberts
11-03-2007, 05:30 PM
i keep getting connection failed even tho the details are perfect.

timROGERS
11-03-2007, 05:32 PM
You can't have a trailing "/" on the end of the path, and the directory has to exist already.

Robbie
11-03-2007, 06:00 PM
Works great, thanks
http://www.habboauction.com/siggay/signature.gif

Verrou
12-03-2007, 07:14 AM
Wahh, i don't get it lol, can you just make the Zip file with all the needed files, rather than us having to create files.

Btw, what if we don't have msn plus...

Verrou
15-03-2007, 05:16 AM
http://andrehamon.evenhosting.com/msn/signature.php eek?

Tomm
15-03-2007, 07:40 AM
http://andrehamon.evenhosting.com/msn/signature.php eek?

You need to install the WLM Plus plugin called Status2FTP and let it upload to your msn directory.

Colin-Roberts
15-03-2007, 12:23 PM
cant have a very long personal message or name it cuts it off.

Luckyrare
15-03-2007, 12:45 PM
Small fix for itunes, gets rid of a load of crap. I have only tested this on Bens so please report any problems...



$psm = get_string_between($data, "<CleanPSM>", "</CleanPSM>");
$psm_count = strlen($psm);
$psm = substr($psm, 0, 33);
Replace with



$psm = get_string_between($data, "<CleanPSM>", "</CleanPSM>");

/* Clean up iTunes */
$psm = str_replace('ITunes\0Music\01\0{0} - {1}\0',' ', $psm);
$psm = str_replace('\0',' - ', $psm);
/* Clean up iTunes */

$psm_count = strlen($psm);
$psm = substr($psm, 0, 33);

benjamin
15-03-2007, 12:46 PM
Small fix for itunes, gets rid of a load of crap. I have only tested this on Bens so please any problems say...



$psm = get_string_between($data, "<CleanPSM>", "</CleanPSM>");
$psm_count = strlen($psm);
$psm = substr($psm, 0, 33);


Replace with



$psm = get_string_between($data, "<CleanPSM>", "</CleanPSM>");

/* Clean up iTunes */
$psm = str_replace('ITunes\0Music\01\0{0} - {1}\0',' ', $psm);
$psm = str_replace('\0',' - ', $psm);
/* Clean up iTunes */

$psm_count = strlen($psm);
$psm = substr($psm, 0, 33);

on mine? ;o

edit: ooar it shows my song :D

Colin-Roberts
15-03-2007, 12:50 PM
nice realizticly that should be able to work with wmp.. ill work on my in a sec
what do you edit to change position of display pic ect?

$psm = get_string_between($data, "<CleanPSM>", "</CleanPSM>");

/* Clean up WMP */
$psm = str_replace('\0Music\01\0{0} - {1}\0\0\0\0\0',' ', $psm);
$psm = str_replace('\0','', $psm);
/* Clean up WMP */

$psm_count = strlen($psm);
$psm = substr($psm, 0, 33);almost works// look in sig lucky how do i remove Music 1 ?

Colin-Roberts
15-03-2007, 01:07 PM
can't edit anymore
$psm = get_string_between($data, "<CleanPSM>", "</CleanPSM>");

/* Clean up WMP */
$psm = str_replace('\0Music\01\0{0} - {1}\0\0\0\0\0',' ', $psm);
$psm = str_replace('\0','',$psm);
$psm = str_replace('Music','',$psm);
$psm = str_replace('1','',$psm);
/* Clean up WMP */

$psm_count = strlen($psm);
$psm = substr($psm, 0, 33);edit figured out how to move just need to change font colour?

Luckyrare
15-03-2007, 01:31 PM
can't edit anymoreedit figured out how to move just need to change font colour?

Change this

$black = imagecolorallocate($image, 0, 0, 0);

To this for white

$black = imagecolorallocate($image, 255, 255, 255);

You can use any RGB code ;)

Colin-Roberts
15-03-2007, 01:33 PM
ye thanx jsut got that i was trying hex then i looked in paint and was like oh RGP

Luckyrare
15-03-2007, 03:58 PM
Just added "last song" using last.fm

http://www.uploadz.co.uk/danny/wlm/signature.php

Ill give the code out if anyone would like it.

Verrou
16-03-2007, 03:58 AM
Hmmm i have installed Status2FTP?

timROGERS
17-03-2007, 02:28 PM
Small fix for itunes, gets rid of a load of crap. I have only tested this on Bens so please report any problems...



$psm = get_string_between($data, "<CleanPSM>", "</CleanPSM>");
$psm_count = strlen($psm);
$psm = substr($psm, 0, 33);
Replace with



$psm = get_string_between($data, "<CleanPSM>", "</CleanPSM>");

/* Clean up iTunes */
$psm = str_replace('ITunes\0Music\01\0{0} - {1}\0',' ', $psm);
$psm = str_replace('\0',' - ', $psm);
/* Clean up iTunes */

$psm_count = strlen($psm);
$psm = substr($psm, 0, 33);


Nice on Danny :)

the wombats
17-03-2007, 02:31 PM
can anyone make a fix for vlc (video lan client). tis what i use.

Luckyrare
17-03-2007, 04:00 PM
can anyone make a fix for vlc (video lan client). tis what i use.

Done over MSN

Kasabian
17-03-2007, 04:40 PM
http://tomlol3.100webspace.net/WLM/signature.php

:8

the wombats
17-03-2007, 04:41 PM
http://tomlol3.100webspace.net/WLM/signature.php

:8

very good thomas.

Kasabian
17-03-2007, 04:50 PM
Danke craig.

Verrou
18-03-2007, 12:40 AM
Argh mine still doesnt work!

Verrou
18-03-2007, 04:03 AM
Soz i can't edit, ok i've setup Status2FTP and when i put in all the details, i get Succesfully Updated Details, or w/e it says popup as a toast. Then i try to goto it: http://andrehamon.evenhosting.com/msn/invent/signature.php and i get an error, but when i check the directories theres no data.xml or dp.png?

See: http://andrehamon.evenhosting.com/msn/invent/

Someone please help?

Tomm
18-03-2007, 09:09 AM
Make sure you have got the right directory in Status2FTP for it to upload to


Soz i can't edit, ok i've setup Status2FTP and when i put in all the details, i get Succesfully Updated Details, or w/e it says popup as a toast. Then i try to goto it: http://andrehamon.evenhosting.com/msn/invent/signature.php and i get an error, but when i check the directories theres no data.xml or dp.png?

See: http://andrehamon.evenhosting.com/msn/invent/

Someone please help?

TehJoshy
20-03-2007, 02:11 AM
Just a Couple of Questions, i have my template all set up, im just need to know how to adjust the text size && position. also is there a way to add a stroke effect to the text.

Want to hide these adverts? Register an account for free!