|
Post by Kenshin on Oct 7, 2005 18:37:03 GMT -8
Here is My First Admin Editable Hack ^__^! Special thanks to A._Leon and CD. Browser: Cross-BrowserDesc: In The Admin Area You enter the URL,Width,and Height to a Media file then it plays it in the New Page. Here are 2 Previews: home.ripway.com/2005-8/369471/tprev1.GIFhome.ripway.com/2005-8/369471/tprev2.GIFNow for the Code Global Header:<script> /* ProBoards Theatre v1.0 By Kenshin Special Thanks To A._Leon and CD. */
document.getElementsByTagName('TD').item(5).innerHTML+='<font size="-2"><a href="index.cgi?id=theatre">[ProBoards Theatre]</a></font>' </script>Main Footer: <script> <!--
/* ProBoards Theatre v1.0 By Kenshin Speacial Thanks to A._Leon and CD */
var theMovUrl=""; var theMovHgt=""; var theMovWdt="";
if(location.href.indexOf('action=admin')!=-1){ InnerDiv = document.getElementsByTagName('Div'); for(d=0;d<InnerDiv.length;d++){ if(InnerDiv.item(d).innerHTML.match(/Headers and Footers/i)){ InnerDiv.item(d).innerHTML+='<br /><a href="index.cgi?action=headersfooters2&id=-&system=theatre">ProBoards Theatre Settings</a>' } } } if(location.href.indexOf('action=headersfooters3')!=-1){ window.location = '/index.cgi?action=admin' } if(location.href.match(/system=theatre/i)){ document.title = document.title.replace('Home','ProBoards Theatre CP'); Table = document.getElementsByTagName('Table'); for(t=4;t<Table.length;t++){ Table.item(t).style.display = 'none' } AdminTable = '<table align="center" width="56%" class="bordercolor"><tr>' AdminTable+= '<td align="center" class="catbg"><center>ProBoards Theatre Settings:</center>' AdminTable+= '</td></tr><td align="center" vAlign="top" class="windowbg">' AdminTable+= '<b>URL To Media File:</b><br /><input type="text" name="theVid" id="pbVid" value="'+theMovUrl+'" /><br /><br />' AdminTable+= '<b>Width Of Media File:</b><br /><input type="text" name="theWid" id="pbWid" value="'+theMovWdt+'" /><br /><br />' AdminTable+= '<b>Height Of Media File:</b><br /><input type="text" name="theHei" id="pbHei" value="'+theMovHgt+'" /></td></table><br /><br />' AdminTable+= '<center><input type="submit" value="Modify ProBoards Theatre Settings" onClick="TheatreObj()"/></center>' document.write(AdminTable); function TheatreObj(){ medFil = document.getElementById('pbVid'); medWid = document.getElementById('pbWid'); medHei = document.getElementById('pbHei'); objInfo = document.forms.item(0).footer; objInfo.value = objInfo.value.replace(new RegExp('theMovUrl="'+theMovUrl+'"',"i"),'theMovUrl="'+medFil.value+'"'); objInfo.value = objInfo.value.replace(new RegExp('theMovHgt="'+theMovHgt+'"',"i"),'theMovHgt="'+medHei.value+'"'); objInfo.value = objInfo.value.replace(new RegExp('theMovWdt="'+theMovWdt+'"',"i"),'theMovWdt="'+medWid.value+'"'); document.forms.item(0).submit(true); } }
if(location.href.indexOf('index.cgi?id=theatre')!=-1){ Object = document.getElementsByTagName('Table') for(x=4;x<Object.length;x++){ Object.item(x).style.display='none' } document.title = document.title.replace('Home','ProBoards Theatre'); InnerMovie = '<embed src="'+theMovUrl+'" width="'+theMovWdt+'" height="'+theMovHgt+'">' InnerTable='<table align="center" width="92%" class="bordercolor">' InnerTable+='<tr>' InnerTable+='<td align="center" class="catbg">' InnerTable+='ProBoards Theatre:' InnerTable+='</td></tr>' InnerTable+='<td align="center" vAlign="top" class="windowbg">' InnerTable+= InnerMovie InnerTable+='</td></table>' document.write(InnerTable); }
//--> </script>Heres some info to test it: 480 385 Hope you Enjoy
|
|
|
Post by juanlheat on Mar 8, 2006 14:36:53 GMT -8
Thanks nice codes! but how do you add more rooms to view videos?
|
|
|
Post by deadlyassassin on Mar 11, 2006 7:31:48 GMT -8
where it says: var theMovHgt=""; var theMovWdt=""; add the desired width and height
|
|
dja
New Member
Posts: 2
|
Post by dja on Mar 26, 2006 6:07:58 GMT -8
accually dont do that because those are there for it to be admin editible
|
|
|
Post by sweetie1981 on Mar 27, 2006 14:05:54 GMT -8
What type of videos are allowed? (i.e. full-length movies, video clips, music videos, certain formats, etc.)
I'm also having a hard time trying to find some. Any recommendations?
|
|
dja
New Member
Posts: 2
|
Post by dja on Mar 29, 2006 11:19:55 GMT -8
try Putfile,Youtube,google ideo
|
|
|
Post by sweetie1981 on Apr 1, 2006 18:45:49 GMT -8
Thanks!
|
|
|
Post by Kenshin on Apr 20, 2006 11:11:20 GMT -8
Try Putfile...and I've made a v1.5 its posted on PB Support board if you want it.
|
|