vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Cyb - Visitors in Last X Hours (https://vborg.vbsupport.ru/showthread.php?t=97343)

Valter 10-01-2005 10:00 PM

Cyb - Visitors in Last X Hours
 
=======
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

Code:

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

Quote:

Originally Posted by HR3rdGen
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

Quote:

Originally Posted by Boofo
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/showthrea...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

Quote:

Originally Posted by mentalrz
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

Quote:

Originally Posted by trancetopia
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

Quote:

Originally Posted by Paul M
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

Quote:

Originally Posted by trancetopia
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

Quote:

Originally Posted by HR3rdGen
Installed and got all of the following

Code:

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

Quote:

Originally Posted by goblues
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

Quote:

Originally Posted by COBRAws
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

Quote:

Originally Posted by insanemyth
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

Quote:

Originally Posted by bubba1977
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

[high]* Bounce likes[/high]

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:
PHP Code:

<if condition="!$show['guest']"

bellow:
PHP Code:

$stylevar[htmldoctype

3. Add:
PHP Code:

</if> 

above:
PHP Code:

</html


COBRAws 10-10-2005 02:46 AM

Quote:

Originally Posted by Cybernetec
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


All times are GMT. The time now is 05:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03713 seconds
  • Memory Usage 1,826KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete