Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 1 of 1

Thread: Quick Help

  1. #1
    Join Date
    Mar 2006
    Location
    C:\\Program Files
    Posts
    2,592
    Tokens
    0

    Latest Awards:

    Default Quick Help

    Hey

    Ive got 'The Grand Tutorial' script and im having trouble with the upload images when adding a tutorial to site.

    The code I have is:

    PHP Code:
    function imgsizemod($image ''$text ''){
        
            if(
    $text == 'jpg' || $text == 'jpeg'){
                
    $img imagecreatefromjpeg($image);
            } elseif(
    $ext == 'png'  || $text =='png'){
                
    $img imagecreatefrompng($image);
            } else {
                return 
    basename($image);
            }
            
            
    $xw imagesx($img);
            
    $yw imagesy($img); 
    And for some reason, that isnt working. +REP for all help
    Thanks
    Last edited by Liberation; 21-01-2007 at 08:24 PM.


Posting Permissions

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