Firefly you are correct, but the people that type the tags ususally know to close them. it's the people that just push the bold button and then get aggrivated that their post isn't bold that I was trying to help out. It's not fool proof, but it should help someof the time
here's a little something else. it's not neccessary, but I felt it was nicer. now when you submit the form, the page is crolled up a little to bring the focus back to the message text area regaurdless of whether any end tags were added or not. I move one line in vbcode.js to fix this. I know now this is a hack instead of a template mod, but like I said, it's not necessary
open vbcode.js and scroll down to
function closeall(theform)
find the line
theform.message.focus();
and move it to right after
AddText(Addtxt,theform);
now the message window will only be brought into focus if tags are added. if you made your post correctly, nothing will happen.
|