Loading ...

Change the default embed youtube with new embed

Board index / PHP Melody - Video CMS / PHP Melody 1.6.x (old version)

Forums for the previous PHP Melody version (1.6.x)

Postby kztixo on May 03, 2011 11 pm


I want to know how to change the default embed youtube "Play Videos with JW Player FlowPlayer Original Player " which is edited from the admin panel, choose Original Player to see this code:

Code: Select all
<object width="580" height="401">   <param name="movie" value="http://www.youtube.com/v/rJVRDGCZnTM&hl=en&fs=1&hd=1&rel=0&autoplay=1&color2=0x000000&showsearch=0&showinfo=0&iv_load_policy=3"></param>   <param name="allowFullScreen" value="true"></param>   <param name="allowscriptaccess" value="always"></param>   <param name="wmode" value="window"></param>   <embed src="http://www.youtube.com/v/rJVRDGCZnTM&hl=en&fs=1&hd=1&rel=0&autoplay=1&color2=0x000000&showsearch=0&showinfo=0&iv_load_policy=3" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="window" width="580" height="401"></embed>  </object>


and I want it then appears with the new youtube embed:

Code: Select all
<iframe width="480" height="390" src="http://www.youtube.com/embed/lkgCtAMSgvs" frameborder="0" allowfullscreen></iframe>




I try to edit in player.tpl, but it did not work.
kztixo
Verified Customer
Verified Customer
 
Posts: 31
Joined: Oct 23, 2008 6 pm
Reputation points: 0

Postby kztixo on May 03, 2011 11 pm


kztixo
Verified Customer
Verified Customer
 
Posts: 31
Joined: Oct 23, 2008 6 pm
Reputation points: 0

Postby Trace on May 04, 2011 7 am


You should edit it in the database, there is a table named pm_sources which contains a source named 'youtube' there (id 3)

Edit it with phpMyAdmin and instead of the old embed code write
Code: Select all
<iframe title="YouTube video player" width="%%player_w%%" height="%%player_h%%" src="http://www.youtube.com/embed/%%yt_id%%?hl=en&fs=1&hd=%%use_hq_vids%%&rel=0&autoplay=%%player_autoplay%%&color2=0x%%player_bgcolor%%&showsearch=0&showinfo=0&iv_load_policy=3" frameborder="0" allowfullscreen></iframe>

I use this at my site and it works fine :)
User avatar
Trace
Verified Customer
Verified Customer
 
Posts: 2543
Joined: Aug 16, 2010 3 pm
Location: The Netherlands
Reputation points: 1329

Postby kztixo on May 04, 2011 7 pm


thank you very much, if it works: D
kztixo
Verified Customer
Verified Customer
 
Posts: 31
Joined: Oct 23, 2008 6 pm
Reputation points: 0

Postby narinchin on Dec 24, 2011 11 am


Anyone can help me!! After use the youtube embed player for awhile, When I change to flv player it's not work. It show only message (You need to have the flash Player installed and a browser with JavaScript support.). I also update the latest version of JWplayer and try many way it still not work!!!!

I also send the player.tpl to Andrew, he edit it and send me back to replace the old one, but still not work!!!

Anyone have the sample problem?? Please share!!!!
narinchin
Verified Customer
Verified Customer
 
Posts: 31
Joined: Mar 03, 2010 3 pm
Reputation points: 0

Postby Andrew on Jan 04, 2012 3 pm


@narinchin - revert to the original files and your problem will be gone.
PHP Melody v3.0
New Series Module? Publish series and episodes right from PHP Melody's Dashboard -->
https://demo.phpmelody.com/admin/series.php
User avatar
Andrew
Founding Developer
 
Posts: 7504
Joined: Jul 07, 2007 1 pm
Reputation points: 428


Who is online

Users browsing this forum: No registered users and 1 guest