d2jsp
Log InRegister
d2jsp Forums > d2jsp > Ladder Slasher > Guide: How-to Make A Dynamic Ladder-slasher Sig > In A Few Easy Steps With Pics
Prev1363738394060Next
Add Reply New Topic New Poll
Member
Posts: 36,521
Joined: Jul 28 2007
Gold: Locked
Trader: Scammer
Warn: 10%
May 19 2009 01:47pm
what should i change to make into jpg signatures please?
Member
Posts: 18,656
Joined: Feb 28 2006
Gold: 32,277.35
May 19 2009 01:53pm
Quote (Xabi @ Tue, May 19 2009, 08:47pm)
what should i change to make into jpg signatures please?


u mean jpg backround?

// create the image from a background jpg
$image = imagecreatefrompng('bg.png');

change to imagecreatefromjpeg and it should work i think
Member
Posts: 36,521
Joined: Jul 28 2007
Gold: Locked
Trader: Scammer
Warn: 10%
May 19 2009 01:56pm
Quote (Sammyray @ Tue, 19 May 2009, 21:53)
u mean jpg backround?

// create the image from a background jpg
$image = imagecreatefrompng('bg.png');

change to imagecreatefromjpeg and it should work i think


i tried, and changed a bit of things more but doesnt work
Member
Posts: 4,620
Joined: Aug 3 2008
Gold: 525.25
May 19 2009 02:12pm
Quote (Xabi @ Tue, May 19 2009, 03:56pm)
i tried, and changed a bit of things more but doesnt work


Code
$image = imagecreatefromjpeg( 'bg.jpg' );



is the correct code.

if you cant get it to work change your jpg to a png

This post was edited by SilentXer0 on May 19 2009 02:13pm
Member
Posts: 18,656
Joined: Feb 28 2006
Gold: 32,277.35
May 19 2009 02:16pm
Quote (SilentXer0 @ Tue, May 19 2009, 09:12pm)
Code
$image = imagecreatefromjpeg( 'bg.jpg' );



is the correct code.

if you cant get it to work change your jpg to a png


like i said - but i just tried and didnt get it working
dunno, just change to png^^
Member
Posts: 36,521
Joined: Jul 28 2007
Gold: Locked
Trader: Scammer
Warn: 10%
May 19 2009 02:18pm
will try that again

still doesnt, but thanks both

This post was edited by Xabi on May 19 2009 02:24pm
Member
Posts: 36,521
Joined: Jul 28 2007
Gold: Locked
Trader: Scammer
Warn: 10%
May 20 2009 09:26am
still searching for answer please
Member
Posts: 4,797
Joined: Jan 5 2009
Gold: 89.00
May 20 2009 06:22pm
Thx for posting! Such a great guide. Worked like a charm once i got the server up! Thx again!
Member
Posts: 12,161
Joined: May 10 2006
Gold: 2,770.00
May 21 2009 05:25am
Can someone pm me the full xml data code:

only got this one
Code
// load xml data in vars

// This is where you load your own info from the xml d2jsp gives. This is a PHP5 only command!
$data = simplexml_load_file('http://ladderslasher.d2jsp.org/xmlChar.php?i=177624');
$name = $data->name;
$kills = $data->kills;
$class = $class_name[(int)$data->classid];
$exp = $data->exp;
$level = $data->level;
$hpmax = $data->hpmax;
$mqpasses = $data->mqpasses;
$mqattempts = $data->mqattempts;
$exp = (int)$exp;
$percent = calcExpPercent($exp);
$brpixelX = calcBrPixelX($exp,$expbar_width)


i need the one with all the Proficiencies

Thx
Member
Posts: 27,007
Joined: Feb 15 2007
Gold: 0.77
May 22 2009 05:51am
I cannot get mine to show the picture correctly <_<



I copied your's completely apart from the picture used but it was still bg.png

http://www.ukz.ukgamers.com/Sigs/Test/don.png

All it does is shows the name

Thanks for any help :)
Go Back To Ladder Slasher Topic List
Prev1363738394060Next
Add Reply New Topic New Poll