vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Members who have visited today. (https://vborg.vbsupport.ru/showthread.php?t=196458)

Paul M 11-15-2008 10:00 PM

Members who have visited today.
 
As of 24 Nov 2017 this modification has been withdrawn.

This adds a simple display of all members who have visited the forum - either today (i.e. since the users midnight) or in the last 24 hours.

Note: it is not possible for this hack to count guests.

The main features of the 3.8 version are as follows ;

1. It displays the list on the Forum Home.
2. The list view is collapsable, so you just see the number.
3. Invisible users are only displayed to those allowed to see them (with a "*")
4. Users who should display as coloured or bold etc will be displayed correctly (based on the display usergroup).
5. If you 'hover' over a username it will show the time they were last active.
6. The list is in member name order.
7. The ability to turn it on/off is in the ACP Options.
8. The ability to allow only certain usergroups to view the list is an ACP option (include or exclude groups).
9. An option to record and display the Most Ever Members can be enabled.
10. The switch between Visited Today and Rolling 24 Hours is an ACP option.
11. The listing of members can be suppressed (a simple message is displayed instead).
12. The list of names can be set to be always collapsed on initial view.

(Options are in vBulletin Options > Who has visited today)

To install just unzip the XML and import into vB using the ACP Product Manager.

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 version for vB 3.8.x
v3.8.002 : Fix Most Ever Display Bug.


jerx 11-17-2008 08:06 AM

Thank you! Just updated this mod. Old version was removed automatically and new was installed without loosing any data.

Edit: The vbadvanced module stops working with this update. The reason is that it uses a different hook location (forum_start instead of global_start). I have changed it to global_start again and the module works. Is it ok to do so?

Paul M 11-17-2008 09:43 AM

Not really a good idea, it means the code runs on every vb page visited, even though its only ever used/displayed on the Forum Home. I would have thought fixing the VBA module would be better.

PitchouneN64ngc 11-25-2008 05:59 PM

Thanks for this update, but I've found a little bug in the 'forumhome_start' hook.

The code for displaying the 'Most Ever Members' line is defined and set after the eval of the template, and the part of code is useless. I've edited it to place the eval code after all (before the last } ).

Another thing: in the same piece of code, you have this:

PHP Code:

    if ($vbulletin->options['wvtmost'])
    { 
        [...]

        if (
$vbulletin->options['wvtmost'])
        {
            [...]
        }
    } 

Maybe you can remove one condition ;)

kylek 11-26-2008 12:24 AM

Thank you, glad to see old favorites for 3.8!!

Medtech 11-26-2008 03:44 AM

Definately glad to see this one! thanks and works like a charm

Paul M 11-26-2008 08:51 AM

Quote:

Originally Posted by PitchouneN64ngc (Post 1672867)
Thanks for this update, but I've found a little bug in the 'forumhome_start' hook.

The code for displaying the 'Most Ever Members' line is defined and set after the eval of the template, and the part of code is useless. I've edited it to place the eval code after all (before the last } ).

Another thing: in the same piece of code, you have this:

PHP Code:

    if ($vbulletin->options['wvtmost'])
    { 
        [...]

        if (
$vbulletin->options['wvtmost'])
        {
            [...]
        }
    } 

Maybe you can remove one condition ;)

Yes, I know about the most users bug - it was spotted in another of my mods the other day - it affects a number of them and I wont have time to fix them all for a few days.

Thanks for pointing it out tho. :)

jerx 11-27-2008 07:40 AM

Ignore my post. I forget too quickly lately.

beishe8 11-27-2008 04:59 PM

Could not install because this error message:
Quote:

The following dependencies were not met:
This product is not compatible with version 3.8.0 Beta 4 of vBulletin. (Compatible starting with 3.6.0 / Incompatible with 3.6.99 and greater)

Paul M 11-27-2008 05:10 PM

You cannot possibly get that message if you downloaded it from this thread.


All times are GMT. The time now is 12:29 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.01461 seconds
  • Memory Usage 1,742KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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