View Full Version : Forum Home Enhancements - Member Visit Tracking
Paul M
01-08-2009, 10:00 PM
As of 24 Nov 2017 this modification has been withdrawn.
This tracks the number of members that have visited the forum each day, and displays a list in the same manner as the "Who has visited (https://vborg.vbsupport.ru/showthread.php?t=196458)" modification. However, this also tracks a lot more data, such as the script (and request variables) run on their last visit, and all threads and forums visited.
Note that installing this will automatically remove the "Members Who Have Visited Today" modification.
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 members can be set to be always collapsed on initial view.
* The script that the member is running is logged (e.g. showthread, usercp etc).
* The request variables in use are logged (e.g. threadid, userid etc).
* The member visits table can be cleaned of old records to help control it's size.
* Controls for the automatic template update system.
* Member Views data collection - tracking each members viewing of the forum index page, forums and threads.
* Member Views data collection can be separately disabled.
* Multiple member visits to the same page are logged separately.
* Clicking on a member in the main display will show that members viewing data (if enabled, and you have permission).
* Usergroup permissions are done with the standard vbulleten usergroup permissions system.
* Clicking on the "Total members that have visited" line will list all members who have visited and their last action.
* The option to keep a record of [and display] the most ever members can be enabled.
Four new usergroup permissions are provided in the usergroup manager.
* Can View the Members Visited Display - Members can view the members visited display on Forumhome.
* Can View Member IP Addresses - Members can see the ip addresses of visiting members.
* Can View Member Visits List - Members can view the list of member visits page.
* Can View Member Tracking Data - Members can view the individual member visit tracking page.
* All (non usergroup) modification settings are in vBulletin Options > Member Tracking.
To install;
Unzip the XML files.
Upload the bitfields file to your ../includes/xml folder.
Import the product into vBulletin 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.
Template Hook
Please note that this modification uses the following template hook in the FORUMHOME template ;
forumhome_wgo_pos2
This must be present in any customised template/style you are using, otherwise this modification will not display.
History:
v3.8.001 : Initial vb 3.8 release.
v3.8.002 : Fix install code SQL error.
v3.8.003 : Fix column title bug in memberlist display.
v3.8.004 : Fix bug in attachment viewing links.
Bounce
01-09-2009, 07:40 PM
Get this error when installing..
Database error in vBulletin 3.8.0:
Invalid SQL:
CREATE TABLE membervisits
(
userid int(10) unsigned NOT NULL default '',
ipaddress varchar(15) NOT NULL default '',
useragent varchar(100) NOT NULL default '',
dateline int(10) unsigned NOT NULL default 0,
script varchar(20) NOT NULL default '',
rdata text NOT NULL,
PRIMARY KEY (userid),
KEY ipaddress (ipaddress),
KEY dateline (dateline)
);
MySQL Error : Invalid default value for 'userid'
Error Number : 1067
Request Date : Friday, January 9th 2009 @ 09:39:14 PM
Error Date : Friday, January 9th 2009 @ 09:39:14 PM
SnowBot
01-09-2009, 07:49 PM
Waiting on an update Mr P :)
SuperDave71
01-09-2009, 07:54 PM
I am also waiting on the update...
And a screenshot would be helpful as well.
Always enjoy your work Paul. Keep it up!!
-Dave :D
KEKforce
01-09-2009, 07:56 PM
same error here
ecihanuysal
01-09-2009, 08:21 PM
same error and waiting..
-=Leb=-
01-09-2009, 10:00 PM
Sweet paul , i was waiting for it :).
Hey guys i just uploaded it and didn't get any error and its working fine in my forum:S
ecihanuysal
01-09-2009, 10:56 PM
Problem is still continuing. Here is the image..
http://img395.imageshack.us/img395/8286/adszwd2.jpg
-=Leb=-
01-10-2009, 08:21 AM
If i'm not mistaken, make sure you update your templates. Go to admin cp, then styles and templates, then hit find updated templates.
Anyway, paul will give you the final answer.
Bounce
01-10-2009, 10:00 AM
If i'm not mistaken, make sure you update your templates. Go to admin cp, then styles and templates, then hit find updated templates.
The style I am trying to install it too IS up to date :up:
KEKforce
01-10-2009, 10:10 AM
Also here!
Paul M
01-10-2009, 11:57 AM
Try it now (3.8.002)
ecihanuysal
01-10-2009, 02:36 PM
tnx for the solution Paul !
Installed..
abroad
01-10-2009, 07:01 PM
and where can I see the collected data of a user?
Bounce
01-10-2009, 07:37 PM
and where can I see the collected data of a user?
You need to turn it on for each you usergroup you want to see it and it displays in the What's Going On section..
Total members that have visited the forum in the last 24 hours:
You can set various options in VBOptions > Member Tracking
To get more info simply click on the username in the stats section, brilliant!
Thanks Paul for the fixed product,installed and working a treat :up:
anuanu
01-11-2009, 03:42 PM
Im running 3.8.0 RC2 and i get this error:
"The following dependencies were not met:
1. This product is not compatible with version 3.8.0 Release Candidate 2 of vBulletin. (Compatible starting with 3.8.0 / Incompatible with 3.8.99 and greater)"
KEKforce
01-11-2009, 03:51 PM
Why not upgrade to 3.8.0 ??? (gold)
anuanu
01-11-2009, 04:49 PM
Didnt realize they were past RC2, Ill download it and try it again.
anuanu
01-11-2009, 05:24 PM
Yep, upgrading seemed to work :) Thank you
digicom
01-12-2009, 12:06 AM
Thanks Installed n Working :up:
frosch68
01-15-2009, 12:03 PM
great hack :up:
Is it possible to do this in a VbAcmps-module as the "who is visited" hack ? that were great.. :rolleyes:
Thanks a lot...
Paul M
01-15-2009, 02:17 PM
Sorry, I cannot help with 3rd party mods.
DjEddie
01-15-2009, 02:39 PM
$template_hook[forumhome_wgo_pos2]
How do you change the positioning on the above hook. Since I installed this the members list has moved below another mod that is attached to this hook.
Paul M
01-15-2009, 04:46 PM
You cant, unless you start playing with execution orders and possibly hooks.
Mark.B
01-15-2009, 08:41 PM
Thanks Paul for this modification, it's great.
One observation: titles seem to show up funny when viewing an individual member, the title bar shows the html for the link to the user's profile.
<title>Member : <a href='member.php?userid=2674'>scrotnig</a> : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 - BC Forums</title>
morrow
01-15-2009, 08:46 PM
I'm surprised nobody asked for a screenshot yet... How bout it?
Paul M
01-16-2009, 07:13 AM
Thanks Paul for this modification, it's great.
One observation: titles seem to show up funny when viewing an individual member, the title bar shows the html for the link to the user's profile.
<title>Member : <a href='member.php?userid=2674'>scrotnig</a> : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 - BC Forums</title>
So it does, i'll look into that when I have a few moments.
-=Leb=-
01-16-2009, 10:35 PM
hi Paul, i'm getting database error afterwhen i updated member visit . Would you plz check the problem?
Thank You
Jonas
Database error in vBulletin 3.8.0:
Invalid SQL:
SELECT * FROM membervisits AS membervisits FORCE INDEX (dateline)
INNER JOIN user AS user USING (userid)
WHERE membervisits.dateline > 1232065944 ORDER BY username;
MySQL Error : Got error 28 from storage engine
Error Number : 1030
Request Date : Friday, January 16th 2009 @ 05:32:24 PM
Error Date : Friday, January 16th 2009 @ 05:32:25 PM
Script : http://www.firewallcs.net/forums/
Referrer :
IP Address : 213.1
Username : -=Leb=-
Classname : vb_database
MySQL Version : 5.0.67-log
-=Leb=-
01-16-2009, 10:46 PM
I turned it off now and the forum is back up
SnowBot
01-17-2009, 04:56 AM
Thanks for the update Paul
frosch68
01-17-2009, 07:02 AM
Sorry, I cannot help with 3rd party mods.
Doesn't matter, Paul. Thanks for your response
Paul M
01-17-2009, 10:33 AM
hi Paul, i'm getting database error afterwhen i updated member visit . Would you plz check the problem?
Thank You
Jonas
Database error in vBulletin 3.8.0:
MySQL Error : Got error 28 from storage engine
Error code 28: No space left on device
This is a problem with your server, mysql is running out of space.
jazde86
01-20-2009, 02:28 PM
Hi Paul,
can you let me know the variable of this Add-on to put the infobar on other pages, like a vBa module? The code from the Who have visited today doesn't work anymore.
Thanks.
Paul M
01-20-2009, 02:48 PM
This will only work on the forumhome page.
Sunka
01-21-2009, 06:04 AM
The member visits table can be cleaned of old records to help control it's size.
How to do that?
Paul M
01-21-2009, 11:54 AM
Its a setting in the mod options.
Rottimom
02-08-2009, 04:34 PM
Hello
I have a problem.
I would like a tracking member in a different place than it appears by default the case.
Red where it is displayed, the arrow is where I would be happy.
Change I $template_hook[\'forumhome_wgo_pos2 in $template_hook[\'forumhome_wgo_pos1 it is too far above.
How can I get it exactly at the point where I can show it would have been happy?
Before the upgrade to vB 3.8.1 from 3.7.2, it was at this point.
Thanks
Drago912
02-27-2009, 05:12 PM
I get this error when trying to set usergroup permissions:
Fatal error: Using $this when not in object context in /home/content/A/u/s/XXXXXXXXX/html/forums/admincp/usergroup.php(335) : eval()'d code on line 1
any ideas?
Paul M
02-27-2009, 08:35 PM
That is an error on the admin_usergroup_save hook (which is not used by this mod) - so some other product is broken.
Drago912
02-28-2009, 03:17 AM
cool....thanks, found the problem product. However, I dont know where you see all this ifo at? Im also confused as to the hook you mention that needs to be in any custom template??
Drago912
03-02-2009, 04:42 PM
ummm........still waiting on some help here. I cant see the mod and dont understand the template issue. I'm sure I clicked "installed"
sqzdog
03-03-2009, 10:32 PM
I don't understand the "forumhook" part when installing this. What I am I supposed to do here?
Paul M
03-04-2009, 07:14 AM
You dont do anything unless you have a customised Forumhome - the hook is part of the default vbulletin template.
MindStar
03-20-2009, 11:21 AM
Hi excellent Mod, couple of suggestions for improving it...
Only show the link for detailed Member Tracking reports to users who have permission to see the link, i.e. rather than having a link that leads to a "permission denied" screen, omit the link.
Re-Order the permissions in the UserGroup screen so it is clear which permissions depend on others, i.e. the view IP addresses and Tracking Data options are irrelevant if users cannot see the Member Visits List.Nominated! :)
Paul M
03-20-2009, 01:46 PM
Thanks,
1. That cannot be done atm due to how they work, so they will remain as they are until I have time to convert them.
2. I suppose I could do this, but its not worth updating the mod just for that.
Kills
03-23-2009, 09:37 AM
running 3.8.1 ..no problems here... Thanks Paul
Makc666
08-20-2009, 11:52 AM
When you visit the page:
https://vborg.vbsupport.ru/misc.php?do=memberlist
There is a column named "User Name".
The name of that column is a URL
https://vborg.vbsupport.ru/member.php?userid=
Screenshot:
103446
I see a fix for this one:
1.
Add the phrase:
<phrase name="trm_username" date="1191000001" username="Paul M" version="3.8.002"><![CDATA[<a href='member.php?userid={1}'>{2}</a>]]></phrase>
2.
Find the code:
<td class='alt$altclass'>
<a href='member.php?userid=$memberlist[userid]'>$memberlist[user]</a>
</td>
Replace it with:
<td class='alt$altclass'>
$memberlist[user]
</td>
3.
Find the code:
$memberlist['user'] = $username[$memberlist['userid']];
Replace it with:
$memberlist['user'] = construct_phrase($vbphrase['trm_username'],$memberlist[userid],$username[$memberlist['userid']]);
And all works fine then ;)
Paul M
08-20-2009, 02:58 PM
Yep, agreed, its minor but does need fixing. :)
MarkoP
08-22-2009, 01:06 AM
Anyone have any idea why it shows so many members on this:
Called with DO = 'securitytoken'
Instead of being on a page it shows that...
Thanks!
oldlock
08-23-2009, 08:41 AM
Is it possible to store the login info long term ? I have a forum that is subscriber access and the admins would like to be able to view a members login IP over time to see if wildly different ones are being used and if the timeframe the information is accessible for could be changed this might be a way to do it ?
Paul M
08-23-2009, 09:50 AM
Anything is possible if you write the code, however, is it stands, you cannot do what you ask unless you keep all the information collected (which would create some huge tables).
rule0
08-28-2009, 02:23 AM
This is awesome!! Thank you for sharing this.
SnowBot
09-01-2009, 11:40 PM
Hi
Is their a way to remove the browser info?
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1 BLAH BLAH BLAH bit :) cheers
Paul M
09-02-2009, 09:17 AM
Remove it from where ?
SnowBot
09-02-2009, 12:52 PM
When you click on one of the usernames it shows you their history, where they have been and what theyhave done :) Well on that page it shows you all the browser info also.
Paul M
09-02-2009, 01:46 PM
Any particular reason you want to remove that ?
Its part of the "trm_memberview" phrase, edit that to remove it.
SnowBot
09-02-2009, 03:29 PM
Hi Paul, its just not something my Mods need or have a use for thats all.
FOUND it, THANKS!
Changed to
{1} : <a href='member.php?userid={4}'>{3}</a>
TheChaosFactor
09-26-2009, 11:57 AM
Very useful. Thank you.
Silencer Groans
10-06-2009, 02:10 PM
Very nice
The installation operation was
Facility in Arabic for those who want
linuxututs
10-15-2009, 10:19 PM
When you visit the page:
https://vborg.vbsupport.ru/misc.php?do=memberlist
There is a column named "User Name".
The name of that column is a URL
https://vborg.vbsupport.ru/member.php?userid=
Screenshot:
103446
I see a fix for this one:
1.
Add the phrase:
<phrase name="trm_username" date="1191000001" username="Paul M" version="3.8.002"><![CDATA[<a href='member.php?userid={1}'>{2}</a>]]></phrase>
2.
Find the code:
<td class='alt$altclass'>
<a href='member.php?userid=$memberlist[userid]'>$memberlist[user]</a>
</td>
Replace it with:
<td class='alt$altclass'>
$memberlist[user]
</td>
3.
Find the code:
$memberlist['user'] = $username[$memberlist['userid']];
Replace it with:
$memberlist['user'] = construct_phrase($vbphrase['trm_username'],$memberlist[userid],$username[$memberlist['userid']]);
And all works fine then ;)
Mine seems to working fine, but if these edits are correct , please do tell where to edit these edits.
And thank you, and Thanks for the Mod also.
Thanks,
segwayon
10-16-2009, 04:52 AM
If I already have the "Members who have visited today (https://vborg.vbsupport.ru/showthread.php?t=196458)" mod, can I install this one, too? Should I first uninstall that one to get the more features of this one?
Update: Wow, there was my answer on paragraph 1! Thanks Paul! [embarrassed] . . .
Paul M
10-16-2009, 09:46 AM
Perhaps you should read the main post ;)
Note that installing this will automatically remove the "Members Who Have Visited Today" modification.
segwayon
10-16-2009, 12:29 PM
Paul,
I don't see the member tracking options within the Usergroup Manager, but the general options are under the VBOptions list. Am I looking for 4 new options within an existing header? Or should they be contained within a new 'Member Tracking' header?
Paul M
10-16-2009, 01:11 PM
Sorry, Im not sure what your asking. What exactly are you looking for ?
segwayon
10-16-2009, 06:09 PM
Sorry, Im not sure what your asking. What exactly are you looking for ?
I'm looking for the viewing permissions within the UserGroup Manager. There I can see your 'Guest Tracking Permissions' options listed but not this new 'Member Tracking' options. I also tried to uninstall this mod and reinstall it but there's still no options for usergroups to view the member tracking page or the new tracking data on forumhome's 'whats going on' area.
Paul M
10-16-2009, 06:58 PM
The you probably havent uploaded the bitfield file to the correct place.
segwayon
10-17-2009, 12:29 AM
The you probably havent uploaded the bitfield file to the correct place.
Yes, that was it. I saw the "/includes/" folder in the instructions but not the "/xml/". Thanks again, Paul!
oldlock
10-18-2009, 11:00 PM
I've just installed this on a new site running 3.8.4 PL1 and it's not working . Odd, I have it working fine on other sites that have been upgraded to 3.8.4 PL1 .. (note they were upgraded with the patch files)
The sites are running the same mods too, which would seem to discount a conflict with other mods but point towards a conflict of some kind with the PL1 ???
Paul M
10-19-2009, 08:43 AM
PL1 has zero effect on this (or any modification I would think).
Most likely the style you are using is missing the template hook.
VonDoom
10-19-2009, 09:45 AM
Great Mod Paul, But im wondering if you might have any idea why it would show in every instance except one "Viewing Home Page"? Ive been all over my forum in testing this and the home page (vBadvanced) was not one of the pages i was ever on. However that the only place it says ive been.
Paul M
10-19-2009, 11:26 AM
Home is actually the Forum Home, not vbadvanced.
Since I have no idea how vba works, maybe its interferring somehow.
oldlock
10-19-2009, 12:11 PM
PL1 has zero effect on this (or any modification I would think).
Most likely the style you are using is missing the template hook.
Seems to be there ?
105459
oldlock
10-19-2009, 12:13 PM
PS. Does'nt seem to be working in the default style either ...
Any pointers as to what else could be wrong ?
oldlock
10-19-2009, 12:59 PM
I found out what was wrong, my brain ! Or rather lack of it. Seeing that I have this great mod working on other sites one would assume that I could remember how to use it ! (Doh).
All working fine now.
Thanks
VonDoom
10-19-2009, 01:45 PM
Thanks Paul, Everything seems to have straightened itself out overnight.
Jeweetog
12-14-2009, 07:50 PM
Hi Paul,
Got a quick question, can you modify this mod to have it a tab next to 'statistics' in the member's profile to show their tracked data in?
Thanks in advance!
Paul M
12-14-2009, 10:43 PM
I think thats unlikely, but I wont completely dismiss it atm.
(It certainly wont happen in any 3.x version).
Gero50
12-17-2009, 04:05 AM
Installed great no errors as of yet for me though I will report any I find.
Lolli
06-09-2010, 10:49 AM
Is possible to tracking this: "send pm", "reply to", etc, in misc.php?do=memberview&member=xxx
sinpin
07-04-2010, 06:24 AM
Dear Paul,
Thanks for your always great mods,
I installed this one but I have a little problem here,
It seems this mod conflicts with Members who have visited today (https://vborg.vbsupport.ru/showthread.php?t=196458) and I can't install and use both of them concurrently.
Yours sincerely
Paul M
07-04-2010, 11:53 AM
Correct, one replaces the other, as the big brown message says :)
sinpin
07-05-2010, 07:07 AM
Correct, one replaces the other, as the big brown message says :)
So, what's the solution buddy?
Paul M
07-05-2010, 09:19 AM
There is no solution, its by design. This is a replacement for WVT.
darkie79
07-06-2010, 12:18 PM
Paul,
One particular member is receiving a db error on login, see below please:
Database error in vBulletin 3.8.4:
Invalid SQL:
REPLACE INTO bb_membervisits
(userid, ipaddress, useragent, dateline, script, rdata)
VALUES
(14868, '*removed*', 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.10) Gecko/20100504 Firefox/3.5.10', 1277847284, 'adv_index', 'a:6:{s:1:\"s\";s:0:\"\";s:6:\"postid\";i:0;s:8:\"threadid\";i:0;s:7:\"forumid\" ;i:0;s:6:\"pollid\";i:0;s:1:\"a\";s:0:\"\";}');
MySQL Error : Duplicate entry '14868' for key 1
Error Number : 1062
Request Date : Tuesday, June 29th 2010 @ 05:34:44 PM
Error Date : Tuesday, June 29th 2010 @ 05:34:44 PM
Script : *url removed*/forums/index2.php
Referrer :
IP Address : *removed*
Username : *removed*
Classname : vB_Database
MySQL Version :
PS. Does'nt seem to be working in the default style either ...
Any pointers as to what else could be wrong ?
Nothing has appeared in my footer (I am using default skin), does anyone has screenshot how this mod works ? Shall I expect an additional line item as in who has visited today ?
Paul M
07-06-2010, 06:33 PM
Paul,
One particular member is receiving a db error on login, see below please:
That shouldn't be possible in mysql, I would suggest you run a repair on the table.
troybtj
07-10-2010, 03:35 AM
Will there be a version of this for 4.x?
I'm holding off on upgrading until my favorite mods are available.
Paul M
07-10-2010, 10:30 AM
It was released over six months ago. Just look in the 4.x section of my profile.
Cybershaolin
01-14-2011, 06:25 PM
Great hack but one big problem. Although invisible users do not show on the forumhome list, it shows them when you click to see the detailed list. Not useful for an admin who would like to remain invisible to evrybody (including moderators) when you want your moderators to access this list.
Paul M
01-14-2011, 08:09 PM
Yes.
That was corrected in the vb4 release, but remains in the older 3.8 version.
Cybershaolin
01-15-2011, 08:04 PM
Hi Paul,
Thanks for the quick answer. Would it be possible for you to tell me how to fix it for 3.8 version as I did not move on 4.X? This would be really appreciated. I could fix it myself with some instructions if it's not too hard.
Paul M
01-15-2011, 09:48 PM
Its not that simple - it needs a set of extra code adding.
Cybershaolin
01-16-2011, 12:22 AM
I see, well, as I don't plan to upgrade to 4.X, I guess I'm gonna have to live with it. Anyhow, thanks for your great hacks and if the envy comes to you to find a way about this little problem, I would be really glad for sure.
DigitalCop
03-02-2011, 10:09 AM
Excellent MOD!!! Exactly what I have been searching for!
edytwinky
04-28-2011, 12:43 AM
Is there a way to change the 24 hour period to 48 hours?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.