Working MegaVideo MyCode?
#11
test this...

Regular Expression:

\[megavideo=(.*?)\](.*?)\[/megavideo\]

Replacement:

<object width="560" height="330"><param name="movie" value="http://www.megavideo.com/$1/$2"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.megavideo.com/$1/$2" type="application/x-shockwave-flash" allowfullscreen="true" width="560" height="330"></embed></object>

Example:

http://megavideo.com/?v=xxxxxxxxx

[megavideo=v]xxxxxxxxx[/megavideo]

http://megavideo.com/?d=yyyyyyyy

[megavideo=d]yyyyyyyy[/megavideo]
or this...
i dont know this work or no...

Regular Expression:

\[megavideo\]http://megavideo.com/?(.*?)=(.*?)\[/megavideo\]

Replacement:

<object width="560" height="330"><param name="movie" value="http://www.megavideo.com/$1/$2"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.megavideo.com/$1/$2" type="application/x-shockwave-flash" allowfullscreen="true" width="560" height="330"></embed></object>

Example:

http://megavideo.com/?v=xxxxxxxxx

[megavideo]http://megavideo.com/?v=xxxxxxxxx[/megavideo]

http://megavideo.com/?d=yyyyyyyy

[megavideo]http://megavideo.com/?d=yyyyyyyy[/megavideo]
Reply
#12
WebDev you version doesn't work with these links http://megavideo.com/?d=yyyyyyyy (d)


martec your versions don't work BOTH
Reply
#13
This user has been denied support. This user has been denied support.
(2011-11-10, 12:27 PM)Løque Wrote: WebDev you version doesn't work with these links http://megavideo.com/?d=yyyyyyyy (d)


martec your versions don't work BOTH

For d=yyyyyy use this replacement:
<object width="640" height="426"><param name="movie" value="http://www.megavideo.com/d/$1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.megavideo.com/d/$1" type="application/x-shockwave-flash" allowfullscreen="true" width="640" height="426"></embed></object>
<snip - no referral links>
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)