I don't know if this post is in the good section or he have to be in Php section.
Here is my problem , i have a PunBB Forum
i've made modifications to allow user post vidéos from Youtube,DailyMotion,and GoogleVidéo inside specifics Bbcodes.
A very interesting site Ariegenews.com gives the opportunity to users to put their vidéos in their site.Like this Vidéo in this wayhave a look near footer under the Get Adobe Flash Player Logo.Code:<script language="javascript" src="http://www.ariegenews.com/data/rss/video-1375.html"></script>
As you know javascript and bbcodes = security vulnerabilty on PHP forums.
When we open video-1375.html the code looks like this :
The direct link for the vidéo is easily visibleCode:document.write('<div">'); document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="300" height="240">'); document.write('<param name="movie" value="http://www.ariegenews.com/data/rss/flvplayer.swf?file=http://www.ariegenews.com/data/userFiles/Flash/ruralite/lotissementMoulinNeufSept2006.flv" />'); document.write('<param name="quality" value="high" />'); document.write('<param name="menu" value="false" />'); document.write('<param name="wmode" value="" />'); document.write('<embed src="http://www.ariegenews.com/data/rss/flvplayer.swf?file=http://www.ariegenews.com/data/userFiles/Flash/ruralite/lotissementMoulinNeufSept2006.flv" wmode="" quality="high" menu="false" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="240">'); document.write('</embed></object>'); document.write('<br /><a href="http://www.ariegenews.com/news/news-1375.html" style="font-family: Arial, Helvetica; font-size: 11px; color: #000080; font-weight: bold" target="_blank">© AriegeNews TV</a>');
http://www.ariegenews.com/data/userF...ufSept2006.flv
As you can see if a user want to put the direct link of a vidéo in a forum post he have to do a lot of manipulation.
My question :
Is there a way to write a code to retrieve the direct link of the vidéo when a user post with a Bbcode says like this :
as we can do for Youtube,DailyMotion,and GoogleVidéoCode:[ariegenews]http://www.ariegenews.com/news/news-1-8-1375.html[/ariegenews]
Any advice would be helpfull.
Excuse me for my poor english.
Thanks for your answers



Reply With Quote


Bookmarks