Aurora078 Posted October 6, 2010 Posted October 6, 2010 Well, i created a simple script that would allow for a user's information to be displayed on a image card, which they could use on forums, etc. But, i don't have images, so you'll have to supply your own and ill code them into it for you, or someone else could help others with images.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Which if you went to http://example.com/user_images/image.php?user=id, then it would display the image for that user. If you have .htaccess enabled on your server, you can use You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Which would display the image if you went to http://example.com/user_images/user-id.png, which would be better for forums. Quote
Joshua Posted October 6, 2010 Posted October 6, 2010 Believe someone threw something like this out awhile back though I can't remember how well the programming was on it. Nice small addition :) Would suggest perhaps securing the $_GET['user'] variable as well as ask the question Why the odd include configurations? Something like, require_once('globals.php'); would save you having to re-do all the database configuring as it's done for you in the class/globals file already ;) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
rulerofzu Posted October 6, 2010 Posted October 6, 2010 This has been done several times.....use the search function. Quote
Joshua Posted October 6, 2010 Posted October 6, 2010 I figured it had been Zu, but Several modifications have been done several times over. It's good for some variety :) Quote
Dave Posted October 6, 2010 Posted October 6, 2010 Using include "globals.php" in the script will make it fail surely? Considering the globals file also pulls the header out? Quote
Joshua Posted October 6, 2010 Posted October 6, 2010 Ah, right. Good point. Perhaps add the function into the header.php, same concept with mainmenu.php, then just do an include where the card is to be displayed? Shrugz. Even a global_func i'm sure would be just as effective Quote
Dave Posted October 6, 2010 Posted October 6, 2010 Ah, right. Good point. Perhaps add the function into the header.php, same concept with mainmenu.php, then just do an include where the card is to be displayed? Shrugz. Yeah (: It's generally what I do.. something like... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Saves allot of time. Quote
Joshua Posted October 6, 2010 Posted October 6, 2010 Well, I just figure since it's the McC engine something as simple as You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. In the Global_func file, then call the file usercard($_GET['ID']); Quote
Aurora078 Posted October 6, 2010 Author Posted October 6, 2010 Yeah the reason i didnt use globals was that it includes header. and i thought about security after the fact, and unless anyones interested im not really going to do anymore with it. and i know theres been player cards, i just felt like making my own thing Quote
gideon prewett Posted October 8, 2010 Posted October 8, 2010 i love the idea i havent looked at yours properly yet but i was thinking of doing somthing similar but trying to follow the player card from COD6 mw2 then add ways members can unlock pics etc to add to there cards by dooing diffrent tasks / random events etc but :thumbsup: 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.