![]() |
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:
|
Thank you, worked out great! :)
|
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:
PHP Code:
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:
|
awesome hack, but is their anyway the counter can reset at midnight instead of the last 24h after you install it?
THANKS :) |
Question you set up a condition "<if condition="$numbernewregusers24">" but how to you set that condition as on?
|
Quote:
|
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?
|
Quote:
|
yep all working now
great hack |
Nice hacks
|
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 |
Quote:
Anyone? Anyone? Can anyone answer my question above? Pretty please? :) |
Quote:
Aw well... |
There is new version of this hack 1.02.
Quote:
if you want to have statistics of latest new member and statistics by this hack at the same time instead of step 5 you have to do next: 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> |
Quote:
This didn't work. :( |
me too. i can't see any change after install this hack. is it working with 3.07?
|
Quote:
same happend to me |
ive installed this on my second board and all i get is loads of , , , , , ,, like that with no names in between
any ideas what ive done? regards dean |
i installed it at http://www.oh-twadi.com/forum/index.php?styleid=63
and well it doesnt reset at 12 midnight uk time can anyone help |
Quote:
|
why not
from 12oclock to 12oclock is 24hours do ur maths mate ok so looks like we are back at school rnt we from 11:59pm on the 20th to 11:59pm on the 21st how many hours is that mate 24 how many hours are in a day 24 mate,so why doesnt it reset after 24hours at midnight from midnight to midnight it should count |
Great little mod, ive been having alot of new users these days... great to see the new members names
|
Very nice! working on my site!
|
Any chance of this being ported to 3.5? Really enjoyed it.
|
All times are GMT. The time now is 04:43 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|