Jump to content

Swf Faila Atskaņošana Ipb Forumā


ExTent
 Share

Recommended Posts

Youtubi var iemest šādi:

$txt = preg_replace( "#\[yt\].+youtube.com/watch\?v=(.+)\[/yt\]#i", "<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/\\1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/\\1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>", $txt );

No tā var izpīpēt arī vienkārša flaša pievienošanu.

Link to comment
Share on other sites

$txt = preg_replace( "#\[yt\].+youtube.com/watch\?v=(.+)\[/yt\]#i", "<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/\\1\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/\\1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>", $txt );

No tā var izpīpēt arī vienkārša flaša pievienošanu.

Piedod bet nepīpēju.

Mazliet par sarežģītu man pārveidot šo kodu, vai kāds nevar palīdzēt?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...