Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD] PREVIEW 4 Everything
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-01-19 11:28:29
[MOD] PREVIEW 4 Everything !!! AND WITHOUT THE PAGE YOU ARE

Hi peeps !

So I made dat as a PREVIEW MOD very very simple,

Uve got a buttun to be placed where ever u want on all site.

This open up a POPUP Window which contain a preview code

dat allow to quickly see what u writ down

of course it show result of bbcode, sure my buddy !

OK test this !!!

preview.php

<?

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 method="post" action="?">

<textarea name="body" cols="80" rows="30"><?=$body?></textarea><br>

<div align="center">

<input type="submit" class="btn" value="Preview">

</div>

</form>

</table>

</td>

</tr>

</table>



<?

end_frame();

stdfoot();

?>
upload to FTP



and as an example go edit ur forums php



search after :


if ($newtopic){

print("<center><table border=0 cellpadding=0 cellspacing=0>

<tr><td><b>Subject:</b><input type=text size=70 maxlength=$maxsubjectlength name=subject ></td></tr><tr><td valign=top>");

print("".textbbcode("Form","body")."</td></tr>");

print("<tr><td colspan=3 align=center><br><input type=submit class=btn value='Submit'><br><br>");







and add below :



?>

<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>



<script language="Javascript">

Private Sub CommandButton1_Click()

If TextBox1.SelText <> "" Then

TextBox1.Copy

TextBox2.Paste

'

End If

End Sub

</script>



<?



?>

<button type="button" CommandButton1_Click([copier])>copier</button> <button type="button" CommandButton1_Click([coller])>coller</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>

<?







So NOW enjoy putting dat everywhere u need, EXAMPLE on our Upload page, dat is SO Usefull !!!



Edit torrent-upload and find :



require_once("backend/bbcode.php");

print ("".textbbcode("upload","descr","$descr")."");





And add below :



?>

<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>







and yessss so much FUN !





Of course there is a usaul way to deal with 2 inpuit button,



But dat will be for another time ....





And my solution I thinkis better,

cos u dont have to preview and reload and edit .....and  preview again  and reload again and edit again.........





Simply open up use POPUP  once,



And keep it opened !!!  all time ur doing stuff such as UPLOAD, or FORUM POST, or PM POST...




a last one and I'll sleep a while while



in mailbox php find :



require_once("backend/bbcode.php");

echo "</table>";

print ("".textbbcode("compose","msg","$msg")."");







add below :



?>

<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>

<?




EDIT :::::::::::::::  Remenber to writ in YOUR SITE ADRESS !!!!

Where u see (  YOURDOMAIN.XXX   )  !!!!!!

EDIT :::::::::::::::  Post updated on TS advice

www.YOURDOMAIN.XXX   replaced by  <?=$site_config['SITEURL']?>

:P  :P  :P  :P  :P  :P  :P  :P

PS ::: MOD Gonna be improved and add ons .... added, iarf , lol   :P  :)

EDIT :::: Oups Copy and Paste buttons dont work, cos its missing the textarea id attributes,

gonna fix it later.........
Unknown User
2008-01-20 16:11:20
hummm the pop-uppreview  do not open for me ..... im gona check this and i reply you !
Unknown User
2008-01-20 16:19:52
you can change:

[url="http://www.YOURDOMAIN.XXX"]http://www.YOURDOMAIN.XXX[/url]

to:

<?=$site_config['SITEURL']?>

also: "java script" needs changing to: "javascript"
Unknown User
2008-01-20 16:36:13
yep yep yep good idea TS, an evidence !

thanks !

    >>>   FIRST POST UPDATED   <<<    

bye the way,

this popup NOT,    when used for PMs compose page, ... any idea TS ?

By the way TS, do you get time to help me finish my shoutbox MOD ?





its only to well syntax  some   str_pregreplace() !!






for the rainbow, highlight and neon sricpts I ve got !!!



Everything else is OK, tested for weeks,






It offer :






*     Full bbcode buttons control panel, so nice and usefull



*     classical colors, fonts, size on menu



*     and a wonderfull marquee for more then 100 smilies in a small box, and



     checkable,  of course



Unknown User
2008-01-20 17:29:18
Some can help ?  on the First Improvement  :::  ???

In preview php, after :

</div>

</form>

</table>

</td>
I placed :


<td align="center">

<?

require_once("backend/bbcode.php");

print ("".textbbcode("upload","descr","$descr")."");

?>

</td>




BUT cos of textarea no  id, nothing works ...

4 a big one coder dats nothing to arrange, PLEASE Help ! its 4 all of us !

In addition I need to define my shoutbox buttons control panel 4 THE ENTIRE SITE !!!

again,  textarea and form id missing, OUPS
Unknown User
2008-01-20 21:05:09
change:

<form method="post" action="?">



to:



<form name="preview" method="post" action="?">



and:



print ("".textbbcode("upload","descr","$descr")."");





to:



print ("".textbbcode("preview","body",$body)."");
Unknown User
2008-01-21 01:05:10
<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>



<td align="center">

<?

require_once("backend/bbcode.php");



print ("".textbbcode("preview","body",$body)."");



?>

</td>



</tr>

</table>



<?

end_frame();

stdfoot();

?>

</html>

</body>


I made this,

but still not able to use bbcode balises in right place

in addition,

same balises on upload page, I cant run to work

its a pre version of my next MOD : the bbcode buttons control panel

dat am speaking about here ::::::   [url="http://www.torrenttrader.org/index.php?showtopic=7586"]http://www.torrenttrader.org/index.php?showtopic=7586[/url]

here is a  last version pic   4 u to see what you nextly will get

When i'll post.....

Unknown User
2008-01-21 02:22:46
...notice I have hardly modified my bbcode php ...

...and dont imagine how looks mt shoutbox php ... gonna show u soon,

With my next MOD  100% from me
Unknown User
2008-01-25 00:52:50
ok guys, am working on a fully instant automatic preview mod


AND its WORKING !!! yeaaaaaaaaahhhhh  hang on, i finish and i post





..another thing 4 u, mr badamoi
Unknown User
2008-01-25 12:53:36
OK guys find in preview php :

stdhead("Preview post");



begin_frame("Preview Post");
and REMOVE !!!



find :




<?

end_frame();

stdfoot();

?>



and REMOVE !

So now u only got the preview tables less all ur site blocks,

faster, no ?

AM now working on a fully automatic instant preview mod with javascript

its working, am fixing some bbcode buttons.....
Unknown User
2008-01-28 18:23:13
Dont work for me...
Unknown User
2008-03-16 14:21:27
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?
Unknown User
2008-03-16 14:59:06
useless
Unknown User
2008-03-16 21:59:49
what do you mean ?
Unknown User
2008-07-19 21:49:44
Hello Azuris,

to answer your question, I give you directly change that I make in relation to the first post of Alamandra, hope that it may serve you ...

in upload-torrent.php replace :

{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');}





Replace with :





{

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');

}





and here is my preview.php =>





<?

require_once("backend/functions.php");

dbconn();

stdhead("Previsualisation du post");



begin_frame("Previsualisation du 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 name="body" cols="80" rows="30"><?=$body?></textarea><br>

<div align="center">

<input type="submit" class="btn" value="Preview">

</div>

</form>

</table>

</td>

<table width="100%" border="1">

<td align="center" style='border: 0;'>

<?

require_once("backend/bbcode.php");

print ("".textbbcode("preview","body",$body)."");

?>



</td>

</tr>

</table>



<?

end_frame();

stdfoot();

?>
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728