News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Getting the URL of a users avatar using $context...

Started by Crasy, November 20, 2008, 05:00:58 PM

Previous topic - Next topic

Crasy

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']

Advertisement: