• Optimiza

    (@malditoweekend)


    I′m using the plugin and it′s great everything works fine inside the blog, but I noticed the plugin doesn′t display the videos on the feeds.

    My problem is that I did a find and replace to eliminate Youtube′s code and use the proplayer tags [proplayer]https://…[/proplayer]

    My question is, I want to go back and use the Youtube code again, how can I do this, because with find and replace it won′t work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Optimiza

    (@malditoweekend)

    I receive help from a friend and he told me that I can implement this function in my rss.php file, so I can still use the proplayer plugin and I can show the videos in the feeds. The only thing is the solution is not complete because there′s something else I need to include in the code:

    function reducir($url)
    preg_match('#youtube.com/watch#i', $url):
                $url = preg_replace('#youtube.com/watch\?v=#i', 'youtube.com/v/', $url);
                $content = '<object width="360" height="291"><param name="movie" value="'.$url.'&fs=1&rel=0&border=1&color1=0xeeeeee&color2=0xeeeeee"></param><param name="allowFullScreen" value="true"><embed src="'.$url.'&fs=1&rel=0&border=1&color1=0xeeeeee&color2=0xeeeeee" type="application/x-shockwave-flash" allowfullscreen="true" width="360" height="291"></embed></object>';
    return $content
    }

    You wanna show videos in RSS mode?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: ProPlayer] How to go back to Youtube′s original embed code.’ is closed to new replies.