• MODX.com

    201 downloads

  • modstore.pro

    7 downloads

NotFoundParamAlert

NotFoundParamAlert is an extra by kudashevs, first released on 2018-02-24.

Package Description

Please note that in last releases was changed alert_method option due to remade get/use logic. The value "both" no longer in use and cannot be used. And wish to say many thanks for guys from modstore.pro for idea of trimming values from options list.

NotFoundParamAlert is MODx Revolution plugin which generate alert on page not found with specified parameters in URL. It is possible to select a range of URL parameters through using wildcards. The user can be notified through MODx logging system or email.

Useful to catch wrong URLs on large context advertising projects with UTM or other URL parameters.

  • parameters – list of URL parameters, separated by coma, which will generate alert. Available simple wildcards: ? — one any symbol, * — group of symbols.
  • parameters_all – include in alert message all URL parameters or only matching parameters.
  • alert_method – alert method. Available values: "log" – log alert message, "mail" – send alert message on email, "both" – use both alert delivery methods.
  • alert_log_level – alert logging log level. Available values: "error", "warn", "info", "debug".
  • mail_method – send mail method. Available values: "php" – native php mail() function, "modx" – MODX mailer.
  • mail_from – valid email from which alert messages will be send.
  • mail_to – valid email where alert messages will be send.

Feel free to suggest ideas/improvements/bugs on GitHub:

https://github.com/kudashevs/NotFoundParamAlert/issues

Usage/Installation Instructions

Install via Package Management.

______________________________________________________________________________________After After installation use System settings notfoundparamalert namespace to set preferable settings values.

Available system settings (namespace notfoundparamalert):

  • parameters – list of URL parameters, separated by coma, which will generate alert. Available simple wildcards: ? — one any symbol, * — group of symbols.
  • parameters_all – include in alert message all URL parameters or only matching parameters.
  • alert_method – alert method. Available values: "mail" – send alert message on email, "log" – log alert message.
  • alert_log_level – alert logging log level. Available values: "error", "warn", "info", "debug".
  • mail_method – send mail method. Available values: "php" – native php mail() function, "modx" – MODX mailer.
  • mail_from – valid email from which alert messages will be send.
  • mail_to – valid email where alert messages will be send.In Lexicon notfoundparamalert namespace it is possible to set up your own template for log/email message.

Available placeholders used in message/mail text:

  • alertName - component name.
  • alertMethod - alert method.
  • siteName - site name ('site_name').
  • siteUrl - site url ('site_url').
  • urlPath - page relative URL.
  • urlFull - page absolute URL.
  • requestParams - matched URL parameters.
  • ipAddress - IP address the page was requested.

Details

Developer(s)
kudashevs
Released
2018-02-27
First seen
2018-02-24
License
GPLv2
Supported databases
MySQL
Minimum MODX Requirement
2.3

NotFoundParamAlert Releases

Vendor Signature Released on
MODX.com 1.0.6-pl 2018-02-27 (6 months ago)
Not available 1 1.0.4-pl 2018-02-21 (6 months ago)
Not available 1 1.0.2-pl 2018-02-20 (7 months ago)

1 We're not 100% sure what vendor this release was available from, because NotFoundParamAlert is available from multiple vendors, and we only started tracking vendor-specific versions on August 29th, 2018.