2013-08-17, 05:50 PM
Alright, so I'm trying to modify a plugin to use a user's avatar rather tan a static image.
Here is the new updated code.
I'm getting a
Parse error: syntax error, unexpected T_STRING in
Error.
I've tried other things like without the \ and without the {} but the issue remains.
I managed to edit rid of the error by using.
{$user[\'avatar\']}
However, now the image does not want to display.
http://mydomain.com/%7B$user['avatar']%7D
^ is the output to a broken image.
Any ideas?
Here is the new updated code.
$i_avatar = '<a href="member.php?action=profile&uid='.$uid.'"><img src=\"$mybb->user['avatar']\" alt="'.$user['username'].'" title="'.$user['username'].'" width="35px" height="35px" class="i_update_avatar"></a>';
I'm getting a
Parse error: syntax error, unexpected T_STRING in
Error.
I've tried other things like without the \ and without the {} but the issue remains.
$i_avatar = '<a href="member.php?action=profile&uid='.$uid.'"><img src=\"{$mybb->user['avatar']}\" alt="'.$user['username'].'" title="'.$user['username'].'"></a>';
I managed to edit rid of the error by using.
{$user[\'avatar\']}
However, now the image does not want to display.
http://mydomain.com/%7B$user['avatar']%7D
^ is the output to a broken image.
Any ideas?