Here's where you can findout!
First of all you need a forum box to add it to.
<form method='post' name='addcomment'> Comment: <input type=\"button\" onClick=\"document.addcomment.comment.value+='[b][/b]'\" value=\"Bold\" name=\"bold\" title=\"Add Bold\" > <input type=\"button\" onClick=\"document.addcomment.comment.value+='[i][/i]'\" value=\"Italic\" name=\"italic\" title=\"Add Italic\" > <input type=\"button\" onClick=\"document.addcomment.comment.value+='[php][/php]'\" value=\"PHP Code\" name=\"php\" title=\"Add PHP Code\" > <input type=\"button\" onClick=\"document.addcomment.comment.value+='[url=http://linkhere.com]Link text[/url]'\" value=\"URL\" name=\"url\" title=\"Add Hyperlink\" > <textarea rows='5' cols='35' name='comment'></textarea> <input type='submit' name='add_comment' value='Submit'> </form>
Now that was my full code.
Here's the explaniation of a button
What you need to change is...
That addcomment you need to change to the name of the entire form your submitting to.onClick=\"document.addcomment.comment.
Next is comment which is the 'textbox' your submitting in.
value+='[url=http://linkhere.com]Link text[/url]'\"This you need to change what is going to be added to the textbox. e.g. [/b/][/b/] *remove the extra /'s
Here for Value you need to give it, it's display name.value=\"URL\" name=\"url\" title=\"Add Hyperlink\"
Whatever is shown in value is what is shown to the guest/reader.
Now for the name, just change that to whatever bbcode your using, eg. for bold enter 'bold'.
Just to specify the button.
As for Title, just eter 'Add Whatever' It's almost like an Image hover, and you sometimes get text displayed.
Thats alll.. Any questions. feel free to ask!