userpic als admin ändern

Ermöglicht es dem Benutzer ein Bild in sein Profil einzufügen.

Beitragvon AmigaLink » 16. Mai 2006 21:05

Also mal abgesehen davon das du hier ja mal hättest anfragen können ob das Problem bekannt ist. Kann ich jedem, der einen meiner MODs benutzt, nur Empfehlen das jeweilige Beschreibungstopic zu abonnieren.
Updates und wichtige Fixe, werden in diesen Threads immer bekannt gegeben!
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Beitragvon ibuerfei » 17. Mai 2006 13:43

hm, das neue file gibt im ff und ie immer folgenden fehler wenn man ein bild ändern will ( auch das eigene ):

$profilepic_new_width, $profilepic_new_height) : @imagecreatetruecolor($profilepic_new_width, $profilepic_new_height); $profilepic_resize = ($gd_version < 2) ? 'imagecopyresized' : 'imagecopyresampled'; @$profilepic_resize($profilepic_temp, $profilepic_full, 0, 0, 0, 0, $profilepic_new_width, $profilepic_new_height, $profilepic_width, $profilepic_height); // Save $quality = $profilepic_quality; @imagejpeg($profilepic_temp, $phpbb_root_path.'images/userprofile_pics/thumbnails/'.$profilepic_file, $quality); @chmod($phpbb_root_path.'images/userprofile_pics/thumbnails/'.$profilepic_file, 0777); } else { @unlink($phpbb_root_path.'images/userprofile_pics/thumbnails/'.$profilepic_file); } @unlink($phpbb_root_path.'images/userprofile_pics/temp_'.$profilepic_file); } else { $error_msg .= sprintf($lang['Profilepic_imagetype_error'] , $pp_error_msg); $error = true; } } // Kill if ($HTTP_POST_VARS['profilepicdel']) { (!$profilepic_file) ? $profilepic_file = md5($userdata['user_id']).'.jpeg' : ''; @unlink($phpbb_root_path.'images/userprofile_pics/'.$profilepic_file); @unlink($phpbb_root_path.'images/userprofile_pics/thumbnails/'.$profilepic_file); } // Make avatar if ($HTTP_POST_VARS['profilepicasavatar']) { (!$profilepic_file) ? $profilepic_file = md5($userdata['user_id']).'.jpeg' : ''; if (!is_file($phpbb_root_path.'images/userprofile_pics/'.$profilepic_file)) { $error_msg .= 'Du hast kein Profilbild aus dem ein Avatar erstellt werden könnte!'; $error = true; } else { $profilepic_data = getimagesize($phpbb_root_path.'images/userprofile_pics/'.$profilepic_file); $profilepic_width = $profilepic_data[0]; $profilepic_height = $profilepic_data[1]; $profilepic_max_width = $board_config['avatar_max_width']; $profilepic_max_height = $board_config['avatar_max_height']; if ( $profilepic_width > $profilepic_max_width || $profilepic_height > $profilepic_max_height ) { // Calculate list ($profilepic_new_width, $profilepic_new_height) = CalculateImageSize($profilepic_width, $profilepic_height, $profilepic_max_width, $profilepic_max_height); // Create $profilepic_full = @imagecreatefromjpeg($phpbb_root_path.'images/userprofile_pics/'.$profilepic_file); $profilepic_temp = ($gd_version < 2) ? @imagecreate($profilepic_new_width, $profilepic_new_height) : @imagecreatetruecolor($profilepic_new_width, $profilepic_new_height); $profilepic_resize = ($gd_version < 2) ? 'imagecopyresized' : 'imagecopyresampled'; @$profilepic_resize($profilepic_temp, $profilepic_full, 0, 0, 0, 0, $profilepic_new_width, $profilepic_new_height, $profilepic_width, $profilepic_height); // Save $quality = $profilepic_quality; @imagejpeg($profilepic_temp, $phpbb_root_path.$board_config['avatar_path'].'/'.$profilepic_file, $quality); @chmod($phpbb_root_path.$board_config['avatar_path'].'/'.$profilepic_file, 0777); } $sql = "UPDATE " . USERS_TABLE . " SET user_avatar_type = 1, user_avatar = '" . $profilepic_file . "' WHERE user_id = $user_id"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql); } } } ?>d_config['profilepic_thumb_width']; $profilepic_max_height = $board_config['profilepic_thumb_height']; $profilepic_full = is_file($phpbb_root_path.'images/userprofile_pics/temp_'.$profilepic_file) ? $phpbb_root_path.'images/userprofile_pics/temp_'.$profilepic_file : $phpbb_root_path.'images/userprofile_pics/'.$profilepic_file; if ( $profilepic_width > $profilepic_max_width || $profilepic_height > $profilepic_max_height ) { // Calculate list ($profilepic_new_width, $profilepic_new_height) = CalculateImageSize($profilepic_width, $profilepic_height, $profilepic_max_width, $profilepic_max_height); // Create $read_function = 'imagecreatefrom'.$profilepic_type; $profilepic_full = @$read_function($profilepic_full); $profilepic_temp = ($gd_version < 2) ? @imagecreate(
ibuerfei
 
Beiträge: 12
Registriert: 29. Apr 2006 13:55

Beitragvon AmigaLink » 17. Mai 2006 14:21

Hmmm? Komisch. da war wohl ein Fehler in der Datei auf dem Server. :?
Ich hab den MOD selber runtergeladen und das gleiche Problem gehabt. :shock:
Lad ihn nochmal runter, jetzt müsste es stimmen.
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.
Benutzeravatar
AmigaLink
Administrator
 
Beiträge: 3987
Registriert: 11. Aug 2004 01:06
Wohnort: NRW

Vorherige

Zurück zu Userpic in Profile



Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 6 Gäste

cron