![]() |
List of new members during last 24h
Simple hack to display new registered members during last 24 hours.
A very simple display of all members who have registered in the forum during last 24 hours. It displays statistics and the list of new registered members (last 24h) on Forum Home under the "Users online" display. The list is now in chronological order (newest first, oldest last). example: " Welcome to our newest members: (18) name18, name17, name16, name15, name14, name13, name12, name11, name10, name9, name8, name7, name6, name5, name4, name3, name2, name1 " There is no additional SQL query. ---------------------------------- Installation (there is in attached file) Step 1 In includes/functions_databuild.php Find: PHP Code:
PHP Code:
In index.php Find: PHP Code:
PHP Code:
Add new phrase Phrase Type: GLOBAL Varname: welcome_to_our_newest_members Text: Code:
Welcome to our newest members Step 4 Add new template (Title: forumhome_regnewuser): Code:
<a href="member.php?$session[sessionurl]u=$regnewuser[id]">$regnewuser[name]</a> FORUMHOME template modification Find: Code:
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div> Code:
<if condition="$numbernewregusers24"><div>$vbphrase[welcome_to_our_newest_members]: ($numbernewregusers24) $newusers24</div></if> END 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:
PHP Code:
2) to change line of this hack for index.php (see step 2 of installation): PHP Code:
PHP Code:
|
Why? Why the first reply to a new hack MUST EVERY BE:
"Please, can you post some screenshots?" |
Why must the second reply always back up the first?
I wouldn't mind seeing some screens either, because it sounds like a great hack. |
I'm sorry.
There is screenshot already. |
if alter the line:
Code:
$cattime24 = TIMENOW - 24 * 60 * 60; As my forums aren't that active yet and I'd rather have it display the newest users of the past 3 days (72 hours). |
Yes, Durtay, you are right.
In your case in includes/functions_databuild.php: instead of this line: PHP Code:
PHP Code:
|
I hate to ask but how do I "ADD A NEW PHRASE" ? Is that just adding it to the index.php anywhere ? Thanks for the help :(
|
I got it, sorry.
|
Quote:
1) Admin Panel -> Languages & Phrases -> Phrase Manager 2) Set "Phrase Type" to "GLOBAL" 3) Click button "Add New Phrase" 4) Write "Varname:" and "Text:" fields as it says install instruction. |
Quote:
|
All times are GMT. The time now is 10:57 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|