473,406 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

phpBB codes -> HTML

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
5 10442
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
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
> 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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Somerset Bob | last post by:
I've posted my query at the phpbb forum, where I got half an answer and then no more. I posted it again at another phpbb forum, where I got half an answer and no more. I posted it in alt.php, where...
0
by: Somerset Bob | last post by:
I've posted my query at the phpbb forum, where I got half an answer and then no more. I posted it again at another phpbb forum, where I got half an answer and no more. I posted it in alt.php, where...
2
by: Somerset Bob | last post by:
I've got pagination errors in a phpBB board. Some forums are showing "page 1 of 0". Previous enquiries both here and at the phpBB forum have given me half-answers, the latest of which contained...
1
by: Leave Me Alone | last post by:
Hey folks... I have a standalone phpBB forums and just recently installed PHPNuke on my website. I know phpnuke comes with it's own version of phpBB. How can I make it possible for members who...
2
by: Snyke | last post by:
Well the title might be a bit misleading: Some time ago I was trying to reverse engineer the authentification system in phpBB because I was building a community site in which there was a phpBB...
2
by: iisath | last post by:
Hello, Trying to get help with this situation. I have installed PHPBB, PHP (4X) and MySQL 4.1. This is how I started out. 1. Installed MYSQL - ran setup - did FULL install - and entered in...
3
by: Lee Roth | last post by:
About a year ago I obtained a username in the forums at http://www.phpbb.com in order to discuss a peeve about phpBB - it's search function. I posted a forum entry questioning the value of the...
3
by: JM | last post by:
Hi, Is it possible to configure phpBB to display threads "newsgroup style"? What I mean by this is to show replies to the top level post indented in a tree structure. One thing I cannot stand...
3
by: jcharth | last post by:
Hello a friend of mine was running phpbb on his site and the site got hacked. I am starting a new forum site and i installed punbb. Phpbb has many many nice features that punbb does not have. I had...
2
by: gvozdano | last post by:
I have phpBB forum on my site and I have a problem. I have some mods applied on it (not done with EasyMOD), but can't remember exactly which are they. How can I upgrade that forum and still keep...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.