vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Members who have visited the forum (Today or last 24 hours). (https://vborg.vbsupport.ru/showthread.php?t=82769)

Paul M 08-25-2005 04:58 PM

Quote:

Originally Posted by Xplorer4x4
The term used for method 2 where it does not reset is called "dynamic" I believe.

As far as the other part, meh forget it, not important.

Now I have problem however. I want to make this dynamic(method 2/Does not reset) so i edited his variable out of the plug in:
PHP Code:

 //$cutoff = TIMENOW - 86400 ;  // ## Uncomment this line if you want a rolling 24 hours display ## // 

And it still reset at midnight. Suggestions?

When you say you edited it out, what do you mean exactly ? All you should do to it is uncomment it, i.e. remove the two slashes at the start, not the whole line.

Paul M 08-25-2005 05:00 PM

Quote:

Originally Posted by evesve
No suggestions?

Nope - there is no easy way to sort it like that.

Xplorer4x4 08-25-2005 05:04 PM

Quote:

Originally Posted by Paul M
When you say you edited it out, what do you mean exactly ? All you should do to it is uncomment it, i.e. remove the two slashes at the start, not the whole line.

Ohhhhhhhh no wonder it didn't work. :o

Thanks Paul. Goes to UNCOMMENT. :-p

-X

Xplorer4x4 08-26-2005 04:30 AM

Ok I uncomented the line like you said. I removed the 2 slahses at the begining of the line. It STILL reset.

Any more ideas?

-X

Paul M 08-26-2005 07:04 AM

Post the first 10 lines of the hack [from your index.php] so I can see what you have actually done.

JoyB 08-29-2005 08:07 AM

Hi Paul,

This hack was very easy and quick to install and works a treat! Thank you :)

Xplorer4x4 08-29-2005 09:09 AM

Quote:

Originally Posted by Paul M
Post the first 10 lines of the hack [from your index.php] so I can see what you have actually done.

I am confused as to exactly what you want? If you mean the first 10 lines of the hack istelf:
PHP Code:

// ############### Paul M - Who has visited today v3.31 #################
$tnow date('YmdHis',TIMENOW $vbulletin->options['hourdiff']); 
$cutoff TIMENOW - (substr($tnow,8,2)*3600 substr($tnow,10,2)*60 substr($tnow,12,2)); 
$cutoff TIMENOW 86400 // ## Uncomment this line if you want a rolling 24 hours display ## //
$todaysusers $vbulletin->db->query_read("
SELECT userid, lastactivity, options, username, user.usergroupid, displaygroupid, 
groupa.opentag as opentaga, groupa.closetag as closetaga, groupb.opentag as opentagb, groupb.closetag as closetagb
FROM " 
TABLE_PREFIX "user as user
LEFT JOIN " 
TABLE_PREFIX "usergroup as groupa ON(user.usergroupid = groupa.usergroupid) 


Paul M 08-29-2005 10:08 AM

Quote:

Originally Posted by Xplorer4x4
I am confused as to exactly what you want? If you mean the first 10 lines of the hack istelf:
PHP Code:

// ############### Paul M - Who has visited today v3.31 #################
$tnow date('YmdHis',TIMENOW $vbulletin->options['hourdiff']); 
$cutoff TIMENOW - (substr($tnow,8,2)*3600 substr($tnow,10,2)*60 substr($tnow,12,2)); 
$cutoff TIMENOW 86400 // ## Uncomment this line if you want a rolling 24 hours display ## // 


Yep, that's what I wanted to see. There is nothing wrong with it, and there is no way that can reset at midnight. It will display a rolling 24 hours.

Xplorer4x4 08-29-2005 06:19 PM

Quote:

Originally Posted by Paul M
Yep, that's what I wanted to see. There is nothing wrong with it, and there is no way that can reset at midnight. It will display a rolling 24 hours.

I wish that was the case. :( As I said it is resetting at midnight.I tried your method for 2 nights and it didn;t work so i had tried doing some edits. I have this code here installed, so let me give it a shot again tonight. It is possible I made a mistake the last time, but I really don't see how.

Paul M 08-29-2005 06:41 PM

Are you sure you haven't put the code in twice or something (or installed the plugin more than once) ?

The last line in what you posted is "$cutoff = TIMENOW - 86400" which quite simply is the current time - 86400 seconds (24 hours). There is simply no way it can do anything else.


All times are GMT. The time now is 10:11 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.01853 seconds
  • Memory Usage 1,758KB
  • 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
  • (3)bbcode_php_printable
  • (6)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