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=221579)

lemonadesoda 02-05-2010 10:41 PM

OK. Understood. But may I please ask that you improve how the information is shown?

Example: if you are looking at (say) 10am in the morning, and someone was on within the 24hr rolling window, at (say) 9pm on the previous day, the mod shows "09:00pm". Not only is this incorrect (there are no preceding 0's in the am/pm format; a preceding 0 is only for 24hr clock format) but it is also a little confusing.

Better would be "Yesterday, 9:00pm". The format is then consistent with how posts are represented in the forum threads. (And therefore doesn't require much coding work on your side since you can recycle existing code).

Paul M 02-06-2010 10:25 AM

Quote:

Originally Posted by lemonadesoda (Post 1975683)
OK. Understood. But may I please ask that you improve how the information is shown?

Yes, you can ask. ;)

However, I can also decline. I am perfectly happy with the way it displays, as it seems are the thousands of people who have installed this over the years. I do not intend to change it. :)

BTW, the time display uses your own forum settings, so you have it set to display as "09:00pm".

lemonadesoda 02-07-2010 08:29 PM

Quote:

Originally Posted by Paul M (Post 1975949)
BTW, the time display uses your own forum settings, so you have it set to display as "09:00pm".

Thanks for pointing that one out Paul. It seems that vB's default (and suggested use) of h:i A for AM/PM clock is actually wrong and should be g:i A.

To remove all ambiguity, I have now set my forum with the following time format H:i (g:i a)

------------

Quote:

Originally Posted by Paul M (Post 1975949)
I am perfectly happy with the way it displays, as it seems are the thousands of people who have installed this over the years. I do not intend to change it

Your prerogative to decline, no problem, but to validate the response by saying that thousands of people were perfectly happy with horse and cart over the years, is rather weak as a socratic argument.

------------

Request permission to hack your hack and alter the $cutoff logic.

Jim O 02-08-2010 04:09 AM

I got a database error updating to the latest version:

Quote:

Database error in vBulletin 4.0.1:

Invalid SQL:

UPDATE vb_template SET
styleid = -10
WHERE product = 'paulm_wvt_40' AND styleid = -1;

MySQL Error : Duplicate entry 'Display_Visitors--10-template' for key 'title'
Error Number : 1062
Request Date : Monday, February 8th 2010 @ 12:56:50 AM
Error Date : Monday, February 8th 2010 @ 12:56:56 AM
Script : http://worldwartwozone.com/forums/ad...=productimport
Referrer : http://worldwartwozone.com/forums/ad...?do=productadd
IP Address : my.ip.add.ress
Username : Jim O
Classname : vB_Database_MySQLi
MySQL Version : 5.1.42
The product is working but the settings list shows an empty line and the settings themselves are blank:

Attachment 111853

Paul M 02-08-2010 10:54 AM

Quote:

Originally Posted by lemonadesoda (Post 1976917)
Request permission to hack your hack and alter the $cutoff logic.

On your own forum you are free to alter it as you wish, as long as you do not release it to anyone else. I will also not support any changes you make. :)

Quote:

Originally Posted by Jim O (Post 1977184)
I got a database error updating to the latest version:

This is a known bug in the vbulletin product install system, you need to delete the -10 templates. See https://vborg.vbsupport.ru/showpost.php?p=1968704

Jim O 02-08-2010 02:44 PM

Quote:

Originally Posted by Paul M (Post 1977354)
This is a known bug in the vbulletin product install system, you need to delete the -10 templates. See https://vborg.vbsupport.ru/showpost.php?p=1968704

That was easy. Thank you so much for the quick response!

LoneWolf71 02-11-2010 01:58 AM

Great mod! Thanks, I was looking for this. Working great! Has anyone gotten this to also work in vbadvanced cmps? Or does anyone care to tell us all how to do it? :)

Thanks Paul, nice mod! Keep it up!

LoneWolf71 02-13-2010 04:19 PM

bump

thedreamer09 02-14-2010 02:37 PM

cool mod, installed.. thanks for sharing this one

Philippe J 02-19-2010 07:24 PM

Very nice mod that I used with vb3.8, and now with VB4.

But I have one issue since I've upgraded to vb4.02 : IE8 crashes all the time if "Members have visited today" enabled, unless it's in compatibility mode.

I use this tip (here) to force compatibility mode in my forum :

Add to the headinclude template :
Code:

<meta http-equiv="X-UA-Compatible" content="IE=7" />
Any idea ?


All times are GMT. The time now is 11:16 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.01787 seconds
  • Memory Usage 1,746KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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