doesn't work for me too on v2.03
I just instal in torrent-upload.php
but 'copier' and 'POPUP preview' button in torrent-upload.php page doesn't works : it doesn't go to preview.php
same in preview.php : 'preview' button doesn't work and all bbcodes button too
my preview.php :
<html>
<body>
<?
require_once("backend/functions.php");
dbconn();
stdhead("Preview post");
begin_frame("Preview Post");
?>
<table width="100%" border="1">
<tr>
<td align="center" style='border: 0;'>
<div align="center">
<p><?=format_comment($body)?></p>
</div>
<table width="100%">
<form name="preview" method="post" action="?">
<textarea id="TextBox2" name="body" cols="80" rows="30"><?=$body?></textarea><br>
<div align="center">
<input type="submit" class="btn" value="Preview">
</div>
</form>
</table>
</td></tr><tr>
<td align="center">
<?
require_once("backend/bbcode.php");
print ("".textbbcode("preview","body",$body)."");
?>
</td>
</tr>
</table>
<?
end_frame();
stdfoot();
?>
</html>
</body>
and I add this in upload-torrent.php :
<script language="Javascript">
function enter()
{NewWin=window.open('<?=$site_config['SITEURL']?>/preview.php','home',
'width=1000,height=1000,scrollbars=yes,toolbar=yes,status=no,directories=no,m
nubar=no,resizable=yes');}
</script>
<button type="button" onClick="copy2Clipboard(document.getElementById('tinfos')">copier</button>
<?
print ("<br>Use preview page to test ur code easyly<br>");
?>
<button type="button" onclick="java script: enter('Bouton text')">
POP UP Preview
</button>
below :
require_once("backend/bbcode.php");
print ("".textbbcode("upload","descr","$descr")."");
?>
what's wrong?