{AVATAR_IMG}
code that shows the avatar shows the avatar as <img> in page. But I only needed the avatar URL. After struggling for about an hour, I figured out how to do it. By sharing it here, I want to remember it for later and help those who need it.Open /includes/functions_display.php file and find this line:
Code: Select all
'AVATAR_IMG' => phpbb_get_user_avatar($data),
Code: Select all
'AVATAR_IMG_SRC' => $data['user_avatar'],
{AVATAR_IMG_SRC}
. The output of this code is as follows for my current avatar.2_1712756120.jpeg
Now when I want to create the user avatar url, I just need to write it like this:
Code: Select all
https://phpbbgroup.com/download/file.php?avatar={AVATAR_IMG_SRC}