+ Antworten
Ergebnis 1 bis 3 von 3

Thema: jogadgets lightbox Funktion

  1. #1
    Kommt häufiger vorbei Avatar von SchusterHannes
    Registriert seit
    17.04.2006
    Ort
    Boppard
    Alter
    45
    Beiträge
    285
    Bedankte sich
    6
    Erhielt 48 Danksagungen
    in 48 Beiträgen

    Standard jogadgets lightbox Funktion

    Hallo,

    irgendwie bekomme ich die Lightbox Funktion über jogadgets nicht richtig hin. Ich habe so das Mombot aufgerufen:

    Code:
    {jgxtimg src:=[path/image.jpg] width:=[320]}
    Im Frontend ist nun allerdings ein grauer Container zu sehen und kein Thumbnail Bild. Wenn man auf diesen grauen Container klickt öffnet sich genau wie ich es auch möchte eine Lightbox. In dem grauen Container steht:

    Code:
    php Tumb( ) v.1.6.2-200511240855
    "allow_url_fopen" disabled
    Nun weiß ich nicht, wie ich es hinbekomme, dass ich Frontend ein Thumbnails Bild sehen kann... auf das man dann klickt.

    Hat jemand eine Idee wie man das eingibt???
    Gruß
    Schuster Hannes

    gulix-web4u.de

  2. #2
    Kommt häufiger vorbei Avatar von SchusterHannes
    Registriert seit
    17.04.2006
    Ort
    Boppard
    Alter
    45
    Beiträge
    285
    Bedankte sich
    6
    Erhielt 48 Danksagungen
    in 48 Beiträgen

    Standard

    Ich denke, das wird wohl an den Einstellungen in der Datei phpThumb.config.php liegen.

    Was muss ich denn verändern, damit es funktioniert oder was läuft da falsch???

    Was ich da nicht so ganz verstanden habe, ist die Installation von ImageMagick auf dem Server zwingend erforderlich oder läuft das Erstellen der Thumbnails auch die ImageMagick???

    Hier ist der code:
    PHP-Code:
    // maximum number of pixels in source image to attempt to process entire image.
    // If this is zero then no limit on source image dimensions.
    // If this is nonzero then this is the maximum number of pixels the source image
    // can have to be processed normally, otherwise the embedded EXIF thumbnail will
    // be used (if available) or an "image too large" notice will be displayed.
    // This is to be used for large source images (> 1600x1200) and low PHP memory
    // limits. If PHP runs out of memory the script will usually just die with no output.
    // To calculate this number, multiply the dimensions of the largest image
    // you can process with your memory limitation (e.g. 1600 * 1200 = 1920000)
    // As a general guideline, this number will be about 20% of your PHP memory
    // configuration, so 8M = 1,677,722; 16M = 3,355,443; 32M = 6,710,886; etc.
    if (phpthumb_functions::version_compare_replacement(phpversion(), '4.3.2''>=') && !defined('memory_get_usage') && !@ini_get('memory_limit')) {
        
    // memory_get_usage() will only be defined if your PHP is compiled with the --enable-memory-limit configuration option.
        
    $PHPTHUMB_CONFIG['max_source_pixels'] = 0;         // no memory limit
    } else {
        
    // calculate default max_source_pixels as 20% of memory limit configuration
        
    $PHPTHUMB_CONFIG['max_source_pixels'] = round(max(intval(ini_get('memory_limit')), intval(get_cfg_var('memory_limit'))) * 1048576 0.20);
        
    //$PHPTHUMB_CONFIG['max_source_pixels'] = 0;       // no memory limit
        //$PHPTHUMB_CONFIG['max_source_pixels'] = 1920000; // allow 1600x1200 images (2Mpx), no larger (about 10MB memory required)
        //$PHPTHUMB_CONFIG['max_source_pixels'] = 3355443; // 16MB memory limit
        //$PHPTHUMB_CONFIG['max_source_pixels'] = 3871488; // allow 2272x1704 images (4Mpx), no larger (about 16MB memory required)
    }


    // ImageMagick configuration
    // If source image is larger than available memory limits as defined above in
    // 'max_source_pixels' AND ImageMagick's "convert" program is available, phpThumb()
    // will call ImageMagick to perform the thumbnailing of the source image to bypass
    // the memory limitation. Leaving the value as NULL will cause phpThumb() to
    // attempt to detect ImageMagick's presence with `which`
    if (strtoupper(substr(PHP_OS03)) == 'WIN') {
        
    // Windows: set absolute pathname
        
    $PHPTHUMB_CONFIG['imagemagick_path'] = 'C:/Program Files/ImageMagick-6.2.3-Q16/convert.exe';
    } else {
        
    // *nix: set absolute pathname to "convert", or leave as null if "convert" is in the path
        //$PHPTHUMB_CONFIG['imagemagick_path'] = '/usr/local/bin/convert';
        
    $PHPTHUMB_CONFIG['imagemagick_path'] = null;
    }
    $PHPTHUMB_CONFIG['prefer_imagemagick'] = false;  // If true, use ImageMagick to resize thumbnails if possible; if false only use ImageMagick if PHP memory limit is too low.


    // * Default output configuration:
    $PHPTHUMB_CONFIG['output_format']    = 'jpeg'// default output format ('jpeg', 'png' or 'gif') - thumbnail will be output in this format (if available in your version of GD). This is always overridden by ?f=___ GETstring parameter
    $PHPTHUMB_CONFIG['output_maxwidth']  = 200;      // default maximum thumbnail width.  If this is zero then default width  is the width  of the source image. This is always overridden by ?w=___ GETstring parameter
    $PHPTHUMB_CONFIG['output_maxheight'] = 200;      // default maximum thumbnail height. If this is zero then default height is the height of the source image. This is always overridden by ?h=___ GETstring parameter
    $PHPTHUMB_CONFIG['output_interlace'] = true;   // if true: interlaced output for GIF/PNG, progressive output for JPEG; if false: non-interlaced for GIF/PNG, baseline for JPEG.

    // * Error message configuration
    $PHPTHUMB_CONFIG['error_image_width']           = 400;      // default width for error images
    $PHPTHUMB_CONFIG['error_image_height']          = 100;      // default height for error images
    $PHPTHUMB_CONFIG['error_message_image_default'] = '';       // Set this to the name of a generic error image (e.g. '/images/error.png') that you want displayed in place of any error message that may occur. This setting is overridden by the 'err' parameter, which does the same thing.
    $PHPTHUMB_CONFIG['error_bgcolor']               = 'CCCCFF'// background color of error message images
    $PHPTHUMB_CONFIG['error_textcolor']             = 'FF0000'// color of text in error messages
    $PHPTHUMB_CONFIG['error_fontsize']              = 1;        // size of text in error messages, from 1 (smallest) to 5 (largest)
    $PHPTHUMB_CONFIG['error_die_on_error']          = true;     // die with error message on any fatal error (recommended with standalone phpThumb.php)
    $PHPTHUMB_CONFIG['error_silent_die_on_error']   = false;    // simply die with no output of any kind on fatal errors (not recommended)
    $PHPTHUMB_CONFIG['error_die_on_source_failure'] = true;     // die with error message if source image cannot be processed by phpThumb() (usually because source image is corrupt in some way). If false the source image will be passed through unprocessed, if true (default) an error message will be displayed.

    // * Off-server Thumbnailing Configuration:
    $PHPTHUMB_CONFIG['nohotlink_enabled']           = true;                                     // If false will allow thumbnailing from any source domain
    $PHPTHUMB_CONFIG['nohotlink_valid_domains']     = array(@$_SERVER['HTTP_HOST']);            // This is the list of domains for which thumbnails are allowed to be created. The default value of the current domain should be fine in most cases, but if neccesary you can add more domains in here, in the format 'www.example.com'
    $PHPTHUMB_CONFIG['nohotlink_erase_image']       = true;                                     // if true thumbnail is covered up with $PHPTHUMB_CONFIG['nohotlink_fill_color'] before text is applied, if false text is written over top of thumbnail
    $PHPTHUMB_CONFIG['nohotlink_text_message']      = 'Off-server thumbnailing is not allowed'// text of error message
    // * Off-server Linking Configuration:
    $PHPTHUMB_CONFIG['nooffsitelink_enabled']       = true;                                       // If false will allow thumbnails to be linked to from any domain, if true only domains listed below in 'nooffsitelink_valid_domains' will be allowed.
    $PHPTHUMB_CONFIG['nooffsitelink_valid_domains'] = array(@$_SERVER['HTTP_HOST']);              // This is the list of domains for which thumbnails are allowed to be created. The default value of the current domain should be fine in most cases, but if neccesary you can add more domains in here, in the format 'www.example.com'
    $PHPTHUMB_CONFIG['nooffsitelink_require_refer'] = false;                                      // If false will allow standalone calls to phpThumb(). If true then only requests with a $_SERVER['HTTP_REFERER'] value in 'nooffsitelink_valid_domains' are allowed.
    $PHPTHUMB_CONFIG['nooffsitelink_erase_image']   = true;                                       // if true thumbnail is covered up with $PHPTHUMB_CONFIG['nohotlink_fill_color'] before text is applied, if false text is written over top of thumbnail
    $PHPTHUMB_CONFIG['nooffsitelink_text_message']  = 'Image taken from '.@$_SERVER['HTTP_HOST']; // text of error message 
    oder
    PHP-Code:
    $PHPTHUMB_CONFIG['config_prefer_imagemagick']    = false;  // If true, use ImageMagick to resize thumbnails if possible, since it is usually faster than GD functions; if false only use ImageMagick if PHP memory limit is too low.
    $PHPTHUMB_CONFIG['use_exif_thumbnail_for_speed'] = false// If true, and EXIF thumbnail is available, and is larger or equal to output image dimensions, use EXIF thumbnail rather than actual source image for generating thumbnail. Benefit is only speed, avoiding resizing large image. 
    Gruß
    Schuster Hannes

    gulix-web4u.de

  3. #3
    Kommt häufiger vorbei Avatar von SchusterHannes
    Registriert seit
    17.04.2006
    Ort
    Boppard
    Alter
    45
    Beiträge
    285
    Bedankte sich
    6
    Erhielt 48 Danksagungen
    in 48 Beiträgen

    Standard

    So das Problem ist gelöst... klappt jetzt wunderbar. Es lag an einer nicht aktivierten Einstellung in der php.ini auf dem Server.
    Gruß
    Schuster Hannes

    gulix-web4u.de

+ Antworten

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein