iframe
-
Hi
Thanks for your plugin!
I have a question. I want to create a picture carousel. Every picture should open a popup with an iframe. In fact every picture should display to the visitor a panorama 360.So my question is it is possible to open a popup/lightbox with iframe inside when i click on pictures ?
Thanks
-
Hello,
Short answer: yes, but you need to do some coding yourself, since what you want is very specific.
Longer answer: as far as I can tell, you will need the following:
- You will have to create a custom loop to get your images and make each one of them to open a specific link when clicked (see some custom loop examples).
- you will need some 3rd plugin for the iframe popup, unless you know how to create it your self
It’s not so easy if you are not comfortable with coding things your self, but if you do, Slidr is flexible enough to support such functionality.
I found another solution. In inc/item_content.php of your plugin I addes a class fancybox here
echo '<a href="' . $link . '" rel="bookmark"' . '" class="fancybox-inline"' . $aclass . '>';To solve my problem I just need to be able to have another url instead of $link to the url of the picture….
But don^t know how to do that πIf I could add manually the url I want in the field “description” of an image in the media section, it would perfect if instead of $link your function would read the descirption of the image…
Have you an idea?
Don’t mess with the plugin’s files just to add a class at the link. Slidr supports that anyway. Just add
link_class="my_class"in the shortcode like that:[slidr link_class="my_class"]As for the other part, I’m afraid you can’t change the url without creating a custom loop. Each image should have its own url and you need to assign it somehow.
oh ok ! thanks !
In fact…. i need a loop to retrieve the caption or descirption of the picture and use it instead of the image url….
I’ll check for a develper!
Thanks
Ok i found how to do it… simply changing in shortcode.php this line
$img_link = $a['gallery_link'] === 'attachment' ? get_attachment_link( $attachment->ID ) : $media_url[0];like this
$img_link = $a['gallery_link'] === 'attachment' ? get_attachment_link( $attachment->ID ) : $attachment->post_content;I am glad you figured this out. You should keep this change, though, because in the next plugin update it will get overwritten and you will need to add it again (that’s why I suggested the custom loop).
That’s an interesting idea, though – perhaps I could implement a similar functionality in the next update.
Thank you for your feedback!
Thanks to you ! yes I know I’ll have to change it at every update!
If you implement that it would be cool πThanks!
Hi Giorgos
I finished the website http://www.airwatchcenter.ch/test/ (temporary url)
So you can see the result.I just noticed that autoscroll is not working anymore π any idea? this is my shortcode
[slidr gallery="160,161,135,136,137" speed="1500β³ link_class="fancybox-inline" info_box=βnoβ height=β250β³ cycle=βautoβ size=βoriginalβ ]And last question : do you think there is a way to have one of the pictures (Rolex) in the middle of the screen when first load of the page?
Thanks a lot !!!
any idea at least for the autscroll not working?
hope to have your helpSorry, I must have missed the email notification for your earlier message.
Well, your shortcode seems OK but from the source code of your page I can see that no autoscroll class has been added to the carousel.
Can you go to the plugins settings at Tools / Slidr and on the tab “Slidr Defaults” make sure that the option “Cycle Items” is set to “Autoscroll”?
If this doesn’t work, try to write the shortcode in a notepad and paste it as pure text in your post, just in case it took any malformed character during some copy/paste.
I am checking the code outputted in your HTML and apparently the speed isn’t returned either. The code that you pasted above seems to have some differences between the quotes (check this screenshot: http://i.imgur.com/oLiWIQj.png)
I believe that you should start from my second suggestion (fix malformed code).
in fact you were right! it was the quotes !!! thanks a lot !!!
The topic ‘iframe’ is closed to new replies.