zenphoto forums » Feature Requests

Embed Video in Comment is Possible

(7 posts)
  1. seismic

    Apprentice
    Joined: Aug '08
    Posts: 3

    i read some posts about video and some users want to embed video in (like youtube video) photo gallery, i also think it's not a good idea but i have an another one,

    maybe in image description or in a comment a video could be great, i added some tags in comment config in admin panel(like embed, div) but i have not successed yet

    any idea ?

    thanks

    Posted 4 years ago #
  2. krainbolt

    Developer
    Joined: May '08
    Posts: 91

    The reason tags are restricted to a certain set is to lessen the chance of evil code being implanted into your site. That said, all you need to do is add the tags for the type of video you want to allow. So for YouTube, you would add the following code to your Allowed Tags:

    object => (width => () height => ())
    param => (name => () value => ())
    embed => (src => () type => () allowfullscreen => () width => () height => ())

    Then you could add the following embed code to an image description to display a YouTube video.

    <object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/SSfccjd1bdU&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/SSfccjd1bdU&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>

    Posted 4 years ago #
  3. seismic

    Apprentice
    Joined: Aug '08
    Posts: 3

    thank you for the reply,
    i tried the code and works perfect for image area but one problem is that youtube video appears in "LastComments" at frontpage is it possible to remove these code in frontpage from Latest Comments function

    thanks

    Posted 4 years ago #
  4. krainbolt

    Developer
    Joined: May '08
    Posts: 91

    I'm not sure which theme you're using, but if you remove the "Latest Comments" code from index.php, the video will disappear from your front page.

    Posted 4 years ago #
  5. seismic

    Apprentice
    Joined: Aug '08
    Posts: 3

    :D quick solution

    i designed a template for a project and i put the "Latest Comments" in frontpage, i couldnt find a way to publish videos but your solution was good if we achieved to clean or filter some codes from frontpage <?php echo gettext('Latest Comments'); ?>

    Posted 4 years ago #
  6. reddevilmeuk

    Member
    Joined: Dec '09
    Posts: 12

    like this example and have tried to create one for gamestop trailers but cant get it to work

    can you help?

    exmple code

    <embed id="mymovie" width="480" height="310" flashvars="bwr=0&skinXML=http://image.com.com/gamespot/images/cne_flash/production/eidothea/release/eidotheaEmbedded480_169.xml&playerMode=embedded&movieAspect=16.9&mapp=embedded_480&gen=1&uvp=http%3A%2F%2Fvidtech.cbsinteractive.com%2Fplayer%2F1_3_2%2FCBSI_PLAYER.swf&adp=http%3A%2F%2Fvidtech.cbsinteractive.com%2Fplugins%2Fadp%2F1_3_2%2FCBSI_AdPlugin.swf&smode=fit&viewMode=sd&autoPlay=false&paramsXML=http%3A%2F%2Fuk.gamespot.com%2Fpages%2Fvideo_player%2Fxml.php%3Fid%3D6210551%26mode%3Dembedded%26width%3D480%26height%3D310%26newplayer%3D1" wmode="opaque" allowscriptaccess="always" scale="noScale" salign="lt" allowFullScreen="true" quality="high" name="mymovie" style="" src="http://image.com.com/gamespot/images/cne_flash/production/eidothea/release/eidothea.swf" type="application/x-shockwave-flash"/>

    Mike

    Posted 3 years ago #
  7. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,367

    reddevilmeuk, no need to post the same in different threads. Thanks.

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.