|
Post by Eton Bones on Mar 10, 2008 4:07:21 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:MySpace UBBC:[ video=MySpace]29564213[/video] How to insert video: The video identifier is the part following "VideoID=" in the url http://vids.myspace.com/index.cfm?fuseaction=vids.individual&VideoID=29564213 |
or just use the entire url and the code will extract the part it needs. Addon Code:<script> /* AVIP Addon:MySpace (global header below AVIP header code) - Eton Bones*/ if(window['vidType']){ vidType['MySpace']={}; vidType['MySpace'].prefix='http://lads.myspace.com/videos/vplayer.swf?m=%video%&type=video&cp=1'; vidType['MySpace'].params={flashvars:_getFlashVars}; vidType['MySpace'].example='http://etonbones.proboards100.com/index.cgi?board=examples&action=display&thread=20'; vidType['MySpace'].preprocess=function(vType,vURI){if(/\bmyspace\./i.test(vURI) && vURI.match(/videoID=([^&]+)/))caller[caller.length-1].arguments[2]=RegExp.$1}; } </script> Edit: fixed syntax error in the above myspace addon script [Agent:2]
|
|