Eternal Posted March 10, 2009 Posted March 10, 2009 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 Quote
Uridium Posted March 10, 2009 Posted March 10, 2009 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 Quote
Eternal Posted March 10, 2009 Author Posted March 10, 2009 Re: [mccode v1 v2] player card Thanx matey :) Quote
castle Posted March 10, 2009 Posted March 10, 2009 Re: [mccode v1 v2] player card can you use any image, or do you have a link for the image in the thread? Quote
Eternal Posted March 10, 2009 Author Posted March 10, 2009 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" Quote
xfzn Posted March 11, 2009 Posted March 11, 2009 Re: [mccode v1 v2] player card Any idea why this gives me "Invalid Action die", im using mcc2 . Quote
Eternal Posted March 11, 2009 Author Posted March 11, 2009 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. Quote
xfzn Posted March 11, 2009 Posted March 11, 2009 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. Quote
Eternal Posted March 11, 2009 Author Posted March 11, 2009 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. Quote
Uridium Posted March 11, 2009 Posted March 11, 2009 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. Quote
Uridium Posted March 11, 2009 Posted March 11, 2009 Re: [mccode v1 v2] player card Stupid dyslexic Keyboards that was supposed to say Doesn't not Does :) Quote
POG1 Posted March 11, 2009 Posted March 11, 2009 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. Quote
Eternal Posted March 11, 2009 Author Posted March 11, 2009 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. Quote
xfzn Posted March 11, 2009 Posted March 11, 2009 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? Quote
gurpreet Posted March 27, 2010 Posted March 27, 2010 Thanks :) I have done the card and heres the finished product: 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 Quote
Coly010 Posted March 28, 2010 Posted March 28, 2010 could someone create a lite version of this as i have no idea how to recode this one because of the config part. Quote
CJ - Twitch Posted March 28, 2010 Posted March 28, 2010 Thanks :) I have done the card and heres the finished product: 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 looking good. :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.