vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   List of new members during last 24h (https://vborg.vbsupport.ru/showthread.php?t=76249)

JC 02-15-2005 07:46 AM

Thank you, worked out great! :)

Olsufr 02-15-2005 06:25 PM

There is a little modification of hack's code.

v.1.01
Install instructions and downloaded file at first post in this topic is renewed.

Modification is in index.php:

this code:
PHP Code:

// ### STATISTICS AND LIST OF NEW REGISTERED MEMBERS 24h by Oleg Subel ####################

$lastregusers24 $userstats['lastregusers24h'];
$numbernewregusers24 0;
$newusers24 '';
if (
is_array($lastregusers24) && count($lastregusers24) > 0)
{
    foreach(
$lastregusers24 AS $regjoindate => $regnewuser)
    {
        
$numbernewregusers24++;
        eval(
'$newusers24 .= ", ' fetch_template('forumhome_regnewuser') . '";');
    }
}
$newusers24 substr($newusers24 2); // get rid of initial comma

// ### End of STATISTICS AND LIST OF NEW REGISTERED MEMBERS 24h by Oleg Subel ############# 

change to:
PHP Code:

// ### STATISTICS AND LIST OF NEW REGISTERED MEMBERS 24h by Oleg Subel ####################

$lastregusers24 $userstats['lastregusers24h'];
$numbernewregusers24 0;
$newusers24 '';
$cattime24 TIMENOW 24 60 60;
if (
is_array($lastregusers24) && count($lastregusers24) > 0)
{
    foreach(
$lastregusers24 AS $regjoindate => $regnewuser)
    {
        if (
$regjoindate $cattime24)
        {
            
$numbernewregusers24++;
            eval(
'$newusers24 .= ", ' fetch_template('forumhome_regnewuser') . '";');
        }
    }
}
$newusers24 substr($newusers24 2); // get rid of initial comma

// ### End of STATISTICS AND LIST OF NEW REGISTERED MEMBERS 24h by Oleg Subel ############# 

Now, if you want to have statistics more than for 24 hours (for example - 3 days)
you need:

1) to change line of this hack for includes/functions_databuild.php (see step 1 of installation):
PHP Code:

$cattime24 TIMENOW 24 60 60

to
PHP Code:

$cattime24 TIMENOW 324 60 60

and

2) to change line of this hack for index.php (see step 2 of installation):
PHP Code:

$cattime24 TIMENOW 24 60 60

to
PHP Code:

$cattime24 TIMENOW 324 60 60


Rick Sample 02-15-2005 08:52 PM

awesome hack, but is their anyway the counter can reset at midnight instead of the last 24h after you install it?

THANKS :)

WreckRman2 02-17-2005 05:07 AM

Question you set up a condition "<if condition="$numbernewregusers24">" but how to you set that condition as on?

neocorteqz 02-17-2005 07:41 AM

Quote:

Originally Posted by IndyWebDesign
Question you set up a condition "<ifcondition="$numbernewregusers24">" but how to you set that conditionas on?

what exactly do you want to know?

xtreme-mobile 02-23-2005 07:31 PM

ive just installed this but it doesnt show the 8 members that i have had register? or will it start from when the next member signs up?

Olsufr 02-23-2005 10:48 PM

Quote:

Originally Posted by xtreme-mobile
ive just installed this but it doesnt show the 8 members that i have had register? or will it start from when the next member signs up?

xtreme-mobile, this statistics is updated when new member registers.

xtreme-mobile 02-24-2005 02:52 PM

yep all working now

great hack

Q-v-n-s-Q 03-07-2005 11:42 AM

Nice hacks

TLCanna 03-07-2005 04:55 PM

I added this hack and it's working fine, but now my latest new member isn't there (at the top). It says 'Welcome to our newest member, " but no name. How can I get that added back AND have this hack show at the bottom?

http://www.javajane.com/images/GAGscreen.gif

If the link doesn't work the first time clicking it, refresh and it should show up. It's just an image of the area I'm talking about.

Thanks


All times are GMT. The time now is 06:58 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.01209 seconds
  • Memory Usage 1,756KB
  • 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
  • (6)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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