Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
Track Guest Visits Details »»
Track Guest Visits
Version: 1.22, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.x Rating:
Released: 11-11-2006 Last Update: 10-04-2007 Installs: 1249
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

This modification is no longer available or supported.

Something that has been repeatedly asked in the "Members who visited today" modifications (all versions) is a similar way to track the number of guests that have visited a forum each day. This isn't possible in stock vbulletin as no record is kept of guest visits, they are a 'realtime' display only. I've therefore finally got round to looking at the issue and produced this modification.

This will add (another) section to the "What's Going On" area. The data is kept in a new table so it should be possible for other uses to be made of it (or display it in other ways). A screenshot of the current display is attached.

Options / Features ;

* The ability to turn it on/off.
* The ability to turn just the display on/off.
* The ability to allow (or prevent) certain usergroups viewing the display.
* The ability to run the display code on all pages (not just forumhome).
* The ability to switch between 'Today' and Rolling 24 Hours display (default).
* The list of guests can be set to be always collapsed on initial view.

* The script that the Guest is running is logged (e.g. showthread, usercp etc).
* The request variables in use are logged (e.g. threadid, userid etc).
* The guest table can be cleaned of old records to help control it's size.
* Controls for the displays automatic template update.
* The datastore read (for spider detection) will read from the File/APC/Memcache/Xcache datastore [if used].

Version 1.19+

* Guest Views data collection - tracking each guests viewing of the forum index page, forums and threads.
* Guest Views data collection can be separately disabled.
* Multiple guest visits to the same page are logged separately.
* Clicking on a Guest type in the main display will list all recent visits by guests of that type.
* Clicking on the option in the guest listing will show that guests viewing data (if enabled).
* Usergroup permissions are now done with the standard vbulleten usergroup permissions system.

Four new usergroup permissions are provided in the usergroup manager.

* Can View the Guests Visited Display - Members can view the guests visited display on Forumhome.
* Can View Guest IP Addresses - Members can see the ip addresses of visiting guests.
* Can View Guest Visits List - Members can view the list of guest visits page.
* Can View Guest Tracking Data - Members can view the individual guest visit tracking page.


Version 1.22+

The option to keep a record of [and display] the most ever guests has been added - this used to be provided by a seperate add-on product.


* All (non usergroup) modification settings are in vBulletin Options > Guest Tracking.

To install ;
  • Unzip the XML files.
  • Upload the bitfields file to your ../includes/xml folder.
  • Import the product into vB using the ACP Product Manager.
  • Set your required permissions in the usergroup manager.
Note that by default no permissions are given, you must set them.

You can get an improved Spiders Definition file, that recognises many more spiders, from this post.

Note: For Spider detection to work you must set Enable Spider Display to 'Yes' in vBulletin Options > Who's Online Options.

A German translation has been provided by hurik in post #769 - (for Version 1.22).


History:

v1.00 : Internal dev version.
v1.01 : Initial vb 3.6 beta release.
v1.02 : Phrasing added, final beta version.
v1.03 : Initial full version, some new options added.
v1.04 : Fix potential variable name clash with WVT Mod.
v1.05 : More options added, script and request variable logging added.
v1.06 : Minor internal code changes, phrasing altered slightly.
v1.07 : Datastore call changed to standard fetch function.
v1.08 : Moved Datastore call due to oddities, and fixed small bug.
v1.09 : Simplified always collapsed code.
v1.10 : Datastore call moved and reverted back to db_fetch.
v1.11 : Added Spider Cache Refresh on install (limited release).
v1.12 : Unique Guest id changed from standard vb id to internally created id.
v1.13 : Changed the SQL to force MySQL to use the index on forumhome.
v1.14 : Changed install code to delete old spider cache before rebuilding it.
v1.15 : Added check to try and detect a broken spider cache and fix it.
v1.16 : Number formatting added to individual totals in display list.
v1.17 : New usergroup display options added, datastore read updated.
v1.18 : Beta for new display options - listing guests and tracking guest views.
v1.19 : First release with the new permissions and display options.
v1.20 : Minor changes to install code only.
v1.21 : Internal development version, not released.
v1.22 : Added the "Most ever guests" option.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #272  
Old 01-04-2007, 06:20 AM
testpig's Avatar
testpig testpig is offline
 
Join Date: Apr 2004
Location: Australia
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Paul. This hack still doesnt appear in my forum.

I have removed the previous version and uploaded V1.10 but absolutely nothing happens. Still using the default skin with some additional plugins installed.

Hmmmmmm,
Reply With Quote
  #273  
Old 01-04-2007, 06:27 AM
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Location: NYC
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated.

Paul, i looked at http://www.theadminzone.com/forums/ and on the Currently Active Users, it shows spiders, members and guests in the same box..

