+ Reply to Thread (include dating software, release, and patch number!)
Page 3 of 5 FirstFirst ... 2 3 4 ... LastLast
Results 21 to 30 of 45

Thread: Can the user background picture size be changed?

  1. #21
    PLAYMATE
    Guest

    Default at my end 5.5 did NOT work

    at my end 5.5 did NOT work at all just a blank white page.

  2. #22
    gvpm
    Guest

    Default

    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

  3. #23
    gvpm
    Guest

    Default

    yea it works for me try this out just comment out and leave 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 
    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;

        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.

  4. #24
    PLAYMATE
    Guest

    Default I tried it it does not change a thing

    I tried it it does not change a thing

    hhhmmm

  5. #25
    gvpm
    Guest

    Default

    pm me your images.inc.php if you don't mind

  6. #26

    Join Date
    Sep 2006
    Posts
    191

    Default

    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

  7. #27
    gvpm
    Guest

    Default

    commment out like i did just to see if it works cuz it worked for me

  8. #28
    PLAYMATE
    Guest

    Default Did it work for you arman?

    Did it work for you arman?

  9. #29

    Join Date
    Sep 2006
    Posts
    191

    Default

    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

  10. #30
    PLAYMATE
    Guest

    Default I read a thread on boonex that 2 files have to be changed

    I read a thread on boonex that 2 files have to be changed

+ Reply to Thread (include dating software, release, and patch number!)
Page 3 of 5 FirstFirst ... 2 3 4 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. profile background picture/wallpaper
    By doomenterprises in forum Dolphin General Discussion v6.00 and above
    Replies: 3
    Last Post: 11-01-2008, 01:24 AM
  2. text background size
    By nolimitslove in forum Dolphin General Discussion v6.00 and above
    Replies: 2
    Last Post: 05-06-2008, 09:58 PM
  3. Upload User Picture during the new Member signup !?
    By TrippleEx in forum General Issues, Comments, Questions
    Replies: 0
    Last Post: 12-28-2006, 05:20 PM
  4. Picture size
    By spikelee in forum FAQ & HOWTO
    Replies: 17
    Last Post: 10-17-2006, 03:22 AM
  5. Changing Code to Increase Picture Size
    By Mary Jane in forum FAQ & HOWTO
    Replies: 2
    Last Post: 09-20-2006, 06:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts