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 2019-03-29 00:58:19

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 154
Website

Select Image Question

Is there a function call that will return the photo that was selected.  For example a function like getSelectedPhoto?  I am looking to see if there is a function call that will tell me which photo on the page was selected.

Offline

#2 2019-03-30 14:02:00

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Select Image Question

What do you mean by "selected"? Is that just the image that's been clicked to open the slideshow, or are you asking about an image that has been marked as a selection in the client response features?


Matt

The Turning Gate, http://theturninggate.net

Offline

#3 2019-04-02 02:28:39

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 154
Website

Re: Select Image Question

I have solved this so no worries.  I wanted to know the selected item when I was on another page.

Offline

#4 2019-04-02 05:05:43

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Select Image Question

Hi Michael, can you share how you solved this?  My comments about wholesale updates to the Cart don't apply to CR or Backlight as a whole.

Offline

#5 2019-04-02 05:30:58

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 154
Website

Re: Select Image Question

Hi Ben,

When I built the album in the plugins (album_top function) I added code to create/write data to a sql DB and then set a query string on the image as it was built.  So when an image is selected I know the image # and can then access that on another page after getting the information I needed from the DB.   I also use a similar technique to pass the category(item_pricing) between pages.  I am currently in the process to fix my problem of Shipping using the backlight cart; but I may build my own cart to bypass the limitations of the backlight cart based on what we talked about in our email exchange. Currently, I turned off the backlight cart in Production environment replacing it with fotomoto my previous cart until I get the cart replaced; I only had to update my plugins file.

Michael

Last edited by mad (2019-04-02 05:47:07)

Offline

#6 2019-04-02 21:31:58

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Select Image Question

Hi Michael, that's an interesting approach.  Have you looked at using sessions instead?  Ephemeral data related to site visits shouldn't need to be saved in a database.

Offline

#7 2019-04-03 00:03:50

mad
Member
From: Arkansas
Registered: 2014-01-03
Posts: 154
Website

Re: Select Image Question

I have thought of using sessions information just hadn't coded it yet; but it is something that I would do as I start coding for the new Cart.  I eventually want to migrate from using fotomoto cart to a non-cost cart.

BTW, I have another question about adding a couple of additional buttons to the  xxxxx-single.php (toolbar fancy-box for the cart) for my new cart as I code it.  Is there a quick way to add those buttons since backlight controls the display of the single.php for the slideshow?  I was wondering if there was a function call that I could use to do those adds or be able to pass it in as part of when you construct the slideshow.  If not then I guess I will have to write that part of it as well.  I just hate reinventing the wheel though. lol!!!

Offline

#8 2019-04-08 05:01:25

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Select Image Question

Just the single_top and single_bottom functions on the single-image HTML pages.


Matt

The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB