bbcode convert html to bbcode

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

WHY YOU CAN NO LONGER CREATE NEW TOPICS: READ
gennyna
Registered User
Posts: 72
Joined: Mon Apr 06, 2009 7:29 pm

bbcode convert html to bbcode

Postby gennyna » Tue Feb 16, 2010 3:31 pm

I know it seems a matter of words, but now I'll explain better ..

I'd like to create a bbocode that transforms HTML into bbocode .. Type

[bbcode] html code here [/ bbcode]

and have the results as HTML BBCode turned into ..

example:

[bbcode] <p> <a href="www.esempio.it"> Click Me </ a> </ p> [/ bbcode]

Code: Select all

[url=http://www.esempio.it]Cliccami[/url]

Senky
Translator
Posts: 595
Joined: Thu Apr 30, 2009 8:49 pm
Location: Slovakia
Name: Jakub

Re: bbcode convert html to bbcode

Postby Senky » Wed Feb 17, 2010 1:15 pm

So you want bb code, which will transform common html into bb codes? And than what to do with it? Remove it from the post? I would say, it will be better to make some external page where html will be converted into bb codes. And - what about custom bb codes? How to parse them?
Understand?

gennyna
Registered User
Posts: 72
Joined: Mon Apr 06, 2009 7:29 pm

Re: bbcode convert html to bbcode

Postby gennyna » Thu Feb 18, 2010 2:43 pm

We therefore need to create this HTML page to create the parser to be used later in bbcode?

Senky
Translator
Posts: 595
Joined: Thu Apr 30, 2009 8:49 pm
Location: Slovakia
Name: Jakub

Re: bbcode convert html to bbcode

Postby Senky » Fri Feb 19, 2010 1:28 pm

I would not do this in html (and js), it would be better to use php and submit text (with html) and after submit, the output (in bb code) will be shown...

gennyna
Registered User
Posts: 72
Joined: Mon Apr 06, 2009 7:29 pm

Re: bbcode convert html to bbcode

Postby gennyna » Fri Feb 19, 2010 10:41 pm

is a good idea

gennyna
Registered User
Posts: 72
Joined: Mon Apr 06, 2009 7:29 pm

Re: bbcode convert html to bbcode

Postby gennyna » Sun Feb 28, 2010 10:35 am

up :P

User avatar
Oyabun1
Support Team Member
Support Team Member
Posts: 22179
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: bbcode convert html to bbcode

Postby Oyabun1 » Fri Mar 05, 2010 11:43 am

gennyna wrote:is a good idea

This sounds like a very bad idea.

If you automatically parse HTML and convert it into BBCode that would be the same as allowing HTML to be entered directly in a post and thus bypassing the phpBB security feature of not allowing HTML in posts.

There is a mod around that will allow posting HTML directly, but because it is a security risk it is not available from this site.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests


Return to “[3.0.x] MOD Requests”

Who is online

Users browsing this forum: No registered users and 6 guests