View Single Post
  #1  
Old 03-05-2013, 07:45 PM
Hedgen's Avatar
Hedgen Hedgen is offline
Member
 
Join Date: Oct 2012
Posts: 36
Gender: Male
Credits: 6,779
Hedgen is on a distinguished road
Post

What is the code that grabs the avatar link from the database and displays it on the profile tabs? Or where would I find that? I tried doing
Code:
<img src='/{$mysidia->users_profile->avatar}' alt='Your Profile Image.' height='42' width='42'>
and that didn't work. I'm trying to add the user's profile image to the left side of my site.

Still can't get this to work :( I first putting the image into $imgdata and then putting that into the src of the image tag, and that didnt work:
$imgdata and img tag
PHP Code:
$imgdata '/{$mysidia->users->profile->avatar}';
        
$sidebar "
               <b>Welcome 
{$mysidia->user->username}!</b><br />
               <img src='"
.$imgdata."' alt='Your Profile Image.' height='42' width='42'>
               <br />
               
{$mysidia->settings->cost}:{$mysidia->user->money}<br />
                   <a href='donate.php'>Donate Yukkuriens</a>
                   <a href='account.php'>My Account</a>
                   <a href='logout.php'>Log Out</a>"

I have tried $imgdata with and without the / also.

is the image, and it loads fine on the profile page, but not on my sidefeed
Reply With Quote