|
Post by Eton Bones on Mar 13, 2008 21:24:41 GMT -5
[bg=mistyrose]NoteAddons are small code snippets that modify the video definitions of the Any Video in Post ( AViP) hack in order to define a new type of video or patch an existing one. Because of this, addon codes need to go in the header below the header portion of the AViP code. |
Video Type:Metacafe UBBC:[ video=Metacafe]http://www.metacafe.com/watch/775680/more_risk_more_fun/[/video] How to insert video: The video identifier is the full url used to watch the video http://www.metacafe.com/watch/775680/more_risk_more_fun/ |
Addon Code:<script> /* AVIP Addon:Metacafe (global header below AVIP header code) - Eton Bones*/ if(window['vidType']){ vidType['Metacafe']={}; vidType['Metacafe'].prefix='http://www.metacafe.com/fplayer/%video%.swf'; vidType['Metacafe'].checkid=function(vid){return /http:\/\/(www.)?metacafe.com\/watch\/\d+\/\w+\/?/i.test(vid)}; vidType['Metacafe'].example='http://etonbones.proboards100.com/index.cgi?board=examples&action=display&thread=38'; vidType['Metacafe'].preprocess=function(vType,vURI){caller[caller.length-1].arguments[2]=vURI.replace( /http:\/\/(www.)?metacafe.com\/watch\//,'').replace(/\/$/,'')} } </script> [Agent:2]
|
|