Jump to content

Avatar How to?


Miku

Recommended Posts

Hi, could some one help me with this?

 

I need a way so when members register and go into there member.php (User CP) page they can add an avatar via URL only. If they add this avatar then they will see there image on the left side off the screen. How can I do this?

 

I need the full script as I am a full noob.....

-Thanks

Link to comment
Share on other sites

I need the full script as I am a full noob.....

 

You won't get the full script here, defeats the purpose of the board.

 

I'll you need do is, when your user registers, store the address of there avitar allong with there username, then, you simply need to display it back from the database.

Link to comment
Share on other sites

Im not gonna give you the full script... but I can give you an idea of what you want to accomplish

 

basically you want to store the URL in your database, as thorpe said, and when you want to display it, get the url via a mysql query, like:

$query = mysql_query("SELECT * FROM tablename WHERE criteria='$credientials");//criteria and credentials are basically what you use to validate that its the specific user when they login. Using something like their session username is a good thing to use here
$r = mysql_fetch_assoc($query);
$url = $r['avatar'];

echo "<img src='$url' />";

 

hope that helps

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.