2023-07-21, 12:05 PM
Hi,
I'm currently in the proccess of updating old IPB 2.1.7 Boards to newer version then migrating to myBB 1.8.35.
We're fixing issues here and there, and one of them disturbs us a bit more.
We discovered tha myBB is unable to natively treat indented text; :o
as you can see in the link below, our old boards make a heavy use of the [indent] tag, often nested :
myst-aventure.com
So we aim to replace this [indent] bbCode by a [indent] myCode to get the same result.
As far as now, our researches have been unsuccesful.
I created a [indent] myCode :
I tried to change the replacement to :
So I modified the replacement to
For a last test, I modified the Replacement by
I dont understand why it doesn't work. Any clue ?
I'm currently in the proccess of updating old IPB 2.1.7 Boards to newer version then migrating to myBB 1.8.35.
We're fixing issues here and there, and one of them disturbs us a bit more.
We discovered tha myBB is unable to natively treat indented text; :o
as you can see in the link below, our old boards make a heavy use of the [indent] tag, often nested :
myst-aventure.com
So we aim to replace this [indent] bbCode by a [indent] myCode to get the same result.
As far as now, our researches have been unsuccesful.
I created a [indent] myCode :
Regex : \[indent\](.*?)\[/indent\]
Replacement : <div style="text-indent: 50px">$1</div>
It only works for small sentences, shorter than 2 lines. If the paragraph is longer, no indent is applied.I tried to change the replacement to :
<div style="text-indent: 50px hanging">$1</div>
No good. So I modified the replacement to
<div class="indent">$1</div>
and added a indent class to the global.css file :indent {
color: #a98;
text-align: left;
padding-left: 50px;
}
Not better, Firefox inspector shows that these attributes are striked. :oFor a last test, I modified the Replacement by
<div style="left-padding=50px">$1</div>
w/o more success...I dont understand why it doesn't work. Any clue ?