Buscando...

Foro » Residual Styling

Tagged: 

This topic has 2 voices, contains 7 replies, and was last updated by  Sumolari 136 días ago.

Viewing 9 posts - 1 through 9 (of 9 total)
N1Bar.Com

Residual Styling 12/7/2011 at 14:39 #5221

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”

N1Bar.Com

Reply To: Residual Styling 12/7/2011 at 14:47 #5222

here are more images
http://img706.imageshack.us/img706/4426/youtubelinkh.jpg showing that the link to the video is correct

and this is when i open it

http://img28.imageshack.us/img28/770/blanku.jpg

N1Bar.Com

Reply To: Residual Styling 12/7/2011 at 15:24 #5223

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 #5225

Ok, let’s organize your problems:

  1. A problem with “residual styling” (it is not “residual styling”, I’ll explain it later in this post).
  2. 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!

  • This reply was modified 315 días ago by  Sumolari.
  • This reply was modified 315 días ago by  Sumolari.

Reply To: Residual Styling 12/7/2011 at 17:26 #5228

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!

N1Bar

Reply To: Residual Styling 12/7/2011 at 22:02 #5233

Hi, the name and website of the plugin called “sharethis” the following is the url

http://wordpress.org/extend/plugins/share-this/screenshots/

N1Bar

Reply To: Residual Styling 12/7/2011 at 22:09 #5234

Hello, I tried to extract the files and i get this error-

http://img845.imageshack.us/img845/9899/errorv.jpg

Can you please provide a log of the changes you made so that i can learn too :)

Thanks

Reply To: Residual Styling 13/7/2011 at 9:54 #5244

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.

  • This reply was modified 314 días ago by  Sumolari.
  • This reply was modified 136 días ago by  Sumolari.

Reply To: Residual Styling 7/10/2011 at 17:36 #6126

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.

Viewing 9 posts - 1 through 9 (of 9 total)

This topic has been closed to new replies.