Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2020-04-04 09:43:43

chumby
Member
Registered: 2014-10-23
Posts: 188

Scroll through search results not working: www.tasmanianphotos.com

Hi there,

When I do a search on my site https://www.tasmanianphotos.com I get the results as desired am presented the right number of images.

Clicking through though by using the right arrow icon (or by clicking on the single image) I thought I should be clicking through the result set - but instead am presented with other images from the album.

Any ideas?

My test was: Primrose in the search box.

Cheers
Chumby

Offline

#2 2020-04-05 01:32:34

JimR
Member
Registered: 2012-11-30
Posts: 348
Website

Re: Scroll through search results not working: www.tasmanianphotos.com

I'm not sure of the cause, but here's the problem.

  1. Search for "primrose"

  2. Click on an image in the search result

  3. Verify you find "primrose" on that page

  4. Click on the right arrow to view the next image in the search result.

  5. Verify that the URL now ends with
    ?origin=https://www.tasmanianphotos.com/backlight/search/?q=Primrose

  6. Click on the right arrow to view the next image in the search result.

  7. Check new URL, notice it is now just ?q

  8. Clicking on the right arrow at this point will take you to the next image in the current album


--Jim

Offline

#3 2020-04-05 06:54:34

chumby
Member
Registered: 2014-10-23
Posts: 188

Re: Scroll through search results not working: www.tasmanianphotos.com

Thanks Jim,

Yes that is pretty much the behaviour - the URL justs all just mixed up.

Below is my code for single_bottom in my-phplugins.  All seems to do what it should but I wonder if there is anythin in there causing an isue on the single page?  My not be relevant though.

Appreciate your help.

Cheers
Chumby.

// Single Image Manipulation

function single_bottom(){
   // support for left/right arrow key and esc key navigation
   $photo = $this->photo;
   $album = $this->album;
	
   echo' <script>
      function checkKey(e) {
         switch(e.which) {
            case 37: ';
               if ($album->getPreviousPhoto($photo)) { 
                  echo 'location.href=$("li.single_image_prev a").attr("href");';
               }		
               echo 'break;
            case 39:';
               if ($album->getNextPhoto($photo)) {
                  echo 'location.href=$("li.single_image_next a").attr("href");';
               }				
               echo 'break;
            case 27:';
               echo 'location.href=$("li.single_image_back a").attr("href");';			
               echo 'break;
            default: return; 
         }
         e.preventDefault();
      }
      document.onkeydown = checkKey;
   </script>';
 
    
    // Bottom of Footer Information
    // Pay Now Button
    echo '
    <div align="center">
    <button class="add-to-cart" data-item="'.$photo->getFilename().'" data-name="'.$photo->getMetadata(Photo::$PHOTO_TITLE).'" data-price="TasmanianPhotos Pricing Scheme Default" data-thumbnail="'.$photo->getThumbnailURL().'"> Buy this Photo</button>
    </div>
    ';
    
    //Summary Information under the single image
    echo'

        <p></p>
        <div class="bold-red">Image Information</div>
        <div class="single-image-footer-content">
        Images are delivered as a JPEG Digital Download and available as: <br />
        </div>
        
        <div class="single-image-footer-content">
        <ul>
            <li><strong>HiRes Image (4:3) - </strong>Suitable for large print such as Posters and Wall Hanging Pictures. Filesize: As per original size, 10-15 Mb.
            
            <li><strong>Print Image (4:3) - </strong> Sutiable for small print & web applications. Approximate filesize is 1-1.5 Mb.  1200px longest edge.
        
            <li><strong>Web Ready (4:3) - </strong>Suitable for Web Applications. Approximate filesize is 500 Kb. 600px longest edge.
            
            <li><strong>Wallpaper (16:9) - </strong>Suitable for PC Wallpapers with a 16:9 ratio widescreen. Cropped from orginal HiRes file with subject remaining in the crop. Approximate file size 1-1.5 Mb Kb file. 1200px longest edge. 
            
            <li><strong>Postcard / Photo Image (3:2) - </strong>Suitable for Postcards and 6x4 Printed Photos. Cropped 3:2 ratio of orginal HiRes file.  Subject remains in the crop.  Approximate file size 1-1.5 Mb Kb. 1200px longest edge.           
        </ul>

        <p>The original RAW rendered TIFF files (Filesize > 50 Mb) may be sourced on request. These images are suitable for very large print applications such as Banners or Large Wall Displays.</p>
        </div>
        
        <div class="bold-red">About Tasmania</div>

        <div class="single-image-footer-content">
        <p>Tasmania is an Island State situated to the south of mainland Australia. Tasmania is 64,519 km squared in size and has a number of smaller islands surrouding it. It is a natural state with approximatley 40% of land protected including a large 15,800 km squarded area known as the Tasmanian Wilderness which is World Heritage listed.</p></div>

        <div class="single-image-footer-content">
        <p>The population of Tasmania (as of 2020) is approximately 520,000 people with approximately 225,000 living in the south in and around the capital city, Hobart.</p></div>

        <div class="single-image-footer-content">
        <p>Tasmanians enjoy a relaxed lifestyle and produce such as fruit, seafood and whiskey is produced to the highest standards in the world.</p></div>
      
      ';
    }

Offline

#4 2020-04-05 08:51:24

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Scroll through search results not working: www.tasmanianphotos.com

Chumby, you already reported this some weeks ago the http://community.theturninggate.net/vie … p?id=11172.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#5 2020-04-05 09:16:49

chumby
Member
Registered: 2014-10-23
Posts: 188

Re: Scroll through search results not working: www.tasmanianphotos.com

Geez thank you Dan,

Had moved on with other development from that Feb post and obviously just returning to it now.

Will pick it back up there on that thread.  Glad you keep a better eye on things than me, ha!

Happy for this post to be closed.

Cheers,
Chumby

Offline

Board footer

Powered by FluxBB