<center><input type="button" class="button" onclick="<input type="button" class="button" onclick="var margenx = (screen.width/2)-(185); var margeny = (screen.height/2)-(80); window.open('{$mybb->settings['bburl']}/filebox.html', 'filebox', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=370, height=160, top='+margeny+', left='+margenx);" value="FileBox" name="filebox"/></center>
insertMegaupload: function()
{
//MyBB.popupWindow('http://localhost/test/filebox.html', 'filebox', 370, 160);
var margenx = (screen.width/2)-(185);
var margeny = (screen.height/2)-(80);
window.open('/filebox.html', 'filebox', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=370, height=160, top=' + margeny + ', left=' + margenx);
},
Cita:__Linea código SantiagoLo de Sergio llevo dos horas peleando y nada, solo he conseguido que funcione el botón y que salga el Pop Up, pero en la esquina de arriba a la izquierda, dejo el código de lo conseguido para que miréis donde estoy equivocado
__Linea a cambiar (Sólo hay que sacar la "/" )window.open('/filebox.html', 'filebox',
window.open('filebox.html', 'filebox',
<center><input type="button" class="button" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/filebox.html', 'filebox', 370, 160); var margenx = (screen.width/2)-(185); var margeny = (screen.height/2)-(80); window.open('{$mybb->settings['bburl']}/filebox.html', 'filebox', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=370, height=160', top='+margeny+', left='+margenx');" value="FileBox" name="filebox"/></center>
De todas formas a ver si mañana algo más lúcido le atino si no hubiera respuestas.<center><input type="button" class="button" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/filebox.html', 'filebox', 370, 160);" value="FileBox" name="filebox"></center>
<center><a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/filebox.html', 'filebox', 370, 160);"><img src="LINK DE LA IMAGEN" /></a></center>