Advertisement:

Author Topic: Getting the URL of a users avatar using $context...  (Read 3853 times)

Offline Crasy

  • Jr. Member
  • **
  • Posts: 197
  • Gender: Male
    • Red Milk Crate
Getting the URL of a users avatar using $context...
« on: November 20, 2008, 05:00:58 PM »
If
Code: [Select]
$context['user']['avatar']['image']gives me a code that outputs
Code: [Select]
<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']
« Last Edit: November 20, 2008, 05:33:26 PM by Crasy »