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
Sceditor Mod TTv3
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods in Progress

2021-02-18 14:55:54
would you share your code format comment bbcode?

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2021-02-18 20:52:43
here is the updated function on v3 i have commented // new line where the edits are

had to add to a file - if your testing mircomonkey will you try post that function in a forum post on your test version, thought it was just me but tried posting a copy on a v3 forum and tt doesnt seem to show it, its there when you edit though strange
formatcomment.zip
File missing
Last edited by M-jay warn on 2021-02-18 21:03:20
2021-02-19 12:09:59
that helps. I didnt have some of those since they dont really get used. What are you using for the [code] [ /code] part?
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2021-02-19 22:14:34
for basic code i use this

    $s = preg_replace("#\[code\](.+)\[/code\]#isU",
   "<b> Code : </b><div style='border: 1px #3895D3 solid'><pre><code><div rows='10' style='max-height:400px;white-space: nowrap'  readonly='readonly'>$1</div></code></pre></div><br />",
    $s);

Last edited by M-jay warn on 2021-02-19 22:14:50
2021-02-19 23:40:25
thanks for that. I had to fiddle around to get it correct for me and wound up with this so far to style the page
"<p class='sub'><b> CODE:</b></p><table class='main' border='1' cellspacing='0' cellpadding='10'><tr><td style='border: 1px black dotted'>$1/td></tr></table><br />", $s);

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2021-02-19 23:42:54
2021-02-20 19:28:24
This might be useful to you. I used this on an old html page from a while back so I thought I would use it here. instead of clicking and dragging your mouse to highlight code in a box to copy/paste, you just click in the box and everything gets highlighted ready to copy.
	$s = preg_replace("#\[code\](.+)\[/code\]#isU",
"<p class='sub'><b> CODE: click box to select all code</b></p><table class='main' border='1' cellspacing='0' cellpadding='10'><tr><td style='border: 1px black solid'><textarea rows='15' cols='100' wrap='SOFT' READONLY onclick='this.select()'>$1</textarea></td></tr></table><br />", $s);


This is the addition of the select function
<textarea rows='15' cols='100' wrap='SOFT' READONLY onclick='this.select()'>$1</textarea>

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2021-02-21 12:23:30
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728