html to bbcode

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
carsten88888
Registered User
Posts: 34
Joined: Tue Dec 30, 2014 7:22 am

html to bbcode

Post by carsten88888 » Mon Jan 12, 2015 10:27 am

I'm coding a script to import posts from html.

How can I use the phpbb class to convert html to bbcode? I just can't find it.

User avatar
Wolfsblvt
Registered User
Posts: 634
Joined: Sun Oct 26, 2014 9:12 pm
Location: Solingen, Germany
Contact:

Re: html to bbcode

Post by Wolfsblvt » Mon Jan 12, 2015 3:35 pm

There is no function to do that.
I would say you have to write such a function yourself.
If you have a specific extension request and you are willing to pay for, you can write me a PM.
My extensions (Trending: @Mention SystemAdvanced PollsUser Online Time)

»Du kamst zu uns. Deine Stimme kam. Du zeigtest uns die Sterne. Sie funkelten. Wir konnten sehen.«

User avatar
BryanFR
Registered User
Posts: 79
Joined: Wed Aug 27, 2014 4:44 pm
Location: Eure, FR
Contact:

Re: html to bbcode

Post by BryanFR » Mon Jan 12, 2015 3:44 pm

If you talk to use HTML instead of the BBCodes, it is impossible. This option no longer exists since the first phpBB version 3. An extension may be feasible. ;)
I'm student in the life based in France. My community is : http://www.thebryx.cf

carsten88888
Registered User
Posts: 34
Joined: Tue Dec 30, 2014 7:22 am

Re: html to bbcode

Post by carsten88888 » Mon Jan 12, 2015 4:16 pm

I'm using this one now viewtopic.php?f=71&t=563211

User avatar
BryanFR
Registered User
Posts: 79
Joined: Wed Aug 27, 2014 4:44 pm
Location: Eure, FR
Contact:

Re: html to bbcode

Post by BryanFR » Mon Jan 12, 2015 4:26 pm

This encoding is available for the 3.0.x branch if your forum is in 3.1.x this code is not compatible and can cause security PHP fatal errors.
I'm student in the life based in France. My community is : http://www.thebryx.cf

Post Reply

Return to “Extension Writers Discussion”