G
Guest
Hello, I want to allow my users to type in some codes, like the BBCodes. The
codes i had in mind were:
[bold]Message[/bold]
[italic]Message[/italic]
[strikethru]Message[/strikethru]
Message
Message
Message
[zitat=username]Message[/zitat] <-- here i need the username to be
transferd into a variable so i can fetch the corresponding post and then
replaced by the post returned form the DB
[internallink=private/adress.aspx?ID=5]Rules[/internallink] <-- program
should automatically add <a href ... /zone/ and then the url and then the
message </a>
[threadlink=687]Message[/threadlink] <-- program should automatically add
<a href ... zone/board/answer.aspx?TopicID= and then the number supplied and
then the message </a>
Message
(e-mail address removed)
Whats the best way to achive this?
Also, i want to make sure that the end tag is after the opening tag,
otherwise it could be pretty bad, like:
Message <-- No end link
or
[link=[URL="http://www.goole.com]Message"]www.goole.com]Message[/URL] <-- End link before link
these would case the rest of my site to become a link. (using c#)
Patrick
codes i had in mind were:
[bold]Message[/bold]
[italic]Message[/italic]
[strikethru]Message[/strikethru]
Message
Message
Message
[zitat=username]Message[/zitat] <-- here i need the username to be
transferd into a variable so i can fetch the corresponding post and then
replaced by the post returned form the DB
[internallink=private/adress.aspx?ID=5]Rules[/internallink] <-- program
should automatically add <a href ... /zone/ and then the url and then the
message </a>
[threadlink=687]Message[/threadlink] <-- program should automatically add
<a href ... zone/board/answer.aspx?TopicID= and then the number supplied and
then the message </a>
Message
(e-mail address removed)
Whats the best way to achive this?
Also, i want to make sure that the end tag is after the opening tag,
otherwise it could be pretty bad, like:
Message <-- No end link
or
[link=[URL="http://www.goole.com]Message"]www.goole.com]Message[/URL] <-- End link before link
these would case the rest of my site to become a link. (using c#)
Patrick