Hi,
I am currently creating a plugin that manipulates connections adding. For example, if a particular user is a Merchant (based on a CB field of the user), then the plugin will execute its codes and then halt the rest of CB's own connections adding codes. I am doing this through onBeforeAddConnection.
My initial idea was if the condition is satisfied (ie, the person being added is a merchant), it will execute my codes and then call for a [code:1]
$this->_setErrorMSG("Merchant added"«»);
return false;
[/code:1]
Reading through the API, i assumed this will result in a javascript popup, and then stop CB's own codes. Or was i wrong? Is there a way to do that?
Also, is there a way to get the $option variable (either global or from the URI) during the execution of the bot plugin?
Any help is greatly appreciated! Thanks in advance!
Regards, Mike