Make it works with jquery color box
-
Hello
I was searching a solution for make it works with https://www.ads-software.com/extend/plugins/jquery-colorbox/jquery colorbox, need a full url to the image to open his box.
Well, ok, i can enter an url for an image with your plugin.
The problem is i need the url of the full image to make jquery colorbox to work..
I have trick you code and it work, but i really don’t like what i have done because in case of update of you plugin, i’ll lose my tricks…
Do you have any proper solutions to simply add the full url on an image into you backoffice plugin ?
Thanks
here is my changes in metaslide.image.class.php :
/* OLD CODE $anchor_attributes = apply_filters('metaslider_nivo_slider_anchor_attributes', array( 'href' => $slide['url'], 'target' => $slide['target'] ), $slide, $this->slider->ID); */ /* BEGIN : CUSTOM CODE */ $image_full = substr($slide['src'],0,strlen($slide['src'])-12).'.'.substr($slide['src'],-3); if ($slide['url']) { $anchor_attributes = apply_filters('metaslider_nivo_slider_anchor_attributes', array( 'href' => $slide['url'], 'target' => $slide['target'] ), $slide, $this->slider->ID); } else { $anchor_attributes = apply_filters('metaslider_nivo_slider_anchor_attributes', array( 'href' => $image_full, 'target' => $slide['target'] ), $slide, $this->slider->ID); } /* END : CUSTOM CODE */
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Make it works with jquery color box’ is closed to new replies.