vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBa CMPS: users registered today (https://vborg.vbsupport.ru/showthread.php?t=102995)

ericgtr 12-14-2005 10:00 PM

vBa CMPS: users registered today
 
Updated to 3.5.1 (should work for any 3.5.x) Although the update is minor I thought it best to start a new thread for verstion 3.5
See 3.0.x version here https://vborg.vbsupport.ru/showthread.php?p=582250

This will add a "Registered Today" (actually in the last 24 hours) to your Stats box.

Add a phrase: <-- important
Global
Varname: reged_today
Text: Registered Today

In the adv_portal_stats template:

Find:
Code:

$vbphrase[top_poster]: <a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$topposter[userid]">$topposter[username]</a> ($topposter[posts])<br />
Below add:
Code:

$vbphrase[reged_today]: ($newusers[count])<br />
Open modules/stats.php

Find:
PHP Code:

$newuserid $vbulletin->userstats['newuserid']; 

Add below:
PHP Code:

$newusers $db->query_first('
SELECT COUNT(*) AS count 
    FROM ' 
TABLE_PREFIX 'user
    WHERE joindate >= "' 
strtotime("-1day") . '"
'
);
$newmembers number_format($newusers['count']); 


dieselpowered 12-15-2005 03:06 AM

You know it is bound to happen, so lets get it taken care of right off the bat...

Do you have a screenshot?? :)

**edit** you just uploaded one ;)

ericgtr 12-15-2005 03:09 AM

Quote:

Originally Posted by xtremeoff-road
You know it is bound to happen, so lets get it taken care of right off the bat...

Do you have a screenshot?? :)

**edit** you just uploaded one ;)

I just realized that too :)

mholtum 12-15-2005 05:04 AM

Nice, thanks

Robru 12-15-2005 02:49 PM

Thanks, clicked *install*

Mudvayne 12-20-2005 12:01 PM

installed & clicked install.. also workin fine :)

PennylessZ28 01-03-2006 01:29 AM

clicks install

robert_2004 03-16-2006 01:02 PM

[request] would be nice to get the list of names over the past 24 hours :)

phpdevrus 03-18-2006 08:22 AM

nice. clicked install.

phonexpo 05-19-2006 03:02 PM

Installed, just waiting for the midnight update one now ;)


All times are GMT. The time now is 07:52 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.01087 seconds
  • Memory Usage 1,729KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete