PDA

View Full Version : Statistics Modifications - Cyb - Visitors in Last X Hours


Valter
04 Aug 2006, 09:59
vB 3.7 VERSION HERE:
http://www.vbulletin.org/forum/showthread.php?t=177965

===

Features:
-Show how many users (members + guests) visited forum in last x hours
-Show members listing
-Show member last activity on mouse-over
-Invisible members are shown as "Invisible" for those who has no permissions to view them
-Option to add fake guests
-Optionally usergroups legend can be shown below VILXH box
-By default all usergroups where HTML tags are filled out will be listed in legend
-You can exclude usergroups from showing in legend
-You can exclude usergroups from viewing VILXH


Installation:
1. Import XML file (as product) - AdminCP > Plugin System > Manage Products > [Add/Import Product]

2. OPTIONAL (For customized styles where VILXH is not shown automatically):
-In FORUMHOME template add "$cyb_vilxh" after:
<div>$activeusers</div>
</div>
</td>
</tr>
</tbody>


Versions:
v1.0 - Oct 02. 2005.
-Initial release
v1.5 - Apr 25. 2006.
-Known bugs fixed
-Compatibility improved
v1.6 - Apr 25. 2006.
-Compatibility improved
-New: Usergroup legend
v1.7 - Aug 04. 2006.
-Release of this hack for vB v3.6
v1.8 - Aug 05. 2006.
-Uncached template bug fixed
v1.9 - Aug 14. 2006.
-Added last activity info on mouseover (format: date, time)
-Users who have chosen to be invisible while online will be shown as "Invisible" for those who has no permissions to view invisible members
-You can customize "Invisible" phrase or replace it with some icon or something in ACP (HTML)
-Last activity info will be shown for invisible members too when you mouse over "Invisible"
v2.0 - Oct 30. 2006.
-Whole code is now valid XHTML 1.0 Transitional
-Added option to exclude usergroups from viewing VILXH box
-Added option to hide usergroups from showing in legend
-Added "Product Version Checking"
v2.1 - Sep 17. 2007.
-New: Number of guests who visited forums in last x hours
-Option to add fake guests
-Option to disable automatic placement of VILXH box on forumhome
-Last activity info shown using today/yesterday for current and previous day
-Several minor bugs fixed
-Optimized and compatibility improved
v2.2 - Sep 25. 2007.
-Only selected usergroups are shown in the Usergroup Legend
-Usergroups with no HTML tags set are still automatically excluded
-You can choose the order of the usergroups in the legend
-Fixed bug where users are not displayed using tags from their default usergroup
v2.3 - Oct 23. 2007.
-New: Option to disable guest stats
-New: Option to hide completely invisible members
-New: Cut-off member list and show all on user request via AJAX
-Minor bug fixes


Live DEMO: http://www.bihforum.com


Mark as installed to get updates and support. (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=122999)

alluidh
04 Aug 2006, 10:41
Hi

Are you able to put the output in a popup-version?

Posof
04 Aug 2006, 11:02
Very nice,


Thx

proxus
04 Aug 2006, 11:08
Installed. Thanks

karlm
04 Aug 2006, 19:14
looks good... i've used a few of your hacks on 3.5.4, and recently upgraded (so uninstalled all hacks) to 3.6
Once i'm more comfortable with 3.6, i'll be installing this.

I'm clicking "install" now though so i can come back to it (i have a habit of forgetting where things are, so it'll be handy to have it listed in my usercp).
As soon as i do install it - i'll let you know.

bspiller82
05 Aug 2006, 01:03
Care to cache the template?

Uncached templates: cyb_lastxhoursvisitors_logged (50)

Valter
05 Aug 2006, 09:09
v1.8 - Aug 05. 2006.
-Uncached template bug fixed

Thanks bspiller82 ;)

aLReeMi
05 Aug 2006, 11:30
Thanks!
installed.

ForYou
05 Aug 2006, 13:58
Hello ,

What about invisball Users , they show in the list , !!!???

Snake
05 Aug 2006, 18:41
Thank you! :)

sportsoutlaw
05 Aug 2006, 19:38
awesome, once installation that covers two of the things on my forumhome. Downloading now, will install on all 4 forums today.

Thanks!

ayaam
10 Aug 2006, 09:30
5 starts :)

thanks alot

Valter
14 Aug 2006, 16:04
v1.9 - Aug 14. 2006.
-Added last activity info on mouseover (format: date_time)
-Username of user who have chosen to be invisible while online will be replaced with "Invisible" (except for usergroups who can view invisible members where "*" will be added after username)
-You can change "Invisible" phrase or replace it with some icon in ACP using HTML codes
-Activity info will be shown for invisible members too when you mouse over "Invisible"

MRGTB
12 Sep 2006, 13:35
very good, clicked installed

jellybaby
12 Sep 2006, 15:26
Would it be possible to do this so that only certain membergroups can see this?

Karabaja
12 Sep 2006, 16:06
Thx Cybernetec, installed it.

But is there a way for me to change the order of usergroup legends?

For example I have this "Users Awaiting Email Confirmation" and I would like it to be displayed as first on the right side, but it is not now.

I can just disable show usergroup legend and add them myself in forumhome template, but I was just wondering if I have to do it.

MRGTB
14 Sep 2006, 04:36
there is a time difference bug. When you logged-on as admin in invisible mode and mouse over your name with the * displayed against it. It shows the correct time you were last there. When you log-out and mouse over the invisible link, it shows an hour less. IE: Instead of showing 4:35 like it did when I was logged-on. It shows 3:35 when logged off and moused over the same name.

Also how do you get the usergroups to show up. is it suposed to show all the deafault usergroups? As I seen nothing there listed.

Valter
14 Sep 2006, 04:50
1. It is NOT bug.

It's because of different time settings in your UserCP and AdminCP.

2. It will show all users who visited in last X hours.

MRGTB
14 Sep 2006, 04:54
I don't really follow you. When logged on as admin. My time zone in my usercp is setup for UK time. I see the correct time as admin I last visited (which is the same time as my PC Clock. But when I logged out as admin, and viewed the board as a guest and hovered over the inviable name link. It shows an hour behind. Are you saying I need to enable DAYLIGHT saving in the admin cp so guests see 1 hour forward.

MRGTB
14 Sep 2006, 05:13
Ok I see what you mean now, I needed to enable "day light saving" in admincp. But what about the other question I asked. When I have the Usergroups option enabled. There is nothing showing up. Is there a setting or something in the admincp I'm over-looking that has to be enabled for them to show up in the hack

Valter
15 Sep 2006, 12:16
All usergroups with HTML markups defined will be listed there.

As I can see on your board you haven't added any HTML markups for any usergroup.

brvheart
21 Sep 2006, 14:55
EDIT: dang it, I forgot that I installed that other one, sorry...had a dumb moment, that is what happens you stay up for 20 hours and then try to look at code...thanks for the reply....sorry for the dumb question :(

Valter
22 Sep 2006, 08:07
brvheart,

It seems you have installed two hacks which do the same thing as "Cyb - Visitors in Last X Hours". One of them lists users who visited forums today and another one shows usergroups legend.

Go to your Product Manager and remove unneded hacks.

Martin-TMGRS
22 Sep 2006, 16:00
Yet another great plugin from you Cybernetec :D , clicked installed. Thanks

sensimilla
28 Sep 2006, 12:39
Installed thanks!

Masiello
29 Sep 2006, 13:14
clicked install, you and Paul made the best hacks that I use only, I hope all hack have been upgrade when vB 3.6.2 released :)
Thanks for the hack

aceofspades
29 Sep 2006, 16:03
I have installed this hack and it is fantastic, but i do have a question. Can you please tell me how i can remove the bar that has the usergroups with their markups, i.e

Administrators - Clan Member Moderators

Thank you

Valter
29 Sep 2006, 19:31
Turn off "Usergroups Legend" in hack settings.

oberheimhaven
29 Sep 2006, 21:30
Will this work with fake community stats??

