Low NoSpam 3 for ExpressionEngine removes third-party support, but offers a much better API for third-party developers to tap into. Other add-ons can use the Low NoSpam library for their own input.
Extension Settings are mostly the same: choose a service, enter an API key (which will be validated upon save), and choose which of the native actions you want the Low NoSpam service to check.
The Low NoSpam Library will be loaded on Sessions Start, so it will be available throughout EE using ee()->low_nospam
. The library stores an internal data array with data to send to the NoSpam service. Available methods:
A nested array of available services. Currently only Akismet.
Tells the library which service to use, with which API key. Possible values for $name
are the keys given in get_services
.
Returns TRUE
if the set API is valid.
Currently selected service (array).
Currently selected service short name (string).
Add keys to the internal server_ignore array. Each of those keys of the $_SERVER
superglobal will not be sent along to the service. If a string is given, it will be added to the array. If an array is given, the whole array is added. If the $force
flag is set to TRUE
, the whole array will be replaced.
Used to set member group IDs that were set by the user in the Extension Settings.
Returns the member group IDs set by set_member_groups($ids)
.
Returns TRUE
if the service is available, FALSE
if not.
Either sets a single value in the internal data array or (if $key
is an array) merges an entire array with the internal data array.
Sets the content key of the internal data array to the contents in $_POST
, ignoring the keys given in $ignore
.