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:
parent
0c7a0015c9
commit
6d95fdb12b
4 changed files with 10 additions and 3 deletions
|
@ -1,5 +1,10 @@
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
# 0.1.1
|
||||||
|
|
||||||
|
release version
|
||||||
|
|
||||||
|
|
||||||
# 0.1.0
|
# 0.1.0
|
||||||
|
|
||||||
first beta version
|
first beta version
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue