[SOLVED]Avatars on different host than my site

Support for IntegraMOD 140

Moderator: Integra Moderator

[SOLVED]Avatars on different host than my site

PostAuthor: febern » Thu Aug 03, 2006 1:48 am

Hello!!

My problem is:

My integramod site is on X host, which hasn't got too much webspace

But i have tons of avatars on my Y host with 2 gb webspace (i can 't run here my integramod site, before someone suggest this)


So i would like to get that on my integramod site / profile/profile - avatar setting read my avatars from my Y host where my avatars stored......

i hope it's clear what would like to say <img>
Last edited by febern on Fri Aug 04, 2006 4:37 am, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 10:08 pm
Cash on hand: 0.00

Re: Avatars on different host than my site

PostAuthor: Adrian Rea » Thu Aug 03, 2006 4:07 am

this actually is quite a tricky one as the path is stored as AVATAR_PATH which is a path to be placed at the end of the phpbb root. Throughout 140 the path is sometimes described with the root or sometimes without. I would wonder if it is worth the effort.

all references to AVATAR_PATH are
Code: Select all
C] ) ? '<img>' : '';1 match in C:_integramod140album_showpage.phpC:_integramod140memberlist.php                     $poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';1 match in C:_integramod140memberlist.phpC:_integramod140shoutbox_max.php                         $user_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';1 match in C:_integramod140shoutbox_max.phpC:_integramod140show_post.php                     $poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';1 match in C:_integramod140show_post.phpC:_integramod140adminadmin_approve.php                         $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';                             $poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';2 matches in C:_integramod140adminadmin_approve.phpC:_integramod140adminadmin_board.php     "AVATAR_PATH" => $new['avatar_path'], 2 matches in C:_integramod140adminadmin_board.phpC:_integramod140adminadmin_userlist.php                         $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';1 match in C:_integramod140adminadmin_userlist.phpC:_integramod140adminadmin_users.php                 if( @file_exists(@phpbb_realpath("./" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar'])) )                     @unlink("./" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar']);                                     if( @file_exists(@phpbb_realpath("./../" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar'])) )                                         @unlink("./../" . $board_config['avatar_path'] . "/". $this_userdata['user_avatar']);                                 @copy($user_avatar_loc, "./../" . $board_config['avatar_path'] . "/$avatar_filename");                                             if( file_exists(@phpbb_realpath("./../" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar'])) )                                                 @unlink("./../" . $board_config['avatar_path'] . "/" . $this_userdata['user_avatar']);                                         @copy($tmp_filename, "./../" . $board_config['avatar_path'] . "/$avatar_filename");                     $avatar = '<img>';         if( file_exists(@phpbb_realpath('./../' . $board_config['avatar_path'])) && ($board_config['allow_avatar_upload'] == TRUE) )10 matches in C:_integramod140adminadmin_users.phpC:_integramod140adminindex.php     if ($avatar_dir = @opendir($phpbb_root_path . $board_config['avatar_path']))                 $avatar_dir_size += @filesize($phpbb_root_path . $board_config['avatar_path'] . "/" . $file);2 matches in C:_integramod140adminindex.phpC:_integramod140blocksblocks_imp_user_block.php                     $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';1 match in C:_integramod140blocksblocks_imp_user_block.phpC:_integramod140includesfunctions_calendar.php                                 $avatar = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';1 match in C:_integramod140includesfunctions_calendar.phpC:_integramod140installschemasmysql_basic.sqlINSERT INTO phpbb_config (config_name, config_value) VALUES ('avatar_path','images/avatars');1 match in C:_integramod140installschemasmysql_basic.sqlC:_integramod140modulesadmin_statisticsmodule.phpif ($avatar_dir = @opendir($phpbb_root_path . $board_config['avatar_path']))             $avatar_dir_size += @filesize($phpbb_root_path . $board_config['avatar_path'] . '/' . $file);2 matches in C:_integramod140modulesadmin_statisticsmodule.phpC:_integramod140pafiledbincludesfunctions_comment.php                     $poster_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';1 match in C:_integramod140pafiledbincludesfunctions_comment.phpC:_integramod140profilcpfunctions_profile.php             if ( @file_exists(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $avatar_file)) )                 @unlink('./' . $board_config['avatar_path'] . '/' . $avatar_file);                 $tmp_path = ( !@$ini_val('safe_mode') ) ? '/tmp' : './' . $board_config['avatar_path'] . '/tmp';                 if ( file_exists(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $current_avatar)) )                     @unlink('./' . $board_config['avatar_path'] . '/' . $current_avatar);                 @copy($tmp_filename, './' . $board_config['avatar_path'] . "/$new_filename");                 $move_file($avatar_filename, './' . $board_config['avatar_path'] . "/$new_filename");             @chmod('./' . $board_config['avatar_path'] . "/$new_filename", 0777);8 matches in C:_integramod140profilcpfunctions_profile.phpC:_integramod140profilcpprofilcp_profil_avatar.php         if ( @file_exists(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $view_userdata['user_avatar'])) )             @unlink(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $view_userdata['user_avatar']));         if ( @file_exists(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $view_userdata['user_avatar'])) )             @unlink(@phpbb_realpath('./' . $board_config['avatar_path'] . '/' . $view_userdata['user_avatar']));                 $avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img>' : '';         if ( $board_config['allow_avatar_upload'] && file_exists(@phpbb_realpath('./' . $board_config['avatar_path'])) )6 matches in C:_integramod140profilcpprofilcp_profil_avatar.phpC:_integramod140profilcpdefdef_userfuncs_std.php             $img = ( $board_config['allow_avatar_upload'] ) ? '<img>' : ''; 1 match in C:_integramod140profilcpdefdef_userfuncs_std.phpC:_integramod140templatesfisubiceadminboard_config_body.tpl<input>2 matches in C:_integramod140templatesfisubiceadminboard_config_body.tplTOTAL:    44 matches in 18 files  (2790 other files without matches not listed)  
Last edited by Adrian Rea on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 11:59 pm
Cash on hand: 0.00

Re: Avatars on different host than my site

PostAuthor: febern » Thu Aug 03, 2006 5:14 am

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

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 10:08 pm
Cash on hand: 0.00

Re: Avatars on different host than my site

PostAuthor: febern » Thu Aug 03, 2006 5:30 am

okay, it's too complicate for me :roll:
Last edited by febern on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 10:08 pm
Cash on hand: 0.00

Re: Avatars on different host than my site

PostAuthor: febern » Fri Aug 04, 2006 4:37 am

Well, i did <img> But thanx for your help.........
Last edited by febern on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

febern
Integra Member
Integra Member
 
Posts: 151
Likes: 0 post
Liked in: 0 post
Joined: Tue Jun 13, 2006 10:08 pm
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

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

cron