Using bbc code with results

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

    #1

    Using bbc code with results

    Hey all. Hope everyone is doing fine.

    Question...

    I know how to display results that contain html code on a page. (ie. <br>
    <b>...)

    what i would like to know, is if a result contains bbc code (ie.. [code]
    [url]..)
    how would i display that to be readable?

    This is not for a forum, but would be the same as if i was writting a forum.
    I think there is a script that the page has to contain to be able to read it
    correctly, but I can't find it.

    or can i be directed to the correct NG to post this. Not sure where i would
    need to post.

    --
    Thanks,
    Bam


  • Evertjan.

    #2
    Re: Using bbc code with results

    Bam wrote on 26 feb 2008 in microsoft.publi c.inetserver.as p.general:
    Hey all. Hope everyone is doing fine.
    >
    Question...
    >
    I know how to display results that contain html code on a page. (ie.
    <br<b>...)
    >
    what i would like to know, is if a result contains bbc code (ie..
    [code] [url]..)
    I often listen to the BBC, those are not their words. ;-)
    how would i display that to be readable?
    Isn't displaying a browser thing?
    ASP runs serverside so does not display anything.
    This is not for a forum, but would be the same as if i was writting a
    forum.
    wher you want to use it for?
    I think there is a script that the page has to contain to be
    able to read it correctly, but I can't find it.
    A script where?

    You/one could write an ASP-vbs or ASP-js script converting a text file or
    textstream any way you choose and then sending the resulting stream down
    the line tot the browser for display. That is an essential part of what
    ASP and other serverside coding is all about.
    or can i be directed to the correct NG to post this. Not sure where i
    would need to post.
    Do you want to tackle this serverside with one of the ASP languages?

    ASP-vbs perhaps:

    t = replace(t,"
    Code:
    ","<script type='text/javascript'>")
    t = replace(t,"
    ","</script")

    "there is a script"? Where? On the web? Perhaps someone already did some
    work on this, but I have never seen that.

    Why not write decent HTML in the first place?

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Daniel Crichton

      #3
      Re: Using bbc code with results

      Bam wrote on Tue, 26 Feb 2008 03:48:02 -0500:
      Hey all. Hope everyone is doing fine.
      Question...
      I know how to display results that contain html code on a page. (ie.
      <br<b>...)
      what i would like to know, is if a result contains bbc code (ie..
      [code] [url]..)
      how would i display that to be readable?
      This is not for a forum, but would be the same as if i was writting a
      forum. I think there is a script that the page has to contain to be able
      to
      read it correctly, but I can't find it.
      or can i be directed to the correct NG to post this. Not sure where i
      would need to post.
      First up, it's BBCode, not BBC code.

      Search Google and you'll find code already written, for instance this simple one:
      http://forums.aspfree. com/code-bank-54/simple-bbcode-script-90019.html

      --
      Dan


      Comment

      Working...