MichaelBelgium / mybb_to_flarum

A Flarum extension to convert a mybb forum to a fresh flarum install
MIT License
26 stars 15 forks source link

add the hierarchy of tags #4

Closed dshovchko closed 7 years ago

dshovchko commented 7 years ago

Automatic addition of the discussion in the parent tag (well as this makes the flarum)

dshovchko commented 7 years ago

I don't know what could be wrong? After importing from mybb are not visible discussions in which only one message (without comments). And the administrators are see their, but others users and guests aren't.

MichaelBelgium commented 7 years ago

You talking about soft deleted threads?

EDIT: Got these kind of warnings after the merge:

Notice: Undefined offset: 35 in mybb_to_flarum.php on line 128 

EDIT: nvm fixed it

dshovchko commented 7 years ago

so it was in mybb - https://ibb.co/joxAgQ guest sees the forum so - https://ibb.co/i8uO1Q admin sees the forum so - https://ibb.co/bw3GMQ

As you can see, there are no topics with 0 replies.

dshovchko commented 7 years ago

You talking about soft deleted threads?

No

dshovchko commented 7 years ago

nvm fixed it

Good!

MichaelBelgium commented 7 years ago

Hmm thats strange! I would say its about flarum permissions or some kind

MichaelBelgium commented 7 years ago

@dshovchko Can u try to add

$configurator->BBCodes->addCustom('[size={CHOICE=large,small,xx-small,x-small,medium,x-large,xx-large}]{TEXT}[/size]','<span style="font-size: {CHOICE}">{TEXT}</span>');

to your config file to support the MyBB size bbcode? And tell me if it works or not?

If i add this line i'm getting font-size: xx-largepx; in the css/forum. I have no idea why it doesn't work

dshovchko commented 7 years ago

It doesn't work.

preg_replace('/\[size=(large|small|xx-small|x-small|medium|x-large|xx-large)\](.+?)\[\/size\]/iu', '<span style="font-size: $1">$2</span>', $row["message"]); works better