MyBB Community Forums
Center / Left / Right Problem - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Center / Left / Right Problem (/thread-231452.html)



Center / Left / Right Problem - akyna - 2021-03-01

Hey, 

I have a mistake with mybb. 

When someone post one thread and try to align text to left or center or right, i got this : 

[Image: 3GqUfUz.png]

I don't no how to fix this. I have made some search before i find something with mycode but it's seem's doen't fix my post ...


RE: Center / Left / Right Problem - dragonexpert - 2021-03-01

(2021-03-01, 12:35 AM)akyna Wrote: Hey, 

I have a mistake with mybb. 

When someone post one thread and try to align text to left or center or right, i got this : 

[Image: 3GqUfUz.png]

I don't no how to fix this. I have made some search before i find something with mycode but it's seem's doen't fix my post ...


The correct code is align=left|right|center not what you did.


RE: Center / Left / Right Problem - akyna - 2021-03-01

(2021-03-01, 12:59 AM)dragonexpert Wrote:
(2021-03-01, 12:35 AM)akyna Wrote: Hey, 

I have a mistake with mybb. 

When someone post one thread and try to align text to left or center or right, i got this : 

[Image: 3GqUfUz.png]

I don't no how to fix this. I have made some search before i find something with mycode but it's seem's doen't fix my post ...


The correct code is align=left|right|center not what you did.


Okay but i use my toolbar i just click on button just here : 

[Image: Wes7djk.png]
So i think my button is broken, where i can fix the code ?


RE: Center / Left / Right Problem - dragonexpert - 2021-03-01

I'm not sure if it will be in the codebuttons template which is under ungrouped templates or if you are going to have to edit one or more of the sceditor files.


RE: Center / Left / Right Problem - akyna - 2021-03-01

I didn't find anything for change code in ungrouped templates so i think it's in sceditor files. I'm tring to solve my problem

If you have any idears of which files should be changed ^^

I have see in official mybb files, the code for center is : [center] [/center]

So i think it's another problem if anyone have this problem


RE: Center / Left / Right Problem - PARADOXP - 2021-03-01

rest your codebuttons template and re-upload the original sceditor files to your jscripts folder and check if it worked !


RE: Center / Left / Right Problem - akyna - 2021-03-01

(2021-03-01, 03:14 PM)PARADOXP Wrote: rest your codebuttons template and re-upload the original sceditor files to your jscripts folder and check if it worked !

I just done it, and it's didn't change anything ... I have the same error ...

OKay i have fixed my problem with this topic : https://community.mybb.com/thread-27833.html

In MyCode

Name: Center tag (or whatever you like)
Regular Expression:
\[center\](.*?)\[/center\]
None
Replacement:
<div style="text-align: center;">$1</div>