|
Post by Eton Bones on May 5, 2008 0:57:06 GMT -5
Update: a geasemonkey or turnabout script now exists that makes the editing of the AViP code a bit easier. If you're squeamish about editing the code check here for a possibly easier solution. |
| [bg=mistyrose] The _Globals section in the header portion of the code gives the admin control over various aspects of the code by editing to their preference at install time
_Globals:{ defaultType:'AnyFLV', params:{allowfullscreen:true, allowscriptaccess:'always', pluginspage:'http://www.macromedia.com/go/getflashplayer', type:'application/x-shockwave-flash', classid:'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000', quality:'autohigh', codebase:'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab'}, maxVidsPerPost:1, maxVidsPerPage:4, defaultWidth:'600px', defaultHeight:'450px' },
- defaultType If no type is given in the UBBC tag then the default type is used. Set this to whatever type you want to be the default.
- params This is a list of parameters applied to all video types unless overridden in the definition of a particular video type (best to leave this as is unless you know what you're doing)
- maxVidsPerPost This controls the number of videos that can be inserted in a single post. Any videos above this number will be disabled and the user will need to click on it to enable and view it. To have all videos disabled so that user has to click on it in order to start download set this number to 0.
- maxVidsPerPage This controls the number of videos that can be viewed on a single page. Any videos above this number will be disabled and the user will need to click on it to enable and view it.
- defaultWidth This is the maximum width any video that is posted can reach. If the definition of a certain video type specifies a maximum width then that width will be used provided it is less than the defaultWidth. If a user specifies a width in the UBBC tag then that width will be used provided it is less than the defaultWidth and/or the max width of that particular video type. This setting is to prevent page stretching.
- defaultHeight This is the maximum height any video that is posted can reach. If the definition of a certain video type specifies a maximum height then that height will be used provided it is less than the defaultHeight. If a user specifies a height in the UBBC tag then that height will be used provided it is less than the defaultHeight and/or the max height of that particular video type.
- canPost If this is present and contains a list of comma separated user names then only those listed names can post videos. If a name has a minus sign in front of it (e.g. -Guest) then that name can not post videos.
- canView If this is present and contains a list of comma separated user names then only those listed names can view videos. If a name has a minus sign in front of it (e.g. -Guest) then that name can not view videos.
- boards If this is present and contains a list of comma separated board names then only those listed names can contain videos. If a board has a minus sign in front of it (e.g. -general) then that board can not contain videos.
- autoLink If present this should contain a list of comma separated installed addons that have the ability to convert video hyperlinks into links that will play the video directly inside the post instead of opening a new window or tab.
custom: {skin1:'.0',skin2:'.1',skin3:'.0',skin4:'.3'} /* INFO: Megavideo offers 4 customized player color schemes 0 = orange, 1 = yellow, 2 = green, 3 = blue */
Certain video addons allow color customization. Megavideo for example allows customizing the color scheme of the player based on which skin the user is currently using. Edit the skin id to match the color scheme. In the above example if viewing a megavideo while using skin #3 then the player will have an orange color scheme.
|
|
|