Takara
06-05-2002, 07:19 AM
Can anyone give me a hand on how to parse smilies and VB code? What Im doing is calling a post right from the sql and outputting it elsewhere.
I am building a columns system for my site, and this is the way it works. The columnist posts a column in his or her own forum. In that forum everyone can reply to the post (but only that person can post). The persons column is then avalable without all the frills (tables and replys) on a sperate page. So I made up this php script to do it. (See Attached)
It works well and all, I still have to refine it a bit. I was able to figure out how to turn the page break ($crlf, \n etc :p) to a <p> ( $pagetext=str_replace("\n", "<p>", $row['pagetext']); ). But looking at the code everything looks so cryptic :/
Take a look at the attached file, see if you can give me a hand ^^ Oh yea, Im a sloppy coder, lol. So, dont blame me if you burn your eyes out looking at the code XD
(btw, Im not sure if this is the right spot or not. This isnt about an exisiting hack and it isnt a hack I'll be releasing. So if its in the wrong spot just let me know ^_^)
I am building a columns system for my site, and this is the way it works. The columnist posts a column in his or her own forum. In that forum everyone can reply to the post (but only that person can post). The persons column is then avalable without all the frills (tables and replys) on a sperate page. So I made up this php script to do it. (See Attached)
It works well and all, I still have to refine it a bit. I was able to figure out how to turn the page break ($crlf, \n etc :p) to a <p> ( $pagetext=str_replace("\n", "<p>", $row['pagetext']); ). But looking at the code everything looks so cryptic :/
Take a look at the attached file, see if you can give me a hand ^^ Oh yea, Im a sloppy coder, lol. So, dont blame me if you burn your eyes out looking at the code XD
(btw, Im not sure if this is the right spot or not. This isnt about an exisiting hack and it isnt a hack I'll be releasing. So if its in the wrong spot just let me know ^_^)