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

Re: Using bbc code with results by Evertjan

Evertjan
Tue Feb 26 04:08:37 CST 2008

Bam wrote on 26 feb 2008 in microsoft.public.inetserver.asp.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,"[/code]","</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)

Re: Using bbc code with results by Daniel

Daniel
Tue Feb 26 06:54:03 CST 2008

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



Re: Using bbc code with results by Bam

Bam
Tue Feb 26 07:23:01 CST 2008

> Bam wrote on 26 feb 2008 in microsoft.public.inetserver.asp.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. ;-)

well, you obviously knew what I meant here..lol

>> 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?

for a pm system on one of my sites

>> 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?

As the post by Daniel listed. I had seen something similiar to that in the
past.

> 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?

Yes, I write in asp classic, and would VBS as listed below

> ASP-vbs perhaps:
>
> t = replace(t,"[code]","<script type='text/javascript'>")
> t = replace(t,"[/code]","</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?

Because it wouldn't display for the user in the manor I would want it to be
seen. That is why I asked.

THanks


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