Valter
29 Sep 2006, 21:35
Will this work with fake community stats??
I don't think so.

This shows only registered members who visited site in last x hours.

Masiello
30 Sep 2006, 13:16
Is there any way to show with a certain usergroups (example: Admin, supermoderators, registered members, ecc..) the total guests visited the forum in last 24 hours?
It's possible to add that feature?

Ev!L ErN!E
20 Oct 2006, 08:05
I like the usergroup feature, but is there a way to only show certain usergroups? I have alot of usergroups with html markups, and it looks cluttered when enabled, so I'd just liek to show certain ones like, Admins, Mods, Friends etc...

Is that possible?

Valter
30 Oct 2006, 12:36
v2.0 - Oct 30. 2006.
-Whole code is now valid XHTML 1.0 Transitional
-Added option to exclude usergroups from viewing VILXH box
-Added option to hide usergroups from showing in legend
-Added "Product Version Checking"

To upgrade: Import XML, allow overwrite.
For very customized styles check optional installation step instructions.

dimdan
01 Nov 2006, 15:15
Turn off "Usergroups Legend" in hack settings.


noob question,where exactly is that? :cross-eyed:

jluerken
04 Mar 2007, 23:42
Hi Cybernetec,

how can I make your mod working with this one?
http://www.vbulletin.org/forum/showthread.php?t=139402

Valter
05 Mar 2007, 10:49
Hi Cybernetec,

how can I make your mod working with this one?
http://www.vbulletin.org/forum/showthread.php?t=139402
Hi,

You may ask that hack author to make add-on for this hack.

jluerken
05 Mar 2007, 12:10
Hi,

You may ask that hack author to make add-on for this hack.

I'll do but maybe you can extend your's to reflect this also or?

karlm
15 Apr 2007, 21:05
I had this working previously - without fault. However, I moved my forum and now it will not work. I've completely uninstalled it, reuploaded (allowing overwrite) and it will not show, even when using the 'optional' code for customized skins. I've tried it on various skins and it just doesn't seem to work :(Any ideas?my site is: http://antimisandry.com/forum

Valter
16 Apr 2007, 06:32
I'm not sure what it can be. You can create temp admin account for me to check it if you wish.

Andyucs
16 Apr 2007, 12:02
Cybernetec i luv the work you do m8ty another corker

you should do all the hacks here

just upload product all done no maunual template edit's

i have nearly all of your hacks installed on my forums

gg4gg
23 Apr 2007, 18:02
Very nice hack
installed
soon i will translate it to Arabic language .

dbirosel
03 May 2007, 07:30
for some reason the count of viewers are jumping...?

There will be times when it is 100 then later on 150 then later on again dropping at 125. What's going on?

D.Ilyin
04 May 2007, 06:54
Futures req:
1. Option to display certain number of visitors on forumhome (for large boards)
2. Link on page with all visitors in last X hours.

dazed12
05 May 2007, 19:07
excellent work cyb, keep it up!

inciarco
12 May 2007, 15:08
Magnific Add-On!! :up:

Works Ok With vBulletin 3.6.6!! :up:

:)

bigsbydapicka
12 May 2007, 18:33
This addon causes 3.6.6 to hang when using Internet Explorer. Mozilla works fine. Same issue as being reported on the "Who's visited" mod.

http://www.vbulletin.org/forum/showthread.php?t=121883&highlight=%3Awho+visited%26quot%3B%26quot%3B

Valter
12 May 2007, 23:56
This addon causes 3.6.6 to hang when using Internet Explorer.
Nope, it works fine.
www.bihforum.com

bigsbydapicka
13 May 2007, 01:30
It will likely work for some and not others as the other hack is.

Tuga®™
18 Jun 2007, 23:46
i got the same problem in my site ass well if i disable will work fine

Kodyr
19 Jun 2007, 16:15
Have any clue why its making it double?
http://habbcrazy.net/forum/ (Bottom Of Forum)

acidburnz
13 Jul 2007, 00:36
Thanks so much, this is an awesome plugin and is just what i was looking for. Cheers mate (clicked installed).

