Default Avatar
Posted: 06 Apr 2010, 14:23
Database and Demo for phpBB3 BBCodes, Mods and Smilies
https://phpbb3bbcodes.com/
Code: Select all
'user_avatar' =>'',
'user_avatar_type' => 0,
'user_avatar_width' => 0,
'user_avatar_height' => 0,
Code: Select all
'user_avatar' => 'http://www.twojeforum.pl/images/avatars/gallery/avatar.png',
'user_avatar_type' => 2,
'user_avatar_width' => 128,
'user_avatar_height' => 128,
Code: Select all
UPDATE `phpbb_users` SET `user_avatar` = 'http://www.twojeforum.pl/images/avatars/gallery/avatar.png',
`user_avatar_type` = '2',
`user_avatar_width` = '128',
`user_avatar_height` = '128'
WHERE `user_avatar` = '' ;
[profile]Stoker[/profile], what's the difference between v1 & v2, i want to chose your version; ¿what you recommend me?Stoker » 06 Apr 2010, 14:23 wrote:Default Avatar
Written by blkjack-21 and Stoker
This snippet will give users a default avatar. Off course only if they haven't chosen one in UCP
First version by blkjack-21 will display the default avatar everywhere on the board, the second version by Stoker will only display default avatar on viewtopic. [...]
Code: Select all
if (empty($avatar) || !$avatar_type || (!$config['allow_avatar'] && !$ignore_config))
{
return '';
}