phpBB Type: phpBB / IMPortal
MODs: Yes
Your knowledge: Basic Knowledge
Board URL: http://www.siljo-planet.net
PHP Version:
MySQL Version: Flash Avatar mod & top_posters
What was done before the problem appeared?
/
What was done to try to solve the problem?
/
De.scription and Message
The top_posters uses this code to show avatars
- Code: Select all
$poster_avatar = ''; if ( $row['user_avatar_type'] && $user_id != ANONYMOUS && $row['user_allowavatar'] ) { switch( $row['user_avatar_type'] ) { case USER_AVATAR_UPLOAD] ) ? '<img>' : ''; break; case USER_AVATAR_REMOTE: $poster_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img>' : ''; break; case USER_AVATAR_GALLERY: $poster_avatar = ( $board_config['allow_avatar_local'] ) ? '<img>' : ''; break; } }
The flash avatar uses this code
- Code: Select all
include($phpbb_root_path . 'includes/usercp_flashavatar.'.$phpEx);$avatar_img = '';if ( $profiledata['user_avatar_type'] && $profiledata['user_allowavatar'] ){ switch( $profiledata['user_avatar_type'] ) { case USER_AVATAR_UPLOAD] ) ? '<img>' : ''; $avatar_img = get_avatar_img( $board_config['allow_avatar_upload'], $board_config['avatar_path'], $profiledata['user_avatar'] ); break; case USER_AVATAR_REMOTE: //$avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img>' : ''; $avatar_img = get_avatar_img( $board_config['allow_avatar_remote'], '', $profiledata['user_avatar'] ); break; case USER_AVATAR_GALLERY: //$avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img>' : ''; $avatar_img = get_avatar_img( $board_config['allow_avatar_local'], $board_config['avatar_gallery_path'], $profiledata['user_avatar'] ); break; }}
The problem is that with this mod the avatar images are in full size insted of 50x50 as defined in portal config.This is the line that makes avatar size 50x50
- Code: Select all
$portal_config['md_avatar_height']
How can i make this line to work in flash avatar mod code?
I tried like this
- Code: Select all
$avatar_img = get_avatar_img( $board_config['allow_avatar_local'], $board_config['avatar_gallery_path'], $portal_config['md_avatar_height'], $profiledata['user_avatar']
but this doesent work.
Can somebody help me?