NotFoundParamAlert 1.0.7-pl

NotFoundParamAlert 1.0.7-pl

Released Oct 29, 2018 by kudashevs

NotFoundParamAlert is MODx Revolution Extra which generate alert on page not found with specified parameters in URL. Useful to catch wrong URLs on large context advertising projects with UTM or other URL parameters.

Key features

  • generate alert message on page not found with specified URL parameters
  • set list of necessaries URL parameters with simple wildcards
  • send mail messages using PHP or MODX build-in tools
Download 56kb (15 downloads)
Downloads: 274
License: GPLv2
Requires Revolution 2.3.x or greater
Compatible up to Revolution 2.6.x
Supports mysql

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: "db" - save in a data base, "mail" – send alert message on email, "log" – log alert message. Can be used together.
  • 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

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: "db" - save in a data base, "mail" – send alert message on email, "log" – log alert message. Can be used together.
  • 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.

1.0.7-pl

  • Add database support
  • Add CMP page
  • Add getRemote() function
  • Build script update
  • Some refactoring
  • Update lexicon files and docs

1.0.6-pl

  • Bugfix show alert_method message/mail text
  • More informative alert_method on mail

1.0.5-pl

  • Add trim to options list
  • Add warning on wrong alert_method/_level
  • Remade get/use alert_method logic
  • Remove "both" alert_method parameter
  • Some code optimization
  • Update lexicon files and docs

1.0.4-pl

  • Rename email_to system settings
  • Add mail method choice option
  • Add mail from option
  • Update lexicon files and docs

1.0.3-pl

  • Remove FATAL log level
  • Add component name option
  • Add fillable alert message/mail text
  • Update lexicon files and docs
  • Bug fix

1.0.2-pl

  • Add simple wildcard parameters match
  • Some code optimization
  • Update lexicon files

1.0.1-pl

  • Add include all URL parameters or not option
  • Add log level choice option
  • Update lexicon files

1.0.0-pl

  • Initial release
Version Released Author Downloads
5 Versions 1 Contributors 274 Downloads
1.0.6-pl Feb, 27 2018 kudashevs 122
1.0.5-pl Feb, 27 2018 kudashevs 20
1.0.4-pl Feb, 21 2018 kudashevs 70
1.0.2-pl Feb, 20 2018 kudashevs 47