http://www.webserwer.pl
Quote
rvdb20
I want the same thing. The city is visible when you hover over the flag. But I want to add the country and city below the IP address on the visitor log. Please tell me how to add this.
K, I've got that covered for Piwik 2.0.2 (should also work in 1.12)
1. Edit /plugins/live/templates/_dataTableViz_visitorLog.twig file.
2. find the place you want to show the location
I show it below provider, around line 136 of code
3. Paste below code. It will show city if present, if not it will show general location
{% if visitor.getColumn('city') is not empty %} City: {{ visitor.getColumn('city') }} {% else %} Location: {{ visitor.getColumn('location') }} {% endif %}