1 (edited by 2012-08-11 12:56:06)

Topic: YouTube videos

Hi, I upgraded my cutenews to 1.5 and migrated my news but all the youtube videos I embeded don't work even though the code is there. Can you tell me why is that?

EDIT: I just realized that <a href=""> also doesn't work in all my news.

Re: YouTube videos

Check whether the stored video and everything as html. This is because of this, in my opinion.

Re: YouTube videos

The embedded links weren't broken because they worked just fine in cutenews 1.4.7. I turned off the advanced news editor so html tags shouldn't be a problem. I figured out that after I deleted onfocus="blur()" from my links they started working but still nothing with youtube videos. I guess cutenews doesn't accept certain html tags because they don't work even when I post new news. For now I moved back to cutenews 1.4.7 but hopefully someone will find a solution for this problem.

Re: YouTube videos

And what is the code for embedded youtube videos?

5 (edited by 2012-08-13 15:32:32)

Re: YouTube videos

for example:

<iframe width="300" height="169" src="http://www.youtube.com/embed/q1qpzHkA6tQ" frameborder="0" allowfullscreen></iframe>

but videos from other sites have different codes for embedding and they also don't work. for example something like this:

<object type="application/x-shockwave-flash" width="300" height="180" data="http://www.flickr.com/apps/video/stewart.swf?v=109786" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> <param name="flashvars" value="intl_lang=en-us&photo_secret=f51012ace7&photo_id=7752929126"></param> <param name="movie" value="http://www.flickr.com/apps/video/stewart.swf?v=109786"></param> <param name="bgcolor" value="#000000"></param> <param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/video/stewart.swf?v=109786" bgcolor="#000000" allowfullscreen="true" flashvars="intl_lang=en-us&photo_secret=f51012ace7&photo_id=7752929126" height="180" width="300"></embed></object>

Re: YouTube videos

I found the mistake ... 1.5.0 replace the line

$allowed_tags = explode(',', 'a,i,b,u,p,h1,h2,h3,h4,h5,h6,hr,ul,ol,br,li,tr,th,td,tt,sub,sup,img,big,div,c
ode,span,abbr,code,acronym,address,blockquote,center,strike,strong,table,thead');


on this line here

$allowed_tags = explode(',', 'a,i,b,u,p,h1,h2,h3,h4,h5,h6,hr,ul,ol,br,li,tr,th,td,tt,sub,sup,img,big,div,c
ode,span,abbr,code,acronym,address,blockquote,center,strike,strong,table,thead,ob
ject,iframe,param,embed');


in file ./core/core.php

Re: YouTube videos

Thank you! I thought there must be something like allowed tags but couldn't find it on my own.

Re: YouTube videos

Thank you, I also helped