Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted
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.

Posted

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']);

Posted

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

Posted

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:

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...