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 (or in the last 24 hours). (https://vborg.vbsupport.ru/showthread.php?t=121883)

Paul M 02-22-2008 06:09 PM

You are in a different timezone to guests.

Robbey 02-22-2008 11:51 PM

Quote:

Originally Posted by Paul M (Post 1448850)
You are in a different timezone to guests.

All times are GMT -5. The time now is 08:49 PM.

My time is 8:49

Grintaci 02-23-2008 11:15 AM

Quote:

Originally Posted by EvilHawk (Post 1158063)
WVT display on a seperate page (updated to version 4.40)

Thanks friend,

The hack is very good - CONGRATULATIONS - :up:

I translate this hack for the portuguese brazilian for use in my forum, you like, I send the translation for portuguese BR for you ok?;)

Best regards...

vigape 02-23-2008 12:13 PM

A good mod, installed and trying

Marka Ragnos 02-24-2008 01:37 PM

Thanks, installed!

jscieza 03-08-2008 11:43 AM

Hi Paul,

I have a question and hope you can help me ;)

It's possible to display the information of members who has visited today only for certain usergroups? I want to have this enabled for my moderators and not for the users because my forum home page has a lot of subforums and a list of the members who has visited today (in my case, more than 60) just increases the scroll bar so it generates to new users the idea of that forum is loaded of subforums and I think it isn't a good at all.

If possible, in which part of the code may I add the conditional to only display it for some usergroups?

Thank you very much for your time... and your patience :D

Take care!

Jonathan.

Paul M 03-09-2008 01:58 AM

You would need to modify the SQL in plugin No.2 - adding a check for usergroupid.

Code:

SELECT * FROM ".TABLE_PREFIX."user FORCE INDEX (lastactivity)
WHERE lastactivity > $cutoff AND usergroupid IN (5,6,7) ORDER BY username


jscieza 03-09-2008 02:54 AM

Thank you very much Paul! ;)

Thomas P 03-12-2008 08:48 AM

Great hack :)

Users are sorted alphabetically, will turning this off (removing the ORDER BY statement) improve performance as it is possible with the stock-vb settings?

Paul M 03-12-2008 05:17 PM

Im sure it would in theory, Id defy anyone to notice the difference other than by scanning the SQL statistics (unless maybe you had thousands of visitors per day).


All times are GMT. The time now is 09:55 PM.

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.02030 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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