Change the default embed youtube with new embed
Board index / PHP Melody - Video CMS / PHP Melody 1.6.x (old version)
6 posts • Page 1 of 1
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:
and I want it then appears with the new youtube embed:
I try to edit in player.tpl, but it did not work.
- 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
- Posts: 31
- Joined: Oct 23, 2008 6 pm
- Reputation points: 0
An example of this: http://www.videoschistosos.net/hombre-m ... a2dd8.html
- kztixo
- Verified Customer
- Posts: 31
- Joined: Oct 23, 2008 6 pm
- Reputation points: 0
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
I use this at my site and it works fine
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
PHP Melody Plugins developer
PHP Melody plugins + themes for 1.6 and 1.7-2.7 | Subscribe to news of my work | Follow me on Facebook
PHP Melody plugins + themes for 1.6 and 1.7-2.7 | Subscribe to news of my work | Follow me on Facebook
-
Trace - Verified Customer
- Posts: 2543
- Joined: Aug 16, 2010 3 pm
- Location: The Netherlands
- Reputation points: 1329
thank you very much, if it works: D
- kztixo
- Verified Customer
- Posts: 31
- Joined: Oct 23, 2008 6 pm
- Reputation points: 0
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!!!!
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
- Posts: 31
- Joined: Mar 03, 2010 3 pm
- Reputation points: 0
@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
New Series Module? Publish series and episodes right from PHP Melody's Dashboard -->
https://demo.phpmelody.com/admin/series.php
-
Andrew - Founding Developer
- Posts: 7504
- Joined: Jul 07, 2007 1 pm
- Reputation points: 428
6 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest