Jump to content


Photo

Avatar Help


  • Please log in to reply
3 replies to this topic

#1 Seth Zankuten

Seth Zankuten
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 17 March 2006 - 10:53 AM

Well, I really don't even know where to start. But what I'm attempting to do is make a script where I can implement avatars into a staff page on my site.

EXP

-User Avatar- | -User Name- | -User Position- | -User Discription-
-Avatar- | Seth Zankuten | Admin | Graphic Designer, HTML programer, MUGEN Creator, etc



#2 Gaia

Gaia
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts
  • LocationCanada

Posted 17 March 2006 - 10:30 PM

Ok that tells us what you are trying to accomplish, but what is the problem and where do you need help in making it happen?

#3 Seth Zankuten

Seth Zankuten
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 18 March 2006 - 02:28 AM

[!--quoteo(post=356037:date=Mar 17 2006, 06:30 PM:name=Gaia)--][div class=\'quotetop\']QUOTE(Gaia @ Mar 17 2006, 06:30 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Ok that tells us what you are trying to accomplish, but what is the problem and where do you need help in making it happen?
[/quote]


Well I'm using MKportal with a SMF, I'm just creating a Internal Page in the MKP. I'm just getting into PHP so I really don't know any of the coding.The problem is I don't know where to start or what tags I should use to accoplish my task.

<? 


$name = $mkportals->member['name'];

$content="Hi $name,
<p> So you want to know what Elemental Energy Entertainment is all about. 3E is all about learning, yes learning. 3E is here to support members, students and fans of the entertainment industry, including; video game, movies, sports, music, and art. We want to help everyone and anyone we can develop there skills in any way we can. While we are helping, teaching, and tutoring you we will be developing our skills and learning just as much as you.</p>
<p></p>";



?>

This is all I have on the page so far but after the paragraph is where I wanna make the table. I could just do it straight HTML but then the avatars would not change when the user changed them in there profile. So basicly.

#4 me1000

me1000
  • Members
  • PipPipPip
  • Advanced Member
  • 183 posts

Posted 18 March 2006 - 02:59 AM

well a really simple way of doing this is just adding the URL of the image. then in the page add something like,

$avatarimage = "<img src=".$avatarurl.">";

then set the avaraturl variable to -Avatar- in the database file you are using. im not sure what you are using for a database. (mysql flatfile ect...) but just enter the avatar url the same way you do the name

hope this helps, someonemight want to make sure my code syntax is alright though




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users