Plugin VR-visitas

Actual version: VR-Visitas 3.0.3
(Updated on SEP/17/2011)

Discontinued plugin

Versión 3.0.x (02/28/2017)

This plugin has been removed and is no longer updated.
Many thanks to all who have helped me, and I have been given support throughout the time that the plugin has been kept active.

Operation & Instructions of use

This plugin allows you to keep track of visits to your page and display the counter of visits and other data on your pages. You can filter the results by controlling the time, IP address and that visits you consider trash.

To get data from users, this plugin uses some external resources:

  • If the function get_browser() is not active in your server, uses a call to user defined function get_browser_local() developed by Alexandre Alapetite that uses a local browscap.ini included as a library with this plugin.
    You can get an updated version of this library in: browscap.ini.
  • To display Country stats, you need to install the ip2nation data on your database, if not installed the report for Country stats remain inactive.
    You can download the mySql data from ip2nation.
  • If install ip2nation, may be you want to install the files to display country flags.
    You can download it from myself and copy the folder /flags/ into your /wp-content/ directory.

Once activated the plugin, 4 new tables are added to your database in order to register all visits and keys to manage these hits.

In main Settings menu you can access to settings page for VR-visitas. Each option have been explained on this page.

In the menu page VR-Visitas you have the next options:

  • Last entries:
    Display a report of last entries in your database (visits). You have options to paginate the output that includes the date, IP address, referer, browser and operating system.
  • Manage keys:
    In this page you can add or delete keywords and IPs to filter the trash entries of the database. You can add words to filter out unwanted references, browsers (robots) and IP addresses.
  • Clean database:
    On click, the database is cleaned based in the keywords that you defined above.
  • Stats overview:
    Shows several reports of the inputs: Browser, OS, IP Address, Referrer, Host, and country of the visitor, according to what you defined in the configuration page. It shows a graph comparing the 3, 5 or top 10 of each statistic.

To activate the counter is mandatory to include a call to function in your template, so you must use one of the next options:

  1. Add the widget to your sidebar, but, if the sidebar are not displayed on all pages, the visits for users that access directly to these pages, aren’t included in database.
  2. -or- Insert the function call directly in your page footer. You have an option in settings page to do this.
  3. -or- Manually add the next PHP code to your template. Make sure that this part of your template displays in all pages.
VERY IMPORTANT! Only one of these options may be active. Otherwise the function page counter, duplicates the number of page views.

Code to add:

     if ( function_exists( 'vr_visitas_user_display' ) ) {  

You can view a sample of output in the settings page. Many options to manage the output mode are included.

This function accepts 3 arguments ( $before, $separate, $after ) in order to pass html tags and personalize display. Sample:

vr_visitas_user_display( '<ul><li>', '</li><li>' '</li></ul>' );

This call displays an unordered list of elements like you can view in VR-visitas widget.

Installation & Upgrade

New install:

  1. Upload the folder /vr-visitas/ to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Update settings (link: Settings / Activate / Delete).


  1. Deactivate the plugin.
  2. Delete all old files and folders.
  3. Upload the folder /vr-visitas/ to the /wp-content/plugins/ directory.
  4. Activate the plugin through the Plugins menu in WordPress.
  5. Update settings (link: Settings / Activate / Delete).

Highlights upgrading from previous versions:

  • The old tables are renamed and updated, keeping data, however it is recommended to make a backup of the database before updating the plugin.
  • Some options are new or have been changed, and perhaps the old data don’t work exactly like before. Please, go to settings page and makes changes on those that needed.

Deja un comentario

Este sitio usa Akismet para reducir el spam. Aprende cómo se procesan los datos de tus comentarios.