Web2Messenger Background Script! |
Author: |
Message: |
hmaster
Senior Member
Posts: 716 Reputation: 24
33 / /
Joined: Nov 2004
|
O.P. RE: Web2Messenger Background Script!
Lol nice
|
|
08-24-2005 04:58 PM |
|
|
guanako
Veteran Member
ALbert0
Posts: 1100 Reputation: 24
37 / /
Joined: May 2005
|
RE: Web2Messenger Background Script!
sorry guys i dont know how to use php but i got back ground
can anyone do it for me pliss, while this im gonna look up a php tutorial
http://www.web2messenger.com/status/guanako.png
Attachment: background2.png (2.7 KB)
This file has been downloaded 176 time(s).
This post was edited on 08-24-2005 at 05:58 PM by guanako.
|
|
08-24-2005 05:56 PM |
|
|
hmaster
Senior Member
Posts: 716 Reputation: 24
33 / /
Joined: Nov 2004
|
|
08-24-2005 09:59 PM |
|
|
guanako
Veteran Member
ALbert0
Posts: 1100 Reputation: 24
37 / /
Joined: May 2005
|
RE: Web2Messenger Background Script!
i got it now i wann learn how to change my background
This post was edited on 08-24-2005 at 10:21 PM by guanako.
|
|
08-24-2005 10:19 PM |
|
|
hmaster
Senior Member
Posts: 716 Reputation: 24
33 / /
Joined: Nov 2004
|
O.P. RE: Web2Messenger Background Script!
K cool, can you please host the file urself. The sig will be up until 2mrw
|
|
08-24-2005 10:26 PM |
|
|
Stab
Junior Member
MSN Sphere Creator.
Posts: 27
41 / / –
Joined: Jul 2005
|
RE: Web2Messenger Background Script!
code: <?php
//no error report because we whant an image so we don't need text in !!!
error_reporting(0);
// variables
// width of backgound image
$width = 468;
// height of background image
$height = 60;
// background path
$bgpng = "./images/bg.png";
// w2m image path
$w2mpng = "http://www.web2messenger.com/status/YOURNAME.png";
// create a new image and add colours
// create the image
$im = imagecreatetruecolor($width, $height);
// colour white
$white = imagecolorallocate($im, 254, 253, 254);
// border colour (grey)
$bordercolour = imagecolorallocate($im, 182, 182, 182);
// fill bg white
imagefill($im, 0, 0, $white);
// if you background image has rounded curves use this
imagecolortransparent($im, $white);
// open bg image
$bg = imagecreatefrompng($bgpng);
// copy bg image onto first image
imagecopy($im, $bg, 0, 0, 0, 0, $width, $height);
// close this image
imagedestroy($bg);
// open our w2m image
if (getimagesize($w2mpng)){
$w2m = imagecreatefrompng($w2mpng);
//get w2m image width
$w2mwidth = imagesx($w2m);
//get w2m image height
$w2mheight = imagesy($w2m);
// your status image
ImageCopy($im, $w2m, 8, 13, 0, 0, 40, $w2mheight-12);
//your personal message
$w2mwidth = $w2mwidth-42;
if ($w2mwidth>330) {
$w2mwidth = 330;
}
ImageCopy($im, $w2m, 72, 40, 42, 15, $w2mwidth, $w2mheight-33);
// close this image
imagedestroy($w2m);
}
//if w2m is not an image the service is down...
else{
$black = imagecolorallocate($im, 0, 0, 0);
// the error text
$text = 'Status service down...';
// your police (need to upload one)
$font = 'LUCON.TTF';
// add the text
imagettftext($im, 8, 0, 75, 55, $black, $font, $text);
$offpng = "./images/off.png"; //the status failed image
$w2m = imagecreatefrompng($offpng);
ImageCopy($im, $w2m, 18, 24, 0, 0, 21, 21);
imagedestroy($w2m);
}
// finished now just make the image a PNG and show it
header("Content-Type: image/png");
imagepng($im);
imagedestroy($im);
?>
Thanks hmaster for the orginal code
Just because server crash I add a little condition in the script.
Enjoy...
This post was edited on 08-26-2005 at 12:51 PM by Stab.
Sorry, if my English is not as good as I would like...
MSN Sphere
|
|
08-26-2005 11:02 AM |
|
|
hmaster
Senior Member
Posts: 716 Reputation: 24
33 / /
Joined: Nov 2004
|
O.P. RE: Web2Messenger Background Script!
Nice mod, hadnt thought of that. Not sure that the server will crash again but cool...
I will be releasing teh auto resizing script soon as too many ppl asked me for that one. Will be posted as soon as released
|
|
08-27-2005 03:56 PM |
|
|
NiteMare
Veteran Member
Giga-Byte me
Posts: 2497 Reputation: 37
37 / /
Joined: Aug 2003
|
RE: Web2Messenger Background Script!
apperently the script has stoped working, it nolonger accepts teh status image as a valid png file
edit:
quote: Originally posted by web2messenger.com forums
There's a hidden message which all the php scripts will get when they access the status images from the w2m servers
This post was edited on 08-29-2005 at 01:21 AM by NiteMare.
|
|
08-29-2005 12:59 AM |
|
|
hmaster
Senior Member
Posts: 716 Reputation: 24
33 / /
Joined: Nov 2004
|
|
08-30-2005 04:42 PM |
|
|
hmaster
Senior Member
Posts: 716 Reputation: 24
33 / /
Joined: Nov 2004
|
O.P. RE: Web2Messenger Background Script!
Hey people. Updating you all.
The new updated scripts can now be found at a new place:
http://dxlabs.skarz.co.uk/?page=w2m
-------------------------------------
Ive finished one of the two generators
http://dxlabs.skarz.co.uk/?page=w2m&sec=cgen
It basically lets you add any colour to your web2messenger sigs bg/nick/psm!
--------------------------------------
I have finished the dynamic sigs.
You prob seen then in my sig
Thanks to all the helpers and people who helped coding.
You url code for you sig can be found here:
http://dxlabs.skarz.co.uk/?page=w2m&sec=dynamic
A few examples:
New MSN! - changes size
-----
updated first post
This post was edited on 11-04-2005 at 08:34 PM by hmaster.
|
|
11-04-2005 07:15 PM |
|
|
Pages: (9):
« First
«
1
2
[ 3 ]
4
5
6
7
»
Last »
|
|