1
0
Fork 0
mirror of https://github.com/Findus23/plugin-QuickExcludeVisitorIP.git synced 2024-09-19 15:53:44 +02:00

add description

This commit is contained in:
Lukas Winkler 2020-05-22 16:42:43 +02:00
parent 0c7a0015c9
commit 6d95fdb12b
Signed by: lukas
GPG key ID: 54DE4D798D244853
4 changed files with 10 additions and 3 deletions

View file

@ -1,5 +1,10 @@
## Changelog ## Changelog
# 0.1.1
release version
# 0.1.0 # 0.1.0
first beta version first beta version

View file

@ -17,12 +17,12 @@ class QuickExcludeVisitorIP extends Plugin
public function registerEvents() public function registerEvents()
{ {
return array( return array(
'Live.renderVisitorIcons' => 'handleMyEventInATemplate', 'Live.renderVisitorIcons' => 'addLinkToTemplate',
'AssetManager.getJavaScriptFiles' => 'getJavaScriptFiles', 'AssetManager.getJavaScriptFiles' => 'getJavaScriptFiles',
); );
} }
public function handleMyEventInATemplate(&$outString, Row $visit) public function addLinkToTemplate(&$outString, Row $visit)
{ {
if (Access::getInstance()->hasSuperUserAccess()) { if (Access::getInstance()->hasSuperUserAccess()) {
$ip = $visit->getColumn("visitIp"); $ip = $visit->getColumn("visitIp");

View file

@ -2,4 +2,6 @@
## Description ## Description
You want to ignore the visits of your colleagues with static IP addresses, but don't copy all of them manually?
This plugin adds a `ignore` button to the visitor log that immediately adds the IP Address of the visitor to the global Matomo IP ignore list.

View file

@ -1,7 +1,7 @@
{ {
"name": "QuickExcludeVisitorIP", "name": "QuickExcludeVisitorIP",
"description": "Adds a button to Visitor Profile to quickly add them to the list of ignored IPs", "description": "Adds a button to Visitor Profile to quickly add them to the list of ignored IPs",
"version": "0.1.0", "version": "0.1.1",
"theme": false, "theme": false,
"require": { "require": {
"piwik": ">=3.10.0,<5.0.0-b1" "piwik": ">=3.10.0,<5.0.0-b1"