3
You are going to need the 'Preload' feature of future xoops. With preload you can filter any patterns before they reach the database.
For example I am using a preload to replace this pattern:
[youtube id=YOUTUBE_ID]
or this pattern:
http://www.youtube.com/watch?v=YOUTUBE_ID
with:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/YOUTUBE_ID"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/YOUTUBE_ID" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"></embed></object>
then save to database.
This way you can replace matched URLs with yours.
Ref. here is the preload (though it does not work for XOOPS I want to show you the mechanism):
http://www.nhatban.net/tmp/Youtube_BB.class.txt
Xoops Demos:
http://www.nhatban.net/info/a0021.html