ok, is there a variable for the Avatar IMG path? Currently if you use {AVATAR_IMG} it prints out the entire string, including the <img> bit...
I just need the path to the avatar...
Avatar IMG Path
Re: Avatar IMG Path
{T_AVATAR_PATH}
Formerly known as CyberAlien.
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
Free phpBB styles | Premium responsive XenForo styles | Iconify - modern open source replacement for glyph fonts
- jojobarjo32
- Registered User
- Posts: 164
- Joined: Wed Jun 22, 2005 7:38 pm
- Location: France
Re: Avatar IMG Path
{T_AVATAR_PATH} is just the path to the avatar directory, not to user's avatar 
There is no defined variable by default... if you really want one, add in memberlist.php (I assume you talk about the viewprofile...), around line 518 (after 'AVATAR_IMG' => $poster_avatar,) that line :
Then in your template, use the variable {AVATAR_IMG_PATH} 

There is no defined variable by default... if you really want one, add in memberlist.php (I assume you talk about the viewprofile...), around line 518 (after 'AVATAR_IMG' => $poster_avatar,) that line :
Code: Select all
'AVATAR_IMG_PATH' => (!empty($member['user_avatar'])) ? (($member['user_avatar_type'] == AVATAR_GALLERY) ? $config['avatar_gallery_path'] . $member['user_avatar'] : $config['avatar_path'] . $member['user_avatar']) : '',

- Highway of Life
- Registered User
- Posts: 1399
- Joined: Tue Feb 08, 2005 10:18 pm
- Location: I'd love to change the World, but they won't give me the Source Code
- Contact:
Re: Avatar IMG Path
That would depend on where you are trying to call it.Adric wrote: ok, is there a variable for the Avatar IMG path? Currently if you use {AVATAR_IMG} it prints out the entire string, including the <img> bit...
I just need the path to the avatar...
There are built in functions in place to return this string, so if you give details, we’ll be able to point you in the correct direction.
