Sub Menu
Links Menu
Online Users

In total there are 273 users online :: 2 registered, 0 hidden and 271 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Google [Bot] based on users active over the past 60 minutes

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 9: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

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?
Last edited by siljo on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

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

Re: Flash Avatar mod & top_posters

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

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

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

Re: Flash Avatar mod & top_posters

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

did you try this?

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'],                 $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

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> ' : '';             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 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4167
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 172.60
Location: Seattle Wa
IntegraMOD version: IM 3


Return to IM Portal Support Forum

Who is online

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

cron