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

Thread: Can the user background picture size be changed?

  1. #11

    Join Date
    Sep 2006
    Posts
    191

    Default

    here is what I have for the function moveUploadedImage


    Code:
    function moveUploadedImage( $_FILES, $fname, $path_and_name, $maxsize='', $imResize='true' )
    {
    	global $pic_height;
    	global $pic_width;
    	
    	$height = $pic_height;
    	if ( !$height )
    		$height = 250;
    	$width = $pic_width;    
    	if ( !$width )
    		$width = 250;
    
    	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

  2. #12
    PLAYMATE
    Guest

    Thumbs down I just tried it in 5.5 and it give me a blank page.

    I just tried it in 5.5 and it give me a blank page.

  3. #13
    gvpm
    Guest

    Default

    hmm well then restore everything to regular settings and change inside image.inc.php the "move" function 400 - > 800 and see if the images get bigger if you upload a big image.

  4. #14
    gvpm
    Guest

    Default

    arman change those 250 to say 800 and see if when you upload a big image it resizes to that size

  5. #15
    PLAYMATE
    Guest

    Default I see this in my image scrip

    tHIS IS WHAT I SEE IN MY IMAGE SCRIP WHAT SHOULD I CHANGE HERE??

    function moveUploadedImage( $_FILES, $fname, $path_and_name, $maxsize='', $imResize='true' )
    {
    global $pic_height;
    global $pic_width;

    $height = $pic_height;
    if ( !$height )
    $height = 250;
    $width = $pic_width;
    if ( !$width )
    $width = 250;

    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;
    }


    ?>

  6. #16

    Join Date
    Sep 2006
    Posts
    191

    Default

    I couldn't find a 400 but I did have two 250 for height and width, so I changed them to 1024 and 1024, and saved. I when and uploaded a picture and ti was still small and tiled. So I fixed the : repeat to no-repeat to make it not tile, but the picture is still small.
    the picture I uploaded was way huger than 250.

    I even copied and pasted that function into my profile customize file and did the changes you did, but it still doesnt make it bigger
    Last edited by ArnMan; 03-19-2007 at 05:43 PM.
    ------------------------------------
    Have a MMORPG character you are proud
    of - Toon in your Character at
    http://www.charnation.com

  7. #17
    PLAYMATE
    Guest

    Default where is the repeat file located?

    where is the repeat file located?

  8. #18

    Join Date
    Sep 2006
    Posts
    191

    Default

    it is in the profile.php somewhere around 3/4 of the way down
    Code:
    function PrintBkground( $ID )
    {
        global $site;
        
        $ret = '';
    
        $query = "SELECT * FROM ProfilesSettings WHERE `IDMember` = '$ID'";
        $arr = db_arr( $query );
        if ( $arr['IDMember'] )
    	$ret = 	"<style type=\"text/css\">
    		    body
    		    {
    		    	background-image: url( {$site['profileBackground']}{$arr['BackgroundFilename']});
    		    	background-color: {$arr['BackgroundColor']};
    		    	background-repeat:repeat;
    		    }
    I just replaced the background-repeat:repeat; to background-repeat:no-repeat;

    I have tried other css commands here but they don't affect the size of the pic. I can move the pic all over the background.
    Last edited by ArnMan; 03-19-2007 at 05:39 PM.
    ------------------------------------
    Have a MMORPG character you are proud
    of - Toon in your Character at
    http://www.charnation.com

  9. #19
    PLAYMATE
    Guest

    Thumbs up i think your on the right track

    now just need to make the pic full size. when part is making the pic shrink?

  10. #20

    Join Date
    Sep 2006
    Posts
    191

    Default

    So when you had copied over the image.inc.php code into your 5.6 did everything work good on your end?

    I am guessing there is a some difference from 5.4 to 5.6 to which why mine won't work
    ------------------------------------
    Have a MMORPG character you are proud
    of - Toon in your Character at
    http://www.charnation.com

+ Reply to Thread (include dating software, release, and patch number!)
Page 2 of 5 FirstFirst 1 2 3 ... 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