PDA

View Full Version : Msn status signature.



Kasabian
07-09-2006, 10:16 PM
Ok, so I was messing around with Winodws live messenger plus and downloaded Status2ftp. I have set this up, it uploads a .xml document(containing username, PSM[or my song title] and status) & a smaller version of my dp.


I was wondering how I could put the status etc(details.xml (http://www.habats.com/tommo/details.xml)) & the display picture(dp.png (http://www.habats.com/tommo/dp.png)) onto the windows live messenger background(bg.png (http://www.habats.com/tommo/bg.png[/url))

Cheers for any help..

index.html
08-09-2006, 08:30 AM
Sorry, Cant help you here. Maybe try Computer Talk/Computer Help?

Hoepfully someone should help you in there.

Sam

Hitman
08-09-2006, 10:19 AM
As the person above said, try Computer talk and you will recive a reply from there. This section is more to do with sites. :)

Hope you find what you need.

Steven.
08-09-2006, 10:22 AM
To be honest it doesn't have any relivance of Computer talk... :rolleyes:

Quite basically, you're wondering how you can make something that udates you're username and status for you're signature.

-- I suggest waiting for Joshuarrr or Mentor replying, they have better knowledge :P

Tomm
08-09-2006, 04:01 PM
You would need to learn GD and PHP's XML functions.

Kasabian
08-09-2006, 04:01 PM
Something like that Steven, but msn uploads a new version of details.xml & dp.png each minute.



You'll have to use a PHP page to 'paste' the data onto the image. There should be plenty of examples on the 'Net.


If anyone ould do that i'd be happy x]

Tomm
08-09-2006, 04:07 PM
http://us2.php.net/gd
http://us2.php.net/manual/en/ref.xml.php

Read them, they should help :)

Hitman
08-09-2006, 04:24 PM
To be honest it doesn't have any relivance of Computer talk... :rolleyes:

It's to do with msn, which it doesn't have anything to do with web sites, it'd make more sence in computer talk but whatever, it isn't the end of the world. :rolleyes::P

Kasabian
08-09-2006, 04:42 PM
It's to do with msn, which it doesn't have anything to do with web sites, it'd make more sence in computer talk but whatever, it isn't the end of the world. :rolleyes::P

It's to do with msn but technically it's XML/php stuff which is to do with websites, where as I would have posted it in the computer talk if it was Exe:rolleyes:

Anyway, I had to post this or Tom would have got me an infraction.

joshuar
08-09-2006, 04:58 PM
-- I suggest waiting for Joshuarrr or Mentor replying, they have better knowledge :P

i do hope you don't mean me :p i dont customise MSN much but are you like making it link to a website then?

Hitman
08-09-2006, 05:07 PM
It's to do with msn but technically it's XML/php stuff which is to do with websites, where as I would have posted it in the computer talk if it was Exe:rolleyes:

Anyway, I had to post this or Tom would have got me an infraction.

Hmm, true true. But, people who do this stuff maybe in computer forum, but I see where you're coming from. ;)

Hope you find how to do it!

Steven.
08-09-2006, 05:07 PM
It's to do with msn, which it doesn't have anything to do with web sites, it'd make more sence in computer talk but whatever, it isn't the end of the world. :rolleyes::P


It's to do with PHP, etc.. so this is the correct forum. :P

i do hope you don't mean me :p i dont customise MSN much but are you like making it link to a website then?

Nah, Nets - Josh. :P

i get what you mean Tom, ;) like i said though, read the threads Tom posted; or; wait till josh or Mentor to post, they'll lead you on the road. :P

Luckyrare
08-09-2006, 05:41 PM
Yes you would have to use GD. www.php.net/gd look at some of the comments if you don't understand it as they have some samples.

Kasabian
08-09-2006, 06:48 PM
Yeah, I'm new to php & html etc.. so it doesn't help.

If anyone could do it, I would love you forever.

nets
08-09-2006, 06:52 PM
<?php

header("Content-type: image/png");

$unparsed = file_get_contents('details.xml');
$xml = new SimpleXMLElement($unparsed);

$im = imagecreatefrompng('bg.png');

$dpl = imagecreatefrompng('dp.png');
list($DPLwidth, $DPLheight) = getimagesize('dp.png');

$dp = imagecreatetruecolor(54, 54);
imagecopyresized($dp, $dpl, 0, 0, 0, 0, 54, 54, $DPLwidth, $DPLheight);
imagecopymerge($im, $dp, 16, 38, 0, 0, 54, 54, 100);
$black = imagecolorallocate($im, 0, 0, 0);

imagestring($im, 3, 80, 43, $xml->Username, $black);
$dispWidth = (strlen($xml->Username)*7)+85;
imagestring($im, 2, $dispWidth, 43, '('.$xml->Status.')', $black);
imagestring($im, 3, 80, 43, $dispName, $black);

imagepng($im);

?>

Haven't tested.

Kasabian
08-09-2006, 06:59 PM
The image "http://www.habats.com/tommo/test.php" cannot be displayed because it contains errors.

:'( .

Kasabian
08-09-2006, 07:33 PM
Sorry for double post.

When I view the page source it displays this.

<br />
<b>Fatal error</b>: Cannot instantiate non-existent class: simplexmlelement in <b>/home/habats/public_html/tommo/test2.php</b> on line <b>6</b><br />

Tomm
08-09-2006, 08:07 PM
Sorry for double post.

When I view the page source it displays this.

<br />
<b>Fatal error</b>: Cannot instantiate non-existent class: simplexmlelement in <b>/home/habats/public_html/tommo/test2.php</b> on line <b>6</b><br />

You need PHP5 not PHP4.

Luckyrare
08-09-2006, 08:07 PM
Make sure your host supports GD =D Use phpinfo()

Tomm
08-09-2006, 08:09 PM
Make sure your host supports GD =D Use phpinfo()

The error is not related to GD :s

<br />
<b>Fatal error</b>: Cannot instantiate non-existent class: simplexmlelement in <b>/home/habats/public_html/tommo/test2.php</b> on line <b>6</b><br />

That function is only supported in PHP5 and its a XML function.

Luckyrare
08-09-2006, 08:17 PM
I was relating to this error tem.

The image "http://www.habats.com/tommo/test.php" cannot be displayed because it contains errors.

Tomm
08-09-2006, 08:24 PM
I was relating to this error tem.

The image "http://www.habats.com/tommo/test.php" cannot be displayed because it contains errors.

No that was only displayed because of the XML error. There is not a problem with GD.

nets
08-09-2006, 09:33 PM
http://www.****************/uploads/e20a5c7ec7.png
That's on Apache/2.0.55, PHP/5.1.2. What version of PHP are you running?

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