Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Crasy on November 20, 2008, 05:00:58 PM

Title: Getting the URL of a users avatar using $context...
Post by: Crasy on November 20, 2008, 05:00:58 PM
If
$context['user']['avatar']['image']
gives me a code that outputs
<img src="http://deepblue.cr91.net/index.php?action=dlattach;attach=1;type=avatar" alt="" class="avatar" border="0" />

How do I get it to output just the URL. I don't want <img src="" type="" alt="" class="avatar" border="0" /> Don't want any of that. I just want the URL.

Edit: Solved. Thanks Chris (ccb)
Dear anyone who cares or finds this topic via search:

$context['user']['avatar']['href']