Jump to content
MakeWebGames

Recommended Posts

Posted

Hello A nice little mod i wrote from Scratch testing out php.net's imagecreate*()

call it what ever you like...

in this case i called it

usercard.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

While using

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

also putting in referral.php or so

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

You will get something like

usercard.php?id=1

Posted

Re: [mccode v1 v2] player card

Eternal showed me this script when it had just two lines and said I have an Idea. This was whilst we were chatting about MCC not having a compare items or homes script.

Now thats hes finished it and ive seen it working this is a GREAAAAAAAt mod :) very easy to alter and very easy to install nice one :)

+1

Posted

Re: [mccode v1 v2] player card

Any image you want. it says there just point the url to the image to the script and it is a background image

for png it is already there

but using jpg or so

you need

imagecreatefromjpg("http://www.image.com/image.jpg");

the size of it is based on the background image

all you need to do is alter the border prefs at bottom "trial and error"

Posted

Re: [mccode v1 v2] player card

 

Any idea why this gives me "Invalid Action

die", im using mcc2 .

Are you using

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

if you type in something other than a positive number like "-0 " or text it will give you that error.

Posted

Re: [mccode v1 v2] player card

 

Any idea why this gives me "Invalid Action

die", im using mcc2 .

Are you using

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

if you type in something other than a positive number like "-0 " or text it will give you that error.

yep, The image ?link/usercard.php?id=1? cannot be displayed, because it contains errors.

i checked the code 5 times but i can't find anything that should cause this issue.

Posted

Re: [mccode v1 v2] player card

paste your entire source here including the edits you made.

also i don't think this runs on wamp if you using wamp or xamp.

Posted

Re: [mccode v1 v2] player card

As Eternal Said this does work in offline mode I used it on Xampp and either got the DIE error or scambled image as text. Im suposing this has something to do with Xampp not being able to cope with GD2.

Posted

Re: [mccode v1 v2] player card

if(isset($_GET['id']) AND ctype_digit($_GET['id'])) {

$id = mysql_escape(trim($_GET['id']));

}

Wats this about? You check if it is a number then escape and trim it which are string functions.

Posted

Re: [mccode v1 v2] player card

LawL i don't know i am just learning the whole ctype_digit and that

Please forgive me :P

Killah suggested a better method But i forgot to update that.

Posted

Re: [mccode v1 v2] player card

 

paste your entire source here including the edits you made.

also i don't think this runs on wamp if you using wamp or xamp.

All i changed was the registration link, and im not using wamp/xamp or anything like this.

Did i forget to edit something?

  • 1 year later...
Posted

Thanks :) I have done the card and heres the finished product:

usercard.php?id=1

I may add more info later, the gaps are so the data can expand without going off the sig. When posted, I have shown users how to add tags

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...