PDA

View Full Version : Cyb - Visitors in Last X Hours


Valter
10-01-2005, 10:00 PM
=======
Release of this hack for vB v3.6:
https://vborg.vbsupport.ru/showthread.php?t=122999
=======


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

Mr Peabody
10-02-2005, 03:57 AM
Cheers mate it dosent get any easier than that, question tho I had a similar hack on the old 3.0.7 ver only difference is when you put your cursor over the name is showed the time they were last on, might be some thing to add later :)

Mijae
10-02-2005, 04:00 AM
Just what I was looking for yesterday :)

PennylessZ28
10-02-2005, 04:10 AM
Installed and got all of the following

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /forum.php(63) : eval()'d code on line 21

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/functions.php on line 2431

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2436

Valter
10-02-2005, 04:23 AM
Installed and got all of the following..............
Please try to reinstall.

Be sure to upload it through PRODUCT manager.
Don't forget to check "Yes" for "Allow Overwrite".

Boofo
10-02-2005, 07:48 AM
Can this be made to show who has visited the forums since midnight, each user's time?

Brent H
10-02-2005, 08:43 AM
Good plugin, but can this be made to be valid XHTML Transitional 1.0? Ruins my compliance ;)

VaaKo
10-02-2005, 10:05 AM
does the block gets reseted at midnight or what?

TheComputerGuy
10-02-2005, 11:56 AM
www.runaked.com/forums running it just fine in case anyone needs a live demo :)

Paul M
10-02-2005, 12:04 PM
Can this be made to show who has visited the forums since midnight, each user's time?Um, like this you mean.

https://vborg.vbsupport.ru/showthread.php?s=&threadid=82769

Brent H
10-02-2005, 12:56 PM
A couple weird things about this that you might want to fix... Your template begins with [doctype] ends with </html>...

JJR512
10-03-2005, 12:03 AM
I've installed this and it works great.

There's only one change that I can suggest as an improvement: You have the visitors_xh phrase (the phrase that says by default "Members who visited in last X hours") coded to be underlined. This makes it look like a link, but it's not. Other non-linked boxes down there, like Statistics and Today's Birthdays, are not underlined, so why does this one need to be? I've changed it on my board, for consistency (and thus making it seem more integrated) with the rest of vBulletin. :)

Valter
10-03-2005, 07:09 AM
-Bugs fixed.
-Text in visitors_xh phrase is not underlined anymore.
-Version 1.1 released.

Import as product. Alow overwriting.

MentaL
10-03-2005, 09:53 AM
What about larger sites which get 6k members visiting per day, the table would be full..

Valter
10-03-2005, 10:01 AM
What about larger sites which get 6k members visiting per day, the table would be full..
You can set X parameter to smaller value. Last 12 hours or last 6 hours or last 1 hour for example :)

trancetopia
10-03-2005, 01:20 PM
I much prefer this to the visited today hack. Thanks for sharing Cybernetec, now installed.

Paul M
10-03-2005, 01:24 PM
I much prefer this to the visited today hack. Thanks for sharing Cybernetec, now installed.Given that it looks the same, and both can do 24 hours, I'm curious as to why you 'much prefer' it ?

Xplorer4x4
10-03-2005, 02:13 PM
The function for adjusting X hours in the Admin CP is nice. Don;t mean to be rude but why would take the time to make a plug in that has been made. Why not have built an add on to Paul M's hack for adjusting the time in the Admin CP?

phonexpo
10-03-2005, 10:26 PM
Installed, thanks Cybernetec ;)

Lt. Dan
10-04-2005, 04:14 AM
Works great!

trancetopia
10-04-2005, 09:14 AM
Given that it looks the same, and both can do 24 hours, I'm curious as to why you 'much prefer' it ?

Hi Paul, no disrespect to your mod at all it's really good but not for me, not for the moment at least. I loosely used the term 'much prefer' without giving a reason.

My board has very little visitors and a rolling 24hour display shows more members that have visited than the today view, especially in the mornings.

I want to go back to your visited today mod when I have a few more active people in the forums. It's a little embarrassing at the moment with the very few active users I have :( So giving the impression that more people have visited makes the board look a little more active that the 'today' mod to help a little to encourage registrations.

I should have mentioned this in my post, apologies. Just my personal preference at the moment towards my fight for new members.

Paul M
10-04-2005, 11:44 AM
My board has very little visitors and a rolling 24hour display shows more members that have visited than the today view, especially in the mornings.

I want to go back to your visited today mod when I have a few more active people in the forums. It's a little embarrassing at the moment with the very few active users I have :( So giving the impression that more people have visited makes the board look a little more active that the 'today' mod to help a little to encourage registrations.

I should have mentioned this in my post, apologies. Just my personal preference at the moment towards my fight for new members.No need to apologise, I asked for a very specific reason, and your answer has highlighted that all the features of my hack are obviously not made prominant enough - it has a rolling 24 hour option built into it, something that obviously you missed. :)

trancetopia
10-04-2005, 12:10 PM
Doh, it took the name of your mod at face value. I've always used your mod but had no idea it offered rolling time periods.

Right, i'll take another look at it tonight. Cheers Paul.

goblues
10-06-2005, 05:22 AM
Installed and got all of the following

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /forum.php(63) : eval()'d code on line 21

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/functions.php on line 2431

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2436

Exact same problem for me. Are you using the AJAX shoutbox?

Valter
10-06-2005, 07:42 PM
Exact same problem for me. Are you using the AJAX shoutbox?
I think it is not problem. I'm using AJAX Shoutbox too.

Try to re-install.

insanemyth
10-06-2005, 08:28 PM
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /index.php(63) : eval()'d code on line 4

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/functions.php on line 2431

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2436

get that error tried reinstalling many times

