PDA

View Full Version : WLM Signature [RELEASE]



timROGERS
11-03-2007, 05:15 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.

lick me
11-03-2007, 05:16 PM
i downloaded the thing, extracted files.

now i'm confused

timROGERS
11-03-2007, 05:17 PM
i downloaded the thing, extracted files.

now i'm confused

Have you installed the plugin and set it up?

Moh
11-03-2007, 06:18 PM
lol @ mine:
http://www.habbobank.com/sig/sig.php

Robbie
11-03-2007, 06:18 PM
Just to confirm, this works great

benjamin
11-03-2007, 06:19 PM
Have you installed the plugin and set it up?
No, when it says open a msn window and click the windows plus icon, i don't know what to do next.

Moh
11-03-2007, 06:22 PM
No, when it says open a msn window and click the windows plus icon, i don't know what to do next.
it does, mine works:
http://www.habbobank.com/sig/sig.php

Blob
11-03-2007, 06:24 PM
it does, mine works:
http://www.habbobank.com/sig/sig.php

Mine works and owns yours :D LIL IMG THING!

http://www.froobe.co.uk/sig/sig.php

benjamin
11-03-2007, 06:25 PM
it does, mine works:
http://www.habbobank.com/sig/sig.php
If you read what I posted, you'd see I never said it didn't work, I said i didn't know what to do.

timROGERS
11-03-2007, 06:25 PM
I'll add the image thing when I find the images :P I've updated mine to a more Vista look, using Aurora for the background.

Moh
11-03-2007, 06:26 PM
If you read what I posted, you'd see I never said it didn't work, I said i didn't know what to do.
Oh sorry, I though u quoted the post above mine +Rep for the mistake rofl

benjamin
11-03-2007, 06:28 PM
Oh sorry, I though u quoted the post above mine +Rep for the mistake rofl
You can't rep me, I'm cautioned ^^

timROGERS
11-03-2007, 08:07 PM
In Version 1.1:


"WLM Aurora" style as default
Multiple Themes
String Cutting (If the data is too long, is cut down and has "..." on the end)
Status Images
Any suggestions I am given


If you have any suggestions, just post them :)

the wombats
12-03-2007, 07:19 PM
http://www.uploadz.co.uk/craig/wlm/signature.php
proper like well gd :8

Robbie
12-03-2007, 08:43 PM
indeed :)

OMGitsaROSS
12-03-2007, 08:52 PM
Where do I upload it to?

Invent
12-03-2007, 09:14 PM
Nice work Tim, if you need any more templates for it (pro or pixel) then just give us a msg ;)

timROGERS
12-03-2007, 09:20 PM
I am working on implementing a .xml templating system :P So it will be easy for everyone!

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