Phid
Member
Dear Sir/Madam,
I've been searching but haven't found an answer for the specific question I've, maybe I made the wrong queries... hope anyone can throw me some light or point me into the right direction.
I've created a custom add-on for some custom BB Codes along with some dialogs for helping on the input of the BB Code itself. So far so good, the values are validated on such dialogs and the user can't make a mistake, however, as soon as the BB Code is validated and inserted into the editor the user can change the values of it. My question is how to intercept the BB Codes before inserting the post. I would like to be able to get a list of the BB Codes used and check the options and if is valid, let it go through or stop it and display a message.
An example of the BB Code is as follows:
I would like to validate the option that is passed to this BB Code, and if the user used a non-valid number by manually editing or typing the BB Code, show an error.
Thanks in advance!
I've been searching but haven't found an answer for the specific question I've, maybe I made the wrong queries... hope anyone can throw me some light or point me into the right direction.
I've created a custom add-on for some custom BB Codes along with some dialogs for helping on the input of the BB Code itself. So far so good, the values are validated on such dialogs and the user can't make a mistake, however, as soon as the BB Code is validated and inserted into the editor the user can change the values of it. My question is how to intercept the BB Codes before inserting the post. I would like to be able to get a list of the BB Codes used and check the options and if is valid, let it go through or stop it and display a message.
An example of the BB Code is as follows:
Code:
[EXCLUDE=6]This is a content with exclude 6[/EXCLUDE]
I would like to validate the option that is passed to this BB Code, and if the user used a non-valid number by manually editing or typing the BB Code, show an error.
Thanks in advance!