insanemyth
10-06-2005, 11:11 PM
anyone got a fix for this?

COBRAws
10-07-2005, 02:00 AM
How can I add GUESTS to that logger? Is this possible?

Valter
10-07-2005, 08:04 PM
How can I add GUESTS to that logger? Is this possible?
Not momentarily.

vibe
10-08-2005, 08:13 AM
so easy to install, took like 2 seconds, thanks!!

goblues
10-08-2005, 08:59 AM
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /index.php(63) : eval()'d code on line 4

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/functions.php on line 2431

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2436


get that error tried reinstalling many times

Can't get it to install here either. exact same problem as you though so that says something, just not sure what. :ermm:

SpaceStar
10-08-2005, 10:11 AM
Excellent :) what an easy way to add a product or plug-in :)

bubba1977
10-08-2005, 09:19 PM
Installed so easy :) wish all products was like this, i remember the days of the add this text here and add this text there.

Brilliant!

Bounce
10-09-2005, 12:25 AM
Installed so easy :) wish all products was like this, i remember the days of the add this text here and add this text there.

Brilliant!


yip less than a minute here and installed

* Bounce likes

ogden2k
10-09-2005, 12:35 AM
Is there any way to hide this from guests?

Also, is there a way where you can have an alt tag that shows the last time they were online or would that be to server intensive?

Valter
10-09-2005, 11:24 PM
To hide from guests:

1. Open template "forumhome_lastxhoursvisitors" (in Forum Home Templates)

2. Add:
<if condition="!$show['guest']">
bellow:
$stylevar[htmldoctype]

3. Add:
</if>
above:
</html>

COBRAws
10-10-2005, 02:46 AM
Not momentarily.

ill have to wait then :D

thanks

PennylessZ28
10-10-2005, 03:25 AM
excellent hack

Jacuma
10-10-2005, 12:27 PM
Easiest install so far, thanks Cybernetec

I-Web
10-10-2005, 07:34 PM
I am gettig this error too on a live site....
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /index.php(63) : eval()'d code on line 4

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/functions.php on line 2431

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2436
Yet on a test site i have installed on a localhost it installs perfectly the only difference being the php version.

Live site PHP5.0.3
Test site PHP 4.3.5

Markco
10-11-2005, 04:07 AM
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /index.php(63) : eval()'d code on line 4
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/functions.php on line 2431
Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2436
get that error tried reinstalling many times
Yes i have same problem :(

dcarr
10-23-2005, 05:39 AM
I'm having a different problem...all my users have green glow around them? anyone else seen this. I mean the names of the users who have been online. Thanks.

Valter
10-23-2005, 09:57 AM
I'm having a different problem...all my users have green glow around them? anyone else seen this. I mean the names of the users who have been online. Thanks.
Hi dcarr

Please check parameters you entered in usergroup settings (Username HTML Markup). This can not be plugin related problem.

divided_by_fear
10-23-2005, 10:36 AM
Good plugin, but can this be made to be valid XHTML Transitional 1.0? Ruins my compliance ;)

yeah im new to vb thats the main reason i switched would it be hard to do this?

COBRAws
10-23-2005, 06:43 PM
Shouldnt be this hack called "Members in Last X Hours" instead of Visitors?


I am looking for an USERS ONLINE hack, to log both visitors and members in a single counter. Thought this was the one, :(

wavelets95
10-28-2005, 09:28 AM
Thank you for this :)

StarBuG
10-28-2005, 03:21 PM
Have the same problem

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /index.php(63) : eval()'d code on line 4

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2436


It?s a clean 3.5 except I installed "Category spacing" as template mod.

StarBuG

tidy_boy
10-28-2005, 11:47 PM
awesome worked a treat

DWard
12-17-2005, 05:03 PM
getting the error

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /index.php(63) : eval()'d code on line 4

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2436

at the top of forums home page, please fix this.

DWard
12-17-2005, 05:03 PM
The error didn't appear at the start

DWard
12-17-2005, 05:30 PM
OK, quite important to the author here... The problem that everybody is having like mine is because:

The script isn't PHP5 compliant.

Bytecon
01-08-2006, 10:45 PM
Excellent, thank you for this.

mili
02-19-2006, 08:00 PM
Is there a way not to have users who is set to invisible show up in the list? Invisible members are indeed invisible in the Who is Currenty Online list but the who visited in the past X hours ignores that.

mili

LiveMicSociety
03-28-2006, 05:00 PM
Installed :up:

generateindex
04-15-2006, 09:21 PM
Installed and got all of the following

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /forum.php(63) : eval()'d code on line 21

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /includes/functions.php on line 2431

Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 2436

I faced the same problem and I solved it! Attached is the modified plugin :knockedout:

N'joy

Invalid ID
04-18-2006, 05:17 AM
Thanks a lot generateindex :)

Valter
04-24-2006, 11:57 PM
v1.5 - Apr 25. 2006.

-Known bugs fixed
-Compatibility improved


To upgrade please uninstall old version first and then import new version XML. It will take you no more than 30 seconds :D

majorxp
04-25-2006, 03:55 PM
thanks for the update!

Valter
05-10-2006, 03:40 AM
v1.6 - May 10. 2006.
- Compatibility improved
- Usergroups legend added with settings to show/hide it

Valter
08-04-2006, 08:33 AM
vB 3.6 version:
https://vborg.vbsupport.ru/showthread.php?t=122999

PDM
03-14-2007, 11:17 AM
hello not data time (2007-14-02) in forum??????

Valter
07-28-2007, 08:06 AM
v2.0
-See version history for changes...

Valter
09-17-2007, 12:26 AM
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.

Valter
09-24-2007, 11:11 PM
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

Valter
10-23-2007, 02:13 AM
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.