Only show lightbox from large image

  • Posts: 16
  • Thank you received: 1
11 years 5 months ago #107082

I would like to change when the lightbox image shows. Instead of it showing when you click the thumbnail I would like to show when you click the main large image. So you click the thumbnail and the large image changes then when you click the large image you get the lightbox.

Can anyone help me with this?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 5 months ago #107095

Hi,

I didn't understood what you exactly wanted to do can you explain it with some screenshots for exemple ?
I think that you'll maybe find some answer there :

There is a tutorial for the integration of "ShadowBox Media Player":
www.hikashop.com/en/support/documentatio...ox-media-player.html

Last edit: 11 years 5 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 1
11 years 5 months ago #107102

Thank you for your reply and sorry that I didnt explain it better. I will try again :laugh:

Firstly I am already running Shadowbox Media Viewer which has added the extra bits missing from the default lightbox. So I have attached some photos. What I want is when you click the image marked in red, that it to show where the image marked in blue is. Then when you click the image marked in blue it opens the lightbox up.

Is that better? :cheer: :cheer:

Attachments:
Last edit: 11 years 5 months ago by adeycorp.

Please Log in or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #107191

There is no option for that.

You will have to change the code:

$html = '<a title="'.$alt.'" class="hikashop_image_small_link" rel="{handler: \'image\'}" href="'.$this->uploadFolder_url.$path.'" onclick="SqueezeBox.fromElement(this,{parse: \'rel\'});return false;" target="_blank" onmouseover="return hikashopChangeImage(\''.$addpopup.'\',\''.$this->uploadFolder_url_thumb.'\',\''.$this->thumbnail_x.'\',\''.$this->thumbnail_y.'\',this,\''.$alt.'\');" '.$optionslink.'>'.$html.'</a>';
to:
$html = '<a title="'.$alt.'" class="hikashop_image_small_link" rel="{handler: \'image\'}" href="'.$this->uploadFolder_url.$path.'" onclick="return hikashopChangeImage(\''.$addpopup.'\',\''.$this->uploadFolder_url_thumb.'\',\''.$this->thumbnail_x.'\',\''.$this->thumbnail_y.'\',this,\''.$alt.'\');" '.$optionslink.'>'.$html.'</a>';

in the file administrator/components/com_hikashop/helpers/image.php

Please Log in or Create an account to join the conversation.

  • Posts: 16
  • Thank you received: 1
11 years 5 months ago #107408

Thank you for that, it as sort of worked. But think the problem now is due to the Art Zoomin plugin but I have emailed them about that one. I will update you guys soon.

The following user(s) said Thank You: Mohamed Thelji

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum