Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alignment MyCode
#1
MyBB is the only forum software that uses [align] MyCode rather than the common [left] [center] [right] BbCodes. Can we add support for both? It'll be an easy fix. I haven't tested this code but it looks like it'll work:

Regular Expression:
Code:
\[(left|center|right)\](.*?)\[/\1\]

Replacement:
Code:
<div style="text-align: $1;">$2</div>
Reply


Messages In This Thread
Alignment MyCode - by Peter L - 03-13-2011, 05:30 PM
RE: Alignment MyCode - by Fragma - 03-13-2011, 05:32 PM
RE: Alignment MyCode - by Peter L - 03-13-2011, 05:36 PM
RE: Alignment MyCode - by Omniscient - 03-13-2011, 06:05 PM
RE: Alignment MyCode - by Peter L - 03-13-2011, 06:09 PM
RE: Alignment MyCode - by Nemmyy - 03-13-2011, 07:55 PM
RE: Alignment MyCode - by Peter L - 03-20-2011, 06:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Youtube MyCode Tim 7 1,496 10-06-2009, 02:07 PM
Last Post: Tim

Forum Jump:


Users browsing this thread: 3 Guest(s)