Is that a version of your mod ? I would like to add spiders to that list too. Right now, guests and spiders are shown as guests
Thanks

Edit : just found that the spiders on forumhome is https://vborg.vbsupport.ru/showthread.php?t=119134
Reply With Quote
  #274  
Old 01-04-2007, 07:26 AM
jw00dy's Avatar
jw00dy jw00dy is offline
 
Join Date: Dec 2004
Location: Utah
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Get Shorty View Post
This hack causes a problem with the "Direct Category Links" feature of vbSEO. Here is the fix:

Original code:

Code:
if    (
    $vbulletin->userinfo['userid'] == 0 
    AND $vbulletin->options['trg'] 
    AND $vbulletin->options['trgspiders']
    )
{
    define('SKIP_DEFAULTDATASTORE',true);

$vbulletin->datastore->fetch(array('wol_spiders'));
}
Changed to:

Code:
if    (
    $vbulletin->userinfo['userid'] == 0 
    AND $vbulletin->options['trg'] 
    AND $vbulletin->options['trgspiders']
    )
{
    define('SKIP_DEFAULTDATASTORE',true);
$__temp_fc = $vbulletin->forumcache;
$vbulletin->datastore->fetch(array('wol_spiders'));
$vbulletin->forumcache = $__temp_fc;
}
Credit to: Oleg Ignatiuk
Where are you putting this in the 1.10 version? Or did you implement this in 1.10 paul? I was unclear on this and I use vBSEO as well.
Reply With Quote
  #275  
Old 01-04-2007, 07:39 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jw00dy View Post
Where are you putting this in the 1.10 version? Or did you implement this in 1.10 paul? I was unclear on this and I use vBSEO as well.
That plugin does not exist in 1.10.

Quote:
Originally Posted by testpig View Post
Hi Paul. This hack still doesnt appear in my forum.

I have removed the previous version and uploaded V1.10 but absolutely nothing happens. Still using the default skin with some additional plugins installed.

Hmmmmmm,
One of those plugins must be intefering, try disabling other products one at a time until you find which one (past experience suggests it's probably one with a plugin linked to the cache_templates hook, try them first).

Quote:
Originally Posted by dj_melayu View Post
I've been using this hack since it on v1.03, and I frequently kept updating this hacks cuz its a one of the wonderful hacks! Unfortunetly, after I upgraded to v1.10, I got this error on my index.php on my vbadvanced page.
My forumhome page is on forum.php.
I have installed vbadvanced on my test forum and cannot reproduce this, so there's not much I can tell you.
Reply With Quote
  #276  
Old 01-04-2007, 07:45 AM
jw00dy's Avatar
jw00dy jw00dy is offline
 
Join Date: Dec 2004
Location: Utah
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
That plugin does not exist in 1.10.
Even better

Thanks Paul, Seriously, your work is top notch, and I appreciate it.
Reply With Quote
  #277  
Old 01-04-2007, 07:51 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cerulean View Post
I have the same error as dj_melayu and I to have vbadvanced. I had to disable the product in order to get my forum to work.

Ps. It only gives the error if a guest goes to the page but if you where previously logged in and go to it it is fine.

Any thoughts?
As above, I cannot recreate this on a test vba (2.2.1). Try turning off the "Detect Spiders" option, see if it's related to that.
Reply With Quote
  #278  
Old 01-04-2007, 01:57 PM
blogtorank's Avatar
blogtorank blogtorank is offline
 
Join Date: Jan 2006
Posts: 450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update Paul, with over 70+ hacks on a forums this is working just fine with your v1.10
Reply With Quote
  #279  
Old 01-04-2007, 02:26 PM
dj_melayu dj_melayu is offline
 
Join Date: Aug 2006
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
As above, I cannot recreate this on a test vba (2.2.1). Try turning off the "Detect Spiders" option, see if it's related to that.
Thanks..it fix when disable the spiders option..Good job! Or should I downgrade to v1.90. which version is better?
Reply With Quote
  #280  
Old 01-04-2007, 02:52 PM
snowman872 snowman872 is offline
 
Join Date: Feb 2005
Location: California
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and seems to be working. Thanks for this useful hack Paul!
Reply With Quote
  #281  
Old 01-04-2007, 05:50 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dj_melayu View Post
Thanks..it fix when disable the spiders option..Good job! Or should I downgrade to v1.90. which version is better?
Hiding the problem is never a good idea, fixing it is much better. Can you confirm that you have read and done this ;

Quote:
Note: For Spider detection to work you must set Enable Spider Display to 'Yes' in vBulletin Options > Who's Online Options and then visit your Who's Online page. This will enable vBulletin to build it's cache of spider details.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:46 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13537 seconds
  • Memory Usage 2,328KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete