Kommercial wrote:coruscant wrote: can this be installed with easymod?
It's not "EMC", but it'll still run, with no error, just fine.
Demo
That was my problem, too, but {2,5} still doesn't do for Australia (as in ".com.au"). {2,6} fixes that but just allowing for arbitrary longer top-level domains also gets us into dangerous territory because a (short) private second-level domain in countries which allow those could potentially be used to cause trouble. E.g. video.google.abc.de. Thankfully my own forum is small and the participants registered and known to me so all is well for me, but thought I point this out, just in case.perldude69 wrote:Ok folks,
The last fix worked well. It had one glitch though. If more than one google video was embedded in the same post, it only displayed the first one.
The following change seems to fix this problem. It also takes into account google.video.co.uk videos for those in the UK. People using other international versions of google video, please test and let me know how things go.
Here is the new regular expression. (filter) for the file: includes/bbcode.php
note, the only change is that com from video.google.com is replaced with [A-Za-z0-9.]{2,5}Code: Select all
// [GVideo]GVideo URL[/GVideo] code.. $patterns[] = "#\[GVideo\]http://video.google.[A-Za-z0-9.]{2,5}/videoplay\?docid=([0-9A-Za-z-_]*)[^[]*\[/GVideo\]#is"; $replacements[] = $bbcode_tpl['GVideo'];
--Perldude69
Code: Select all
[youtube]{URL}={TEXT}[/youtube]
Code: Select all
<br /><hr /><center><table border="10"><tbody><tr><td><object height="350" width="425"> <param name="movie" value="http://www.youtube.com/v/{TEXT}"> <embed src="http://www.youtube.com/v/{TEXT}" type="application/x-shockwave-flash" height="350" width="425"></object><br></td></tr></tbody></table></center><a href="http://www.youtube.com/watch?v={TEXT}" target="_blank"> Direct YouTube Link</a><br />http://www.wachadoo.com/forum/<hr />
Code: Select all
[gvideo]{TEXT1}docid={TEXT2}[/gvideo]
Code: Select all
<center><table border="15"><tbody><tr><td><object height="350" width="425"> <param name="movie" value="http://video.google.com/googleplayer.swf?docId={TEXT2}"><embed style="width: 400px; height: 326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId={TEXT2}" allowscriptaccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" salign="TL" flashvars="playerMode=embedded" align="middle"> </object></td></tr></tbody></table><br></center><a href="{TEXT1}docid={TEXT2}" target="_blank">Link</a><br>
<a href='http://videodownloader.net/get/?url={TEXT1}docid={TEXT2}'> Download </a>
Hosted on http://www.wachadoo.com/forum/</center>
Code: Select all
[liveleak]{TEXT1}={TEXT2}[/liveleak]
Code: Select all
<br /><hr /><center><embed src="http://www.liveleak.com/player.swf" width="450" height="370" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="autostart=false&token={TEXT2}" scale="showall" name="index"></embed><br />http://www.wachadoo.com/forum/<hr /></center>