How to center bbcode ?

Get help developing custom BBCodes or request one.
Post Reply
PB190
Registered User
Posts: 134
Joined: Mon Apr 30, 2018 2:50 pm

How to center bbcode ?

Post by PB190 » Sat May 05, 2018 11:18 am

Hello, i need center my text in Simple News Admin extension.

So i try this [center] [/center], but not work.

Thanks
Last edited by Mick on Sat May 05, 2018 11:20 am, edited 1 time in total.
Reason: Moved from discussion.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 20237
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: How to center bbcode ?

Post by Mick » Sat May 05, 2018 11:25 am

Did you search first, if you had you would have found Centre Align Text? Also
PB190 wrote:
Sat May 05, 2018 11:18 am
i need center my text in Simple News Admin extension
Have you spoken to the author about this as support for that extension is in the dedicated discussion/support forum for that extension?
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

PB190
Registered User
Posts: 134
Joined: Mon Apr 30, 2018 2:50 pm

Re: How to center bbcode ?

Post by PB190 » Sat May 05, 2018 12:13 pm

Thank you very much, do you know if there is anything similar to a tables ?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 20237
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: How to center bbcode ?

Post by Mick » Sat May 05, 2018 2:19 pm

PB190 wrote:
Sat May 05, 2018 12:13 pm
do you know if there is anything similar to a tables ?
I’ve already pointed you to a tables extension somewhere else, probably in support, all you had to do was
Mick wrote:
Sat May 05, 2018 6:53 am
search “tables extension” you’ll find there’s an [RC] extension for that in extension requests
But I’ve dug it out for you [RC] Tables.

I also have code for a Custom BBCode for tables but it’s quite complicated to install and not easy to use plus it may not work in 3.2.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

JustAGuy7
Registered User
Posts: 33
Joined: Tue May 08, 2018 11:34 am
Name: John

Re: How to center bbcode ?

Post by JustAGuy7 » Tue May 08, 2018 12:15 pm

The suggestion before (first reply from Mick) works, but an other way to do this, but to also allow left and right aligned text would be this way:

BBCode usage:

Code: Select all

[align={SIMPLETEXT1}]{TEXT}[/align]
HTML replacement:

Code: Select all

<div style="text-align:{SIMPLETEXT1}">{TEXT}</div>
This always worked great with me.

Post Reply

Return to “Custom BBCode Development and Requests”

Who is online

Users browsing this forum: No registered users and 6 guests