at my end 5.5 did NOT work at all just a blank white page.
at my end 5.5 did NOT work at all just a blank white page.
No arman what you see in profile.php is its just calling from the database and inserting the filename location even if the image was 1024.800 and repeat was on it will still show that big size ima add profile_customize.php to my script and test it out myself
yea it works for me try this out just comment out and leave this:
mines look like this .....PHP Code:function moveUploadedImage( $_FILES, $fname, $path_and_name, $maxsize='', $imResize='true' )
{
global $max_photo_height;
global $max_photo_width;
$height = 1400;
$width = 1400;
///basically where the ifs use to be comment out and just leave height and width equal 1400 and see if it work for your :) ... just a test
PHP Code:function moveUploadedImage( $_FILES, $fname, $path_and_name, $maxsize='', $imResize='true' )
{
global $max_photo_height;
global $max_photo_width;
$height = 1400;
$width = 1400;
if ( $maxsize && ($_FILES[$fname]['size'] > $maxsize || $_FILES[$fname]['size'] == 0) )
{
if ( file_exists($_FILES[$fname]['tmp_name']) )
{
unlink($_FILES[$fname]['tmp_name']);
}
return false;
}
else
{
$scan = getimagesize($_FILES[$fname]['tmp_name']);
if ( ($scan['mime'] == 'image/jpeg' && $ext = '.jpg' ) || ( $scan['mime'] == 'image/gif' && $ext = '.gif' ) ||
( $scan['mime'] == 'image/png' && $ext = '.png' ) || ( $scan['mime'] == 'image/bmp' && $ext = '.bmp' ) )
{
$path_and_name .= $ext;
move_uploaded_file( $_FILES[$fname]['tmp_name'], $path_and_name );
if ( $imResize )
imageResize( $path_and_name, $path_and_name, $width, $height );
}
else
{
return IMAGE_ERROR_WRONG_TYPE;
}
}
return $ext;
}
Last edited by gvpm; 03-19-2007 at 07:31 PM.
I tried it it does not change a thing
hhhmmm
pm me your images.inc.php if you don't mind
on this do I comment out the lines in the image.inc.php or copy and paste that section of code from the image.inc.php to the customize php file to test?
------------------------------------
Have a MMORPG character you are proud
of - Toon in your Character at
http://www.charnation.com
commment out like i did just to see if it works cuz it worked for me
Did it work for you arman?
No it didn't work for me, I even copied your code and replaced mine with it.
here is my image.inc file
and the stuff I commented out of it
Code:function moveUploadedImage( $_FILES, $fname, $path_and_name, $maxsize='', $imResize='false' ) { global $pic_height; global $pic_width; //$height = $pic_height; // if ( !$height ) $height = 1400; // $width = $pic_width; // if ( !$width ) $width = 1400; if ( $maxsize && ($_FILES[$fname]['size'] > $maxsize || $_FILES[$fname]['size'] == 0) ) { if ( file_exists($_FILES[$fname]['tmp_name']) ) { unlink($_FILES[$fname]['tmp_name']); } return false; } else { $scan = getimagesize($_FILES[$fname]['tmp_name']); if ( ($scan['mime'] == 'image/jpeg' && $ext = '.jpg' ) || ( $scan['mime'] == 'image/gif' && $ext = '.gif' ) || ( $scan['mime'] == 'image/png' && $ext = '.png' ) || ( $scan['mime'] == 'image/bmp' && $ext = '.bmp' ) ) { $path_and_name .= $ext; move_uploaded_file( $_FILES[$fname][tmp_name], $path_and_name ); if ( $imResize ) imageResize( $path_and_name, $path_and_name, $width, $height ); } else { return IMAGE_ERROR_WRONG_TYPE; } } return $ext; } ?>
------------------------------------
Have a MMORPG character you are proud
of - Toon in your Character at
http://www.charnation.com
I read a thread on boonex that 2 files have to be changed
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks