Can someone help me add option for divx player in TOG?
i need help with the main template, i can add the code to preview box. i think rest needs to be added to the template(.tpl) file. Anyone who can help would be great.
tog_previewbox.js added to line 29
else if(ext.match(".avi|.divx")) spawnDIVXBox(target,file);
tog_previewbox.js added to line 117
/* Spawn DivX Box */
var volume = 50;
var height, width, aspect;
var playmethod = "single";
var context = "on";
function spawnDIVXBox(target,file) {
height = ext==".divx"?350:350;
width = ext==".divx"&&aspect=="wide"?556:556;
spawnBox(target,width,height);
setTimeout("setDIVXBox(\""+target+"\",\""+file+"\");",300);
}
function setDIVXBox(target,file) {
setName(file);
file = file.replace('+','%2B').replace('&','%26');
volume = getCookie('Volume') ? getCookie('Volume') : volume;
playmethod = getCookie('Method') ? getCookie('Method')+"&mode=full" : "single&mode=full";
if(autoplay == true) playmethod = "single";
gEBI(target+"Content").innerHTML = "<object classid='clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616' width="+width+" height="+height+" codebase='http://go.divx.com/plugin/DivXBrowserPlugin.cab' id='IE_divx'><param name='custommode' value='none'/><param name='previewImage' value=''/><param name='src' value="+file+"/><!--DivX Web Player code generator (divx.com)--><embed type='video/divx' id='MZ_divx' src="+file+" custommode='none' width="+width+" height="+height+" autoplay='true' previewImage='' pluginspage='http://go.divx.com/plugin/download/ /></object>";
autoplay = true;
}