Jump to content
DevFuse Forums

Michael

Management
  • Posts

    4,467
  • Joined

  • Last visited

  • Days Won

    424

Bug Comments posted by Michael

  1. What browser and IPB version are you on? Also if you view your browser source code. Can you see any reference to a form.css file? So for example my test board is loading the form.css file and the color sections with that.

    Aamapex.png

  2. Temporary patch:

    Open applications/collections/modules/front/collections/image.php

    Find:

            /* Get IMAGE */
    	    $image = parent::manage();   
    
            exit(); 

    Replace With:

            /* Get image */
            try
            {
                $image = \IPS\collections\Item\Image::load( \IPS\Request::i()->id );
                $file = \IPS\File::get( 'collections_ItemImages', $image->url );
    
                $headers	= array_merge( \IPS\Output::getCacheHeaders( time(), 360 ), array( "Content-Disposition" => \IPS\Output::getContentDisposition( 'inline', $file->originalFilename ), "X-Content-Type-Options" => "nosniff" ) );
    
                /* Send headers and print file */
                \IPS\Output::i()->sendStatusCodeHeader( 200 );
                \IPS\Output::i()->sendHeader( "Content-type: " . \IPS\File::getMimeType( $file->originalFilename ) . ";charset=UTF-8" );
    
                foreach( $headers as $key => $header )
                {
                    \IPS\Output::i()->sendHeader( $key . ': ' . $header );
                }
                \IPS\Output::i()->sendHeader( "Content-Length: " . $file->filesize() );
    
                $file->printFile();
                exit;
            }
            catch ( \OutOfRangeException $e )
            {
                \IPS\Output::i()->error( 'node_error', '', 404, '' );
            }
            catch ( \UnderflowException $e )
            {
                \IPS\Output::i()->error( 'node_error', '', 404, '' );
            }

    Save.

×
×
  • Create New...