Hello Webtreats !
Is it possible to turn off carousel of thumbnails in prettyPhoto in fency_images shortcode?
Regards
Jacek
(9 posts)
(2 voices)
Hello Webtreats !
Is it possible to turn off carousel of thumbnails in prettyPhoto in fency_images shortcode?
Regards
Jacek
Hello jacekw,
To do this you would just need to place one image URL per fancy image like so,
[fancy_images]http://www.yoursite.com/images/1.jpg[/fancy_images]
[fancy_images]http://www.yoursite.com/images/2.jpg[/fancy_images]
[fancy_images]http://www.yoursite.com/images/3.jpg[/fancy_images]
And each of them will open separately. If you want to force this behaviour then open up your shortcode.php file and on line 53 you should see this,
if ($links[$counter] != '') { $img = $links[$counter]; } else { $rel = " rel = 'lightbox[portfolio]'"; }
Change it like this,
if ($links[$counter] != '') { $img = $links[$counter]; } else { $rel = " rel = 'lightbox'"; }
Let us know if this helps jacekw.
Hello Elliott
It works well but only for one photo :(. Every jpg opens in separate jQuery window without arrows and navi buttons.
I am looking for solution to open all one-group jpegs in the same jQuery window without carousel.
Guys would be great if you find solution for this.
Regards
Jacek
So to make sure I understand correctly, you want to select which photos open up in which gallery correct?
Find lines 12 - 21 and add a gallery parameter like so,
extract(shortcode_atts(array(
'url' => '',
'target' => '',
'title' => '',
'alt' => '',
'height' => '200',
'width' => '188',
'sidebar' => '',
'gallery' => '', // add this line
), $atts));
And then change line 54 to look like this,
if ($links[$counter] != '') { $img = $links[$counter]; } else { $rel = " rel = 'lightbox[".$gallery."]'"; }
You can now select which images to open in which gallery like so,
[fancy_images gallery = "album1"]
http://www.yoursite.com/images/1.jpg
[/fancy_images]
[fancy_images gallery = "album2"]
http://www.yoursite.com/images/1.jpg
[/fancy_images]
Hi Elliott
I did this before and this not solve my problem becouse if is set group of jpegs by gallery parameter, carousel appeared again. I use code like this:
[fancy_images sidebar = 'yes' group = 'one'] http://www.mysite.com/71.jpg [/fancy_images]
[fancy_images sidebar = 'yes' group = 'one'] http://www.mysite.com/72.jpg [/fancy_images]
[fancy_images sidebar = 'yes' group = 'one'] http://www.mysite.com/73.jpg [/fancy_images]
If i use shortcode.php with line:
if ($links[$counter] != '') { $img = $links[$counter]; } else { $rel = " rel = 'lightbox'"; }
jQuery opens window with one picture without carousel. It's well but i can't display gallery with more jpegs.
On the other side when i use shortcode.php with line:
if ($links[$counter] != '') { $img = $links[$counter]; } else { $rel = " rel = 'lightbox[".$gallery."]'";
jQuery opens window with group of jpegs with carousel in it. I addition when i use only one jpeg with gallery parameter jQuery opens windows with one picture and with carousel in the window.
Regards
Jacek
Go ahead and take a scvreenshot and highlight the areas you are having issues with so we can get a better idea of what needs done.
Hi Elliott
I want to remove carousel shown in the attachment. I tried to do this in many ways but no success.
Regards
Jacek
Ahh I see, try the solution in this thread, http://mysitemyway.com/support/topic/issues-after-upgrade-to-31?replies=6&message=update-support-forums-topic-status-error.
One picture says more than thousand words..... It was good remark Elliott :).
I changed overlay_gallery parameter to false in file .../infocus/lib/scripts/custom.js and it works how I expected.
Great work Elliott. Many thanks
You must log in to post.