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
Align Center Not Working bbcode 2.08
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Support

Unknown User
2019-05-20 03:25:32
[url='https://www.torrenttrader.org/viewtopic.php?f=7&t=2799']Align Center Not Working bbcode 2.08[/url]
Unknown User
2019-05-20 10:35:57
Functions.php
// 
text

   $s = preg_replace("/\[center\]((\s|.)+?)\[\/center\]/", "<center>\\1</center>", $s);

bbcode.php
 case '
':
   var start = document.forms[form].elements[text].selectionStart;
   var end = document.forms[form].elements[text].selectionEnd;
   if (start != end) {
       var body = document.forms[form].elements[text].value;
       var left = body.substr(body, start);
       var middle = "[center]" + body.substring(start, end) + "
";
       var right = body.substr(end, body.length);
       document.forms[form].elements[text].value = left + middle + right;
   } else {
       document.forms[form].elements[text].value = document.forms[form].elements[text].value + "
";
   }
       break;
Unknown User
2019-05-20 12:24:26
[ATTACH type="full" alt="5050"]5050[/ATTACH]
Screenshot_1.png
Screenshot_1.png
Unknown User
2019-05-20 12:25:00
Thanx but still not working
Unknown User
2019-05-20 15:20:42
Then you didn't put it correctly.

Find part where bbcodes are defined in functions.php and add below the code.

Find the part where the last break; in bbcode.php has been defined and add below the code
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