yaoren
18 Jul 2007, 23:20
works very nicely on 3.6.7. Thanks

**Installed**

moveforward
23 Jul 2007, 21:20
Installed - very nice and easy to install. Thanks

VNFriends
31 Jul 2007, 15:55
I wanna show total visitors include members & guests same as Currently active users
How can I have to do?

Valter
17 Sep 2007, 02:24
v2.1 - Sep 17. 2007.
-New: Number of guests who visited forums in last x hours
-Option to add fake guests
-Option to disable automatic placement of VILXH box on forumhome
-Last activity info shown using today/yesterday for current and previous day
-Several minor bugs fixed
-Optimized and compatibility improved

To upgrade: Import product XML, allow overwrite.

IR15H
17 Sep 2007, 14:51
It displays twice.

The auto edit doesn't display a users secondary group, even if it's set to display as that group. Also, this is a minor thing, but would it be possible to manually choose the order of the groups in the legend in a future version?

Other than those few things, very nice :).

Valter
17 Sep 2007, 15:02
It's not shown twice. I believe it's another hack which adds second box.

Users active in the past 24 hours: 94 (41 members and 53 guests) is VILXH box.

IR15H
17 Sep 2007, 15:09
Ah yes, indeed it is, now I feel dumb. That's fixed that then. Ummm, just the displaying secondary user groups then.

Makc666
24 Sep 2007, 15:20
Cybernetec, I think it is better to replace:
Usergroups excluded from legend (comma separated ID list)
with
Usergroups shown in legend (comma separated ID list)
And set it default for 2,3,4,5,6,7,8

This will avoid misunderstanding.
As for example on my forum I have a big list of technical groups + I have hidden groups. When I installed this one today I need to add about 10 groups to exclude list. And for some period of time users were able to see my hidden groups.
+
At the current moment every time I add a new user group I have to remember to exclude it! Not the best variant.

Valter
25 Sep 2007, 01:09
v2.2 - Sep 25. 2007.
-Only selected usergroups are shown in the Usergroup Legend
-Usergroups with no HTML tags set are still automatically excluded
-You can choose the order of the usergroups in the legend
-Fixed bug where users are not displayed using tags from their default usergroup

Upgrade info:
-Import product XML, allow overwrite.
-Check settings and update "Usergroups shown in legend" if needed

IR15H
25 Sep 2007, 06:46
v2.2 - Sep 25. 2007.
-Only selected usergroups are shown in the Usergroup Legend
-Usergroups with no HTML tags set are still automatically excluded
-You can choose the order of the usergroups in the legend
-Fixed bug where users are not displayed using tags from their default usergroup

Upgrade info:
-Import product XML, allow overwrite.
-Check settings and update "Usergroups shown in legend" if needed


Works perfectly. Thanks!

Makc666
28 Sep 2007, 17:26
Cybernetec, can you please add an future that when we clear out option in ACP:
This will be shown for invisible members
options['cyb_visitorslastx_invisible']
then such users are not displayed VILXH box.

Because now when we clear out This will be shown for invisible members registered users see a comma (,) or several commas (, , , ,) for invisible users.

This will be the same as normal behaviour for registered users as it is in vBulletin's box.

Thanks

Karabaja
20 Oct 2007, 17:00
I have a couple of suggestions.
If you could please add an option to disable guest visits.
And it would be nice to have a cut off at certain point, like show only X users (1000 for example) and a link to "show all" on a separate page. I've been getting over 1000 members lately and that list is getting long for a main page.
I've seen that option on some board, but can't remember where, it was probably a different hack anyway, but would be very nice to have in this one.

Valter
21 Oct 2007, 01:05
Cybernetec, can you please add an future that when we clear out option in ACP:
This will be shown for invisible members
This will be added.
If you could please add an option to disable guest visits.
Will be added.
And it would be nice to have a cut off at certain point
Will be added.

Valter
23 Oct 2007, 04:11
v2.3 - Oct 23. 2007.
-New: Option to disable guest stats
-New: Option to hide completely invisible members
-New: Cut-off member list and show all on user request via AJAX
-Minor bug fixes

To upgrade: Import product XML, allow overwrite.

Karabaja
23 Oct 2007, 08:56
v2.3 - Oct 23. 2007.
-New: Option to disable guest stats
-New: Option to hide completely invisible members
-New: Cut-off member list and show all on user request via AJAX
-Minor bug fixes

To upgrade: Import product XML, allow overwrite.

Thanks a lot. Great job.

nedo_a
06 Nov 2007, 13:46
i have problem....when i cros over user example me, its showing that i was online last time Today 6:52...but i am online already

apiasto
14 Nov 2007, 02:07
another great upgrade thnx cyber,the feature you added in 2.3 about fake guests when i add fake names it doesn't sohw the names.can you help?i was wondering if you gonna add fake threads n fake posts as well,thats the only thing missing,you know fun for the whole family .lol

Valter
14 Nov 2007, 04:17
another great upgrade thnx cyber,the feature you added in 2.3 about fake guests when i add fake names it doesn't sohw the names.can you help?i was wondering if you gonna add fake threads n fake posts as well,thats the only thing missing,you know fun for the whole family .lol
It's not to add fake members to the list, but to add fake number of guests who visited forum in last x hours.

bkpaul
14 Nov 2007, 11:33
Just what I needed, thanks for your hard work.!!

apiasto
14 Nov 2007, 13:14
It's not to add fake members to the list, but to add fake number of guests who visited forum in last x hours.

oh ok,i am better with the old version then .thanks:D

Valter
27 Nov 2007, 17:17
oh ok,i am better with the old version then .thanks:D
v2.3 has some new nice features and bug fixes, so it's recommended to use latest version anyway. :)

ukcobra
28 Nov 2007, 13:00
Wow, that was easy, I like that. Clicking Install. Many thanks.

Skavenger
22 Dec 2007, 17:25
hi, how does this modification track guests? it counts one per visit or one per page view?

Valter
23 Dec 2007, 03:10
hi, how does this modification track guests? it counts one per visit or one per page view?
One per visit/IP address, no matter how many pages you view.

gnubittol
24 Dec 2007, 01:36
Can you set the plugin code has been set to run on "all pages" ?
this will be useful to create cmps module to use the following variable:
$cyb_vilxh
$vilxh_total

fintan74
30 Dec 2007, 15:16
Great product! Installed and working fine...

...except one minor thing which is surely a setting on my end. When hovering over a user it shows 'Today, H:i' instead of 'Today, 23:15'. Any idea why? I have been going through all the code I could find, but can't seem to find is. Thanks...

fintan74
30 Dec 2007, 16:28
Great product! Installed and working fine...

...except one minor thing which is surely a setting on my end. When hovering over a user it shows 'Today, H:i' instead of 'Today, 23:15'. Any idea why? I have been going through all the code I could find, but can't seem to find is. Thanks...
Ah, solved... When installing Cybernetec's Advanced Stats I noticed in the readme that adding % before a variable can solve these sorts of issues. Changing 'H:i' in one of the templates to '%H:%I' did the trick for me...

Artes_Marciales
31 Dec 2007, 16:20
Thanks Great hack!! :)

but...
how to disable it?
-Show member last activity on mouse-over

Thanks! :)

vbob
10 Jan 2008, 17:47
I was looking for a mod like that...!!! It is very usefull!!!
Thank you very much...!!!! :-):)

Makc666
08 Feb 2008, 16:36
The one think I noticed today is that your friends are not showen with (+) sign in the list.
Imvisible users are showen with (*) sign but friends now.
I think this one must be corrected with an option to disable this one.

ArnyVee
28 Mar 2008, 16:59
This will be useful to me! Thanks! :)

iardon
25 Apr 2008, 00:43
Would this mod use less queries compared to using the two Paul M mods (members and guests who've visited)?

Also, is this mod working fine with 3.6.10?

Thanks.

Frugoo Scape
25 Aug 2008, 08:32
Good job. Works perfect.

Vehbi KOC
02 Oct 2009, 16:32
thanks Cybernetec