By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,509 Members | 1,266 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,509 IT Pros & Developers. It's quick & easy.

phpBB codes -> HTML

P: n/a
Please does someone know whether a tool that I look for exists and where?
I need some PHP script that would transform phpBB codes to valid XHTML.
phpBB codes are the metatags used to format posts to phpBB-powered forums,
like the one at http://www.winlyrics.com .
I started writing my own parser, but still I would rather use some more
tested code.

Thanks, Ondra
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On Tue, 8 Feb 2005 08:04:34 +0100, Ondra Zizka <zi***@seznam.cz> wrote:
Please does someone know whether a tool that I look for exists and where?
I need some PHP script that would transform phpBB codes to valid XHTML.
phpBB codes are the metatags used to format posts to phpBB-powered
forums,
like the one at http://www.winlyrics.com .
I started writing my own parser, but still I would rather use some more
tested code.

Thanks, Ondra


I've been using http://elouai.com/bbcode-sample.php on a small site for
some time. It doesn't provide full bbCode support, sacraficing it for
(apparently) speed and extensibility. It's certainly very easy to add
custom tags.

Kelvin
Jul 17 '05 #2

P: n/a
Ondra Zizka wrote:
Please does someone know whether a tool that I look for exists and where?
I need some PHP script that would transform phpBB codes to valid XHTML.
phpBB codes are the metatags used to format posts to phpBB-powered forums,
like the one at http://www.winlyrics.com .
I started writing my own parser, but still I would rather use some more
tested code.


http://pear.php.net/package/HTML_BBCodeParser

I haven't used it, but reading the package description, it's just the
right thing.

/m
Jul 17 '05 #3

P: n/a
> Please does someone know whether a tool that I look for exists and
where? I need some PHP script that would transform phpBB codes to
valid XHTML. phpBB codes are the metatags used to format posts to
phpBB-powered forums, like the one at http://www.winlyrics.com .


This seems almost too obvious an answer to mention, but have you
considered looking at the phpBB source code? It is open-source, after
all. Download the source here: http://sourceforge.net/projects/phpbb/
and look at the file /includes/bbcode.php

Jul 17 '05 #4

P: n/a
Sure I did look at it, but seems to be too tightly tied to phpBB's purposes
like quoting and cross-referencing in forums.
Thanks to all for replies.

"Ramius" <m.******@gmail.com> píse v diskusním príspevku
news:11*********************@f14g2000cwb.googlegro ups.com...
Please does someone know whether a tool that I look for exists and
where? I need some PHP script that would transform phpBB codes to
valid XHTML. phpBB codes are the metatags used to format posts to
phpBB-powered forums, like the one at http://www.winlyrics.com .


This seems almost too obvious an answer to mention, but have you
considered looking at the phpBB source code? It is open-source, after
all. Download the source here: http://sourceforge.net/projects/phpbb/
and look at the file /includes/bbcode.php

Jul 17 '05 #5

P: n/a
Just if anyone read this thread in the future:
http://elouai.com/bbcode-sample.php isn't good for letting the user to input
the code. It fundamentally just replaces [tag] with <tag> using
str_replace() and thus all advantages like not allowing user to break the
page layout are lost. But may be used to transform phpBB code that was
already validated.

"Kelvin Mackay" <ke****@nospam.sands-design.com> pí¨e v diskusním príspevku
news:opslvd43cgkrqzhn@snoopy...
On Tue, 8 Feb 2005 08:04:34 +0100, Ondra Zizka <zi***@seznam.cz> wrote:
Please does someone know whether a tool that I look for exists and where? I need some PHP script that would transform phpBB codes to valid XHTML.
phpBB codes are the metatags used to format posts to phpBB-powered
forums,
like the one at http://www.winlyrics.com .
I started writing my own parser, but still I would rather use some more
tested code.

Thanks, Ondra


I've been using http://elouai.com/bbcode-sample.php on a small site for
some time. It doesn't provide full bbCode support, sacraficing it for
(apparently) speed and extensibility. It's certainly very easy to add
custom tags.

Kelvin

Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.