phpBB codes -> HTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ondra Zizka

    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


  • Kelvin Mackay

    #2
    Re: phpBB codes -> HTML

    On Tue, 8 Feb 2005 08:04:34 +0100, Ondra Zizka <zizka@seznam.c z> wrote:
    [color=blue]
    > 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
    >
    >[/color]

    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

    Comment

    • Marcin Dobrucki

      #3
      Re: phpBB codes -&gt; HTML

      Ondra Zizka wrote:[color=blue]
      > 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.[/color]



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

      /m

      Comment

      • Ramius

        #4
        Re: phpBB codes -&gt; HTML

        > Please does someone know whether a tool that I look for exists and[color=blue]
        > 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 .[/color]

        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

        Comment

        • Ondra Zizka

          #5
          Re: phpBB codes -&gt; HTML

          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.ramius@gmail .com> píse v diskusním príspevku
          news:1107880417 .501445.92360@f 14g2000cwb.goog legroups.com...[color=blue][color=green]
          > > 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 .[/color]
          >
          > 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
          >[/color]


          Comment

          • Ondra Zizka

            #6
            Re: phpBB codes -&gt; HTML

            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" <kelvin@nospam. sands-design.com> pí¨e v diskusním príspevku
            news:opslvd43cg krqzhn@snoopy.. .[color=blue]
            > On Tue, 8 Feb 2005 08:04:34 +0100, Ondra Zizka <zizka@seznam.c z> wrote:
            >[color=green]
            > > Please does someone know whether a tool that I look for exists and[/color][/color]
            where?[color=blue][color=green]
            > > 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
            > >
            > >[/color]
            >
            > 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[/color]


            Comment

            Working...