Flash Avatar mod & top_posters

Support for the IM Portal Project

Moderator: Integra Moderator

Flash Avatar mod & top_posters

PostAuthor: siljo » Thu Jun 12, 2008 10:02 am

Your phpBB Version: 2.0.23
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

                        $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

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

$portal_config['md_avatar_height']


How can i make this line to work in flash avatar mod code?

I tried like this
             $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?
Last edited by siljo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

siljo
Members
Members
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Joined: Sun May 13, 2007 1:46 pm
Cash on hand: 0.00
Location: Slovenia

Re: Flash Avatar mod & top_posters

PostAuthor: siljo » Wed Jun 18, 2008 11:45 am

*Bump* <img>
Last edited by siljo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

siljo
Members
Members
 
Posts: 36
Likes: 0 post
Liked in: 0 post
Joined: Sun May 13, 2007 1:46 pm
Cash on hand: 0.00
Location: Slovenia

Re: Flash Avatar mod & top_posters

PostAuthor: Helter » Wed Jun 18, 2008 4:46 pm

did you try this?

 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'],                 $portal_config['md_avatar_height']             );             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'],                 $portal_config['md_avatar_height']             );             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'],                 $portal_config['md_avatar_height']             );                             break;     }}    


or this

 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> ' : '';             break;         case USER_AVATAR_REMOTE:             $avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img> ' : '';             break;         case USER_AVATAR_GALLERY:             $avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img> ' : '';             break;     }}    
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4574
Likes: 40 posts
Liked in: 121 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 2,089.90
Location: Seattle Wa
IntegraMOD version: phpBB2x


Return to IM Portal Support Forum

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]