Only show lightbox from large image
13 years 5 months ago #107082
by adeycorp
Only show lightbox from large image was created by adeycorp
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?
Can anyone help me with this?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 5 months ago - 13 years 5 months ago #107095
by Mohamed Thelji
Replied by Mohamed Thelji on topic Only show lightbox from large image
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 :
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: 13 years 5 months ago by Mohamed Thelji.
Please Log in or Create an account to join the conversation.
13 years 5 months ago - 13 years 5 months ago #107102
by adeycorp
Replied by adeycorp on topic Only show lightbox from large image
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?
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?
Last edit: 13 years 5 months ago by adeycorp.
Please Log in or Create an account to join the conversation.
13 years 5 months ago #107191
by nicolas
Replied by nicolas on topic Only show lightbox from large image
There is no option for that.
You will have to change the code:
to:
in the file administrator/components/com_hikashop/helpers/image.php
You will have to change the code:
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>';
Code:
$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.
13 years 5 months ago #107408
by adeycorp
Replied by adeycorp on topic Only show lightbox from large image
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.060 seconds