add new pages

haa912005

Joined: 2012-04-10
Posts: 5
Posted: Tue, 2012-04-10 11:01

Hello all.
I have 2 days searching for answer to my question but i didn't find it so finally i post it here..

I am using Gallery3 and i have a question

I want to add static pages to my gallery but it must allow me embed youtube videos
i know that in gallery2 there is a module called HTML Block which do that but it not work on gallery3
and in gallery3 i try to use pages module but it not allow me add youtube videos..
so i try to get a module which allow me add pages and embed youtube video inside it OR i want to edit the html filters so i can add youtube videos in the pages module.

I hope my question is clear and i find the help soon.
thanks

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Wed, 2012-04-11 12:39

Why couldn't you embed youtube videos in the page created by the pages module? Did it give an error?
Maybe you have to also use the purifier module? http://codex.gallery2.org/Gallery3:Modules:purifier

 
haa912005

Joined: 2012-04-10
Posts: 5
Posted: Thu, 2012-04-12 10:22

i think there is a filter to object tag after i add the youtube code

 
haa912005

Joined: 2012-04-10
Posts: 5
Posted: Thu, 2012-04-12 14:17

when i add this code in html in page module

<object width="420" height="315"><param name="movie" value="http://www.youtube.com/v/yHdI1x5e7mk?version=3&amp;hl=en_US&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/yHdI1x5e7mk?version=3&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object>

after i save it covert to

<param name="movie" value="http://www.youtube.com/v/yHdI1x5e7mk?version=3&amp;hl=en_US&amp;rel=0"><param name="allowFullScreen" value="true"><param name="allowscriptaccess" value="always">

and video not work :(
what is the solution?

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Thu, 2012-04-12 15:22

Did you install and activate the purifier module?
I don't use either of those modules, so I'm not sure.
You may have to edit some code to stop it from stripping whatever it's stripping.

You could also try to embed using iframe instead of object:
<iframe width="420" height="315" src="http://www.youtube.com/embed/yHdI1x5e7mk" frameborder="0" allowfullscreen></iframe>

Only other option that comes quickly to mind is to use the item_links module (as long as the video opens in a lightbox of some sort); takes a little more effort, but should work.
http://codex.gallery2.org/Gallery3:Modules:item_links