Plugin Directory

Changeset 3233976


Ignore:
Timestamp:
02/03/2025 01:06:34 PM (12 months ago)
Author:
wpo-HR
Message:

fix image addressing issue when website uses redirection

Location:
ngg-smart-image-search
Files:
3 edited
5 copied

Legend:

Unmodified
Added
Removed
  • ngg-smart-image-search/tags/3.3.3/README.txt

    r3233578 r3233976  
    33Tags:           NextGEN Gallery, image search, smart search, customizable gallery displays, Bildersuche
    44Tested up to:   6.7
    5 Stable tag:     3.3.2
     5Stable tag:     3.3.3
    66License:        GPLv2 or later
    77License URI:    http://www.gnu.org/licenses/gpl-2.0.html
     
    139139
    140140== Changelog ==
     141
     142= 3.3.3 =
     143This is an error fix, uploaded 2025-02-03.
     144
     145*Fixed: when using advanced thumbnail display or linked image display, the image filename and thumbnailname will not point to the correct addresses if the website uses redirection.
    141146
    142147= 3.3.2 =
  • ngg-smart-image-search/tags/3.3.3/public/class-ngg-smart-image-search-public.php

    r3233519 r3233976  
    14031403                // to address image file correctly we need the local path to the file but not from home
    14041404                $hr_SIS_document_root = get_option("siteurl") ;
    1405                     $hr_SIS_filename = $hr_SIS_pathname . $hr_SIS_picture->filename ;
    1406                     $hr_SIS_thumbsfilename = $hr_SIS_pathname . "thumbs/thumbs_" .  $hr_SIS_picture->filename ;  // alter thumb name
     1405                    $hr_SIS_filename = $hr_SIS_document_root . $hr_SIS_pathname . $hr_SIS_picture->filename ;
     1406                    $hr_SIS_thumbsfilename = $hr_SIS_document_root . $hr_SIS_pathname . "thumbs/thumbs_" .  $hr_SIS_picture->filename ;  // alter thumb name
    14071407                    $hr_SIS_thumbsfilename2 = ABSPATH . substr($hr_SIS_pathname,1) . "thumbs/thumbs_" .  $hr_SIS_picture->filename ; 
    14081408                   
     
    14111411                            $hr_SIS_thumbsfilename = $hr_SIS_document_root . $hr_SIS_pathname . "thumbs/thumbs-" .  $hr_SIS_picture->filename ;
    14121412                    }
    1413                     if (  !file_exists( $hr_SIS_thumbsfilename2 ) ) {
     1413                    //if (  !file_exists( $hr_SIS_thumbsfilename2 ) ) {
    14141414                            // NextGEN changed at some time thumbs-filename from thumbs_imagefile to thumbs-imagefile
    14151415                            //$hr_SIS_output .=  'Datei ' . $hr_SIS_thumbsfilename2 . ' konnte nicht gefunden werden.<br>' ;
    1416                             }
     1416                            //}
    14171417                            if ( $hr_SIS_picture->exclude == 1 ) {
    14181418                                  $hr_SIS_titleline = $hr_SIS_picture->alttext . " " . __("(excluded)", "ngg-smart-image-search") ;
     
    14731473                        // to address image file correctly we need the local path to the file
    14741474                        $hr_SIS_document_root = get_option("siteurl") ;
    1475                             $hr_SIS_filename = $hr_SIS_pathname . "/" .  $hr_SIS_picture->filename ;
    1476                             $hr_SIS_thumbsfilename = $hr_SIS_pathname . "/thumbs/thumbs_" .  $hr_SIS_picture->filename ;                // alter thumbs name
     1475                            $hr_SIS_filename = $hr_SIS_document_root . $hr_SIS_pathname . "/" .  $hr_SIS_picture->filename ;
     1476                            $hr_SIS_thumbsfilename = $hr_SIS_document_root . $hr_SIS_pathname . "/thumbs/thumbs_" .  $hr_SIS_picture->filename ;                // alter thumbs name
    14771477                                    $hr_SIS_thumbsfilename2 = ABSPATH . substr($hr_SIS_pathname,1) . "thumbs/thumbs_" .  $hr_SIS_picture->filename ; 
    14781478                   
    14791479                            if (  !file_exists ( $hr_SIS_thumbsfilename2 ) ) {
    14801480                                    // NextGEN changed at some time thumbs-filename from thumbs_imagefile to thumbs-imagefile
    1481                                     $hr_SIS_thumbsfilename = $hr_SIS_pathname . "/thumbs/thumbs-" .  $hr_SIS_picture->filename ;   // neuer thumbs name
     1481                                    $hr_SIS_thumbsfilename = $hr_SIS_document_root . $hr_SIS_pathname . "/thumbs/thumbs-" .  $hr_SIS_picture->filename ;   // neuer thumbs name
    14821482                            }
    14831483                 
  • ngg-smart-image-search/trunk/README.txt

    r3233578 r3233976  
    33Tags:           NextGEN Gallery, image search, smart search, customizable gallery displays, Bildersuche
    44Tested up to:   6.7
    5 Stable tag:     3.3.2
     5Stable tag:     3.3.3
    66License:        GPLv2 or later
    77License URI:    http://www.gnu.org/licenses/gpl-2.0.html
     
    139139
    140140== Changelog ==
     141
     142= 3.3.3 =
     143This is an error fix, uploaded 2025-02-03.
     144
     145*Fixed: when using advanced thumbnail display or linked image display, the image filename and thumbnailname will not point to the correct addresses if the website uses redirection.
    141146
    142147= 3.3.2 =
  • ngg-smart-image-search/trunk/public/class-ngg-smart-image-search-public.php

    r3233519 r3233976  
    14031403                // to address image file correctly we need the local path to the file but not from home
    14041404                $hr_SIS_document_root = get_option("siteurl") ;
    1405                     $hr_SIS_filename = $hr_SIS_pathname . $hr_SIS_picture->filename ;
    1406                     $hr_SIS_thumbsfilename = $hr_SIS_pathname . "thumbs/thumbs_" .  $hr_SIS_picture->filename ;  // alter thumb name
     1405                    $hr_SIS_filename = $hr_SIS_document_root . $hr_SIS_pathname . $hr_SIS_picture->filename ;
     1406                    $hr_SIS_thumbsfilename = $hr_SIS_document_root . $hr_SIS_pathname . "thumbs/thumbs_" .  $hr_SIS_picture->filename ;  // alter thumb name
    14071407                    $hr_SIS_thumbsfilename2 = ABSPATH . substr($hr_SIS_pathname,1) . "thumbs/thumbs_" .  $hr_SIS_picture->filename ; 
    14081408                   
     
    14111411                            $hr_SIS_thumbsfilename = $hr_SIS_document_root . $hr_SIS_pathname . "thumbs/thumbs-" .  $hr_SIS_picture->filename ;
    14121412                    }
    1413                     if (  !file_exists( $hr_SIS_thumbsfilename2 ) ) {
     1413                    //if (  !file_exists( $hr_SIS_thumbsfilename2 ) ) {
    14141414                            // NextGEN changed at some time thumbs-filename from thumbs_imagefile to thumbs-imagefile
    14151415                            //$hr_SIS_output .=  'Datei ' . $hr_SIS_thumbsfilename2 . ' konnte nicht gefunden werden.<br>' ;
    1416                             }
     1416                            //}
    14171417                            if ( $hr_SIS_picture->exclude == 1 ) {
    14181418                                  $hr_SIS_titleline = $hr_SIS_picture->alttext . " " . __("(excluded)", "ngg-smart-image-search") ;
     
    14731473                        // to address image file correctly we need the local path to the file
    14741474                        $hr_SIS_document_root = get_option("siteurl") ;
    1475                             $hr_SIS_filename = $hr_SIS_pathname . "/" .  $hr_SIS_picture->filename ;
    1476                             $hr_SIS_thumbsfilename = $hr_SIS_pathname . "/thumbs/thumbs_" .  $hr_SIS_picture->filename ;                // alter thumbs name
     1475                            $hr_SIS_filename = $hr_SIS_document_root . $hr_SIS_pathname . "/" .  $hr_SIS_picture->filename ;
     1476                            $hr_SIS_thumbsfilename = $hr_SIS_document_root . $hr_SIS_pathname . "/thumbs/thumbs_" .  $hr_SIS_picture->filename ;                // alter thumbs name
    14771477                                    $hr_SIS_thumbsfilename2 = ABSPATH . substr($hr_SIS_pathname,1) . "thumbs/thumbs_" .  $hr_SIS_picture->filename ; 
    14781478                   
    14791479                            if (  !file_exists ( $hr_SIS_thumbsfilename2 ) ) {
    14801480                                    // NextGEN changed at some time thumbs-filename from thumbs_imagefile to thumbs-imagefile
    1481                                     $hr_SIS_thumbsfilename = $hr_SIS_pathname . "/thumbs/thumbs-" .  $hr_SIS_picture->filename ;   // neuer thumbs name
     1481                                    $hr_SIS_thumbsfilename = $hr_SIS_document_root . $hr_SIS_pathname . "/thumbs/thumbs-" .  $hr_SIS_picture->filename ;   // neuer thumbs name
    14821482                            }
    14831483                 
Note: See TracChangeset for help on using the changeset viewer.