Residual Styling 12/7/2011 at 14:39
Hi Sumo,
I tried adding a video but under the video a plugin I have installed is also being added to the panel.
http://img193.imageshack.us/img193/4817/residual.jpg
http://img29.imageshack.us/img29/2371/residualpanel.jpg
whaT can i Do??
Also my shadowbox is supposed to take YouTube links and automatically play them, im adding a image thumbnail, then im adding a link to the youtube video but shadowbox just opens a blank window
http://img18.imageshack.us/img18/1002/shadowboxrel.jpg
My shadowbox is called “ShadowBox JS”
Reply To: Residual Styling 12/7/2011 at 15:24
New little problem. i got my shadowbox to open my video, it only recognizes the video if the link has http://www.youtube.com/v/videourlhere
but if i use this url structure, carousel wont recognise the video url and then theres the problem of the sharethis
http://img18.imageshack.us/img18/2456/carouselh.jpg
Reply To: Reply To: Reply To: Residual Styling 12/7/2011 at 17:04
Ok, let’s organize your problems:
- A problem with “residual styling” (it is not “residual styling”, I’ll explain it later in this post).
- A problem with Shadowbox JS that only opens the video if you use a specific URL that does not recognize WP Carousel.
Residual Styling
To show the video, WP Carousel applies all filters that all applied to the_content to the video URL, so if the result of applying those filters is different from the original, that URL is a showable video.
How does WP Carousel show the video? It just applies those filters I’ve told before to the URL of the video embed in the shortcode. So if other plugin adds a filter to the_content, that filter affects to WP Carousel, too.
How to fix it? Well, I’ll try to modify WP Carousel and fix it as an update. Meanwhile you can deactivate the plugin that adds that filter.
Shadowbox problem
I think this problem is easy to solve. First of all, if you add a video to the carousel and you want that when the user clicks on it a Shadowbox with the video is displayed, I think you’ll have problems. Why? Because the standard behaviour of the embed videos is that when you click on them they start playing, and WP Carousel does not add a link in panels with a video for that reason.
So, what should you do? I think you should add a static image of the video (just the default image that shows Youtube before loading the video, for instance, for this video, the image would be this).
Then you just set the panel URL as the video URL and the rel of the link and then when the user clicks on the image the Shadowbox should work.
That is the simplier solution I’ve got until now.
Thanks for reporting!
Reply To: Residual Styling 12/7/2011 at 17:26
Ok, I think I’ve found a fix for the “residual styling” bug. As it is some modifications in the themes I think it is better to share the fix as a new release.
You can download this “release” here. Note that I haven’t checked if the bug if fixed as I don’t know how is named the plugin that adds the “residual styling”. There are more modification in this “release”, like some bug fixes.
If you find any error, please, report it.
Thanks for helping!
Reply To: Residual Styling 13/7/2011 at 9:54
Look for something like:
apply_filters(‘the_content’, ‘))).'" height="'.str_replace('px', '', str_replace('%', '', str_replace('em', '', $config['IMG_HEIGHT']))).'"]'.$item['VIDEO'].'‘);
And replace it with:
do_shortcode(‘))).'" height="'.str_replace('px', '', str_replace('%', '', str_replace('em', '', $config['IMG_HEIGHT']))).'"]'.$item['VIDEO'].'‘);
You’ll find that code in theme.php and theme-jcarousel.php of each theme as well as en wp-carousel.php (but this one can me skiped).
Edit: I’ve compressed and uploaded the file again, try to download it here.
Reply To: Residual Styling 7/10/2011 at 17:36
This topic hasn’t any reply for two months, so I’ve decided closing it in order to prevent mixing old questions and new ones.
This topic has been closed to new replies.