This plugin logs registered users activity in your blog and displays it in frontend and backend.
It can also track and deny access by blacklisting to unwanted login attempts.
Activity logged :
- new user
- new comment
- comment edition
- comment deletion
- profile update
- new published post
- published post edition
- post deleted (really deleted, not trashed)
- new link
- login failure (displayed only in admin panel)
- access denied by IP blacklisting (displayed only in admin panel)
Possible usages :
- Monitor unwanted connexions attempts on your blog and block hackers IP.
- Monitor the registered users activity on a multi-users blog.
- Enhance your community blog by displaying to all users what other members have done.
If enabled, user who don’t want to be listed in blog activity can hide its own activity by checking a privacy option in the profile page. In that case, this user activity is not stored in database.
When a login failure occurs, the IP address is also logged.
Users activity can be followed by RSS feed and can be exported in csv file (semicolon separation).
Admin can follow the blog users activity within dates range with the stats module.
To avoid spammers or hackers trying to steal accounts, you can blacklist their IP addresses. Be careful, I you blacklist your own IP you won’t be able to login anymore !
Blacklisted IP addresses get a 403 error when trying to logon, and the activity log displays an ‘access denied’ event.
Keep in mind that this plugin is not security oriented. There are lots of plugins that specifically deal with security.
Thanks to Venntom for finding a lot of bugs each time I release a new version, and for helping me fix them.
- Italian (Thx to Luca – partially translated up to v1.2)
- Turkish (Thx to Can KAYA – translated up to v1.2)
- Spanish (Thx to Cscean – translated up to v1.3)
- Romanian (Thx to Web Geeks – translated up to v1.7)
- Dutch (Thx to Tom – translated up to v1.8.1)
- Russian (Thx to Semyon Nikiforov – partially translated)
(If you translated my plugin, please send the translated .po file at firstname.lastname@example.org )
Plugin page (French blog but feel free to comment in english)
Resources used :
- Fugue Icons by Yusuke Kamiyamane (http://p.yusukekamiyamane.com)
- Flot jQuery library (http://code.google.com/p/flot/)
Latest version: Download wp-activity v2.0 [zip]
- Download the plugin and unzip,
- Upload the wp-activity folder to your wp-content/plugins folder,
- Activate the plugin through the WordPress admin,
- In your Admin Panel, go to
Plugins > Add New
- Search for « WP-Activity«
- Click Install Now under « WP-Activity«
Setting plugin :
- Go to
Wp-Activity > Settingsfor plugin options.
For security use :
- Activate Login failures log.
- Set blacklist options.
For frontend use :
<?php act_stream() ?>where you want the stream to be displayed, or use included widget.
to display activity in a page or post. See FAQ section for parameters.
Q. How do I enable the user last logon on author or index page ?
<?php act_last_connect($author) ?> in author.php template, or
<?php act_last_connect() ?> in index page.
If you only want to display the last login date without any text, use
<?php act_last_connect($author, 'no_text') ?>.
Q. How do I add user activity on it’s author page ?
<?php act_stream_user($author) ?> in author.php template
Q. How do I set the events number or the title when not using the widget ?
A. this function accepts two parameters :
<?php act_stream(number,title) ?>
defaults are :
- number = 30
- title = Recent Activity (translated by .mo)
Q. Shortcode use
defaults are :
- number = no limit
- title = Recent Activity (translated by .mo)
Q. I blacklisted my own IP address, or I can’t login anymore since I activated the blacklisting !
A. Just rename or delete the wp-activity directory in wp-content/plugins/, and you should be able to access to your blog.
Q. The Blacklist tab is disabled in admin panel
A. Before settings blacklist options, you need to activate logon failures log (in the previous tab).
Q. How do I avoid erasing css tweaks when I update the plugin ?
A. Just put a copy of wp-activity.css in your theme dir, it will be processed instead of the css file included with the plugin.
Q. How do I display all activity ?
A. You must specify « -1″ in number parameter. All activity stored in database will be returned.
Q. How do I change author page links ?
A. Change the value in the plugin administration, under display options tab.
Q. How do I Change the events generic icons ?
A. Just change the icons in the /img directory, but keep the event name (example : to change the login/connect event icon, change the icon named CONNECT.png – names must be in capitals). If events don’t have related icons, you can add it by naming an icon from the event name. I used Fugue Icons – shadowless version for generic icons.
Q. I added a post and changed the author, and the activity logs have changed too. How could I disable this ?
A. You will have to edit wp-activity.php, check line 32 and set
$strict_logs to true.
= How can I change the search field filter in admin activity log by the user list ?
You will have to edit wp-activity.php and change the value for the
$act_user_filter_max var (near line 33).
Q. I exported data to a csv file but there are ugly characters in MS Excel !
A. This is a known excel bug : when you open a .csv file in Excel, it forces the use of the local encoding set (WINDOWS-1252 for French) and not UTF-8. To avoid this, you will have to rename the file extension from .csv to .txt, open Excel, do File/Open and open the wp-activity.txt. The csv import assistant will now launch, allowing you to set the encoding to UTF-8.
Q. I would like to display more or less than 50 lines per page in admin panel of wp_activity
A. You have to modify the
$act_list_limit var line 31 of wp-activity.php.
Q. I don’t need the last login column in user list or I don’t need the last login failures in admin panel
A. You have to modify the
$no_admin_mess var line 33 of wp-activity.php and set it to true.
Q. I use custom posts, and the activity related to them is not logged !
A. Unless custom posts are not processed by WordPress the same way as regular posts, I can’t track custom posts changes (or I don’t know how).
Q. I have a poor hosting, is your plugin a big fat resources consumer ?
A. I also have a poor hosting, so I try to keep my plugin as light as I can ; the admin scripts and css files are only loaded when needed.
Best-Performance tips :
- Don’t use Gravatars as they generate more sql queries and are slower to display.
- If you don’t use frontend login form, check the ‘blacklist on wp-login.php only’ option. If you want to blacklist an IP address on all your blog, use htaccess filtering instead.
- Don’t activate activity RSS feed.
- Unckeck the events you don’t want to monitor.
Q. Do you really test your plugin before publishing new versions at the WordPress Plugin Repository ?
A. Hum. I’m testing it on two WordPress installations (local WAMP and online test site), and I send my beta versions to my favorite tester. But even with that, some bugs stay present. That’s why there is often updates that just fix the previous ones… Sorry for that.
If you want to be sure it’s debugged, you can wait a few days for a x.x.1 version release.
- Added auto-refresh for activity displayed on frontend (with AJAX).
- Added compatibility with WordPress 3.5 (no more warning in admin panel)
- Added partial Russian translation (Thx to Semyon Nikiforov)
- Added Swedish translation (Thx to Per Söderman)
- Various Tweaks
- Stats graph now displays localized dates (Thx to Per Söderman).
- Fixed bug with stats display.
- Fixed bug with translation string.
- Updated Dutch translation by Venntom.
- Fixed bug with event display.
- Fixed bug with UTC+0 timezone .
- Added new events types logging : new users, comments edits, comments deletions (not spam comments), posts deletions (real deletions, not trashed posts).
- Added a search field for filtering by data in admin activity log (to search for IP addresses, posts, etc.).
- Added partial Romanian translation (for version 1.7, not up-to-date !) by Web Geeks.
- When there is more than 25 users, the user filter is now displayed with a search field (with autocomplete) instead of the users list for better performance/readability.
- In frontend display, a default icon is now displayed if the event has no icon associated.
- Changed the way modified post events are monitored.
- Changed, added and deleted a few translation strings.
- Changed minimum user capability to access plugin in admin panel from ‘publish_post’ to ‘administrator’.
- Various Tweaks.
- When a post or a comment is deleted, the post and comments related events are updated (the title of the deleted post is saved instead of post id).
- Fixed a possible bug with dates timezones. This could mess a little your previous logged events dates (Thx to Elmoonfire ).
- Fixed ACCESS_DENIED events that are no more displayed in frontend.
- Fixed possible wrong url path to users profiles in RSS feed.
- Fixed bug with blacklist tab who stay disabled unless you uncheck/check again the logon failures logging option.
- Updated Dutch Translation By Venntom.
- Added auto-blacklisting of IP addresses after a configurable number of failed logon attempts in the last 2 days.
- Added compatibility with Better-WP-Security plugin (false failed logon events when log in).
- Added logging of IP Address in successful login events.
- Added widget width setting (was previously set in wp-activity css file – default to 350px).
- You will be now redirected to the previously selected tab when reloading settings page (at the cost of a small js file load).
- User filter and LOGIN_FAILED filter combination is now possible.
- Changed Activity RSS feed for better integration with WordPress RSS Feeds and permalinks.
- Blacklist tab is now disabled when Logon failures log is not enabled.
- Fixed Activity RSS feed missing user names.
- Fixed daily cron task.
- Fixed exported data deletion.
- Fixed bad link in plugins list additions for wp-activity (settings/uninstall).
- Fixed bug with the logon log function.
- Fixed php bug where numbers were possibly displayed as scientific notation with a comma, totally messing up js code and preventing stats chart to display.
- Stats chart will now display under IE 7 & 8 (missing compatibility js file).
- Added blacklisting of IP addresses.
- Added dutch translation (Thx to Tom Vennekens).
- Admin and export functions are only loaded when needed (separate php files).
- Tweaked Cron task activation.
- Changed the display of settings page to look more like ‘standard’ admin WP.
- Replaced a few translation strings, sorry for translaters.
- Fixed Logon events who where only added when entering credentials since v1.6. Authentification with cookie (‘remember me’ option) will now generate a login event.
- Fixed deletion of old activity (cron task).
- Fixed csv file generation bug for IE.
- Fixed missing datepicker js script when using wordpress prior to 3.3.
- Fixed pages navigation links
- Added Logging of IP Address when a logon failure occurs.
- Added Activity stats.
- Added a few css rules to wp-activity.css (custom css files must be updated).
- Changed plugin menus (Wp-Activity has now it’s own menu).
- Changed CONNECT events tracking, should be less disturbed by plugins that deals with WordPress login.
- Fixed csv file generation (bug with url rewriting).
- Fixed (again) empty Last login column in user list when using User Access Manager plugin.
- Fixed login failures bad link in right now widget.
- Added current rows count in db next to the max rows value setting.
- Added export to csv file – filters and ordering are also processed to exported data.
- Added filtering by user in admin activity list.
- Tweaks and optimizations.
- Fixed missing profile field to allow user privacy.
- Fixed double login events when using a plugin dealing with WP login.
- Fixed « last connect » empty data values when using a plugin that deals with WP admin panel users list.
- Fixed a bug in multisites environment where queries to the users table where wrong (bad prefix).
- Fixed a bug where spam comments were written in activity table (but not displayed).
- Added a ‘Last Login’ column in WP-Admin user list page.
- Added an option to change the author page links when your permalink structure for authors is not ‘author’.
- Added a widget to display to a logged user its own activity.
- Fixed a css conflit when using jquery.tabs in another plugin (Thx to Cscean – http://cscean.es/)
- Added Spanish Translation (Thx to Cscean – http://cscean.es/)
- If two login events occur within a minute, only the first of them is displayed in frontend (double login events reported with facebook login).
- Corrected another bug with dates (Thx to Royzzz – http://www.roypoots.nl).
- Security check removed as it causes fatal error.
- Added logon fails count since last administrator login on « Right Now » admin panel widget.
- More privileges security added.
- Corrected a bug with relatives dates.
- Fixed bad posts links in admin and RSS logs (Thx again to Mario_7).
- Fixed stupids « n » displayed in plugin admin.
- Added links in wordpress plugin lists to configure or uninstall WP-Activity.
- Fixed a misplaced div closing tag (Thx to Mario_7).
- Added Turkish translation (Thx to Can KAYA – http://www.kartaca.com)
- Fixed RSS feed (it has probably never worked outside of my wordpress test site).
- Admin can now prevent users to deny logging of their activity.
- Activity list in admin panel has now the same ergonomy as the standard wp admin lists (with pagination, filtering and ordering).
- Login failures can now be logged.
- Reset/uninstall tab
- User activity can now be displayed on author page
- If the author of a post has been changed, the plugin will change it in activity logs too. See FAQ for more details.
- Fixed a XSS vulnerability (Thx again to Julio – http://www.boiteaweb.fr)
- Admin panel improved
- Activity archive link in frontend
- improved shortcode – now with parameters.
- possible use of an alternate css file in theme directory – avoid erasing css tweaks with plugin updates.
- Use of a cookie instead of a session var.
- Fixed a CSRF vulnerability (Thx to Julio – http://www.boiteaweb.fr)
- Bug fix that prevented activity to be displayed in frontend.
- Added shortcode to display activity on a page or post.
- New activity can be highlighted since last user login (in fact old activity is greyed out)
- Bug fix with a possibly shared var name (thx to Stephane)
- Bug fix with cron settings for deleting old activity
- Bug fix when auto-delete old activity (activity limit)
- User last logon can now be displayed on author page
- admin panel tweaked
- Plugin now support gravatars for connect and profile edit events. Generic icons can also be used.
- Activity stream display tweaked.
- Added setting for using relatives dates
- Activity is now displayed in the admin plugin page (backend)
- Post Add/Edit events are now correctly logged
- Comments and posts adds are now correctly logged
- Post creation/edition separated
- Add link event added (only public links)
- Users can hide their activity from profile
- RSS feed added
- Big bug (introduced in 0.3) squeezed
- Less SQL queries
- Admin can choose events types to log
- Plugin internationalization
- widget enabled
- First release