Ok , so I am creating a forum, I have successfuly installed the BBcodeParser PEAR package, everything works perfectly.
Now when someone wants to write a new topic, he has a bar, to turn text into bold for example.
Now how can I apply the BBcode based on the user's request?. (for example , when he marks some text and clicks on the [B] button, how can I make that text bold?)
It sounds simple to me, I just add [b] before , and [/b] after that text he marked, but I realy need a hint on where to start , and do I need javascript? , should I do it with buttons or hyperlinks?
And when he clicks the B button, I dont want to refresh the whole page...
thank you very much for your help in advance.