![]() |
Hunt out Inactive Users
I made this cause someone asked for it in the requests. I'm not even sure if it counts as a hack (just two lines of code to hack :p)!
Basically you plop the inactiveusers.php down in your admin dir. It will list all your users, show important info such as When they were last active, when they last posted, when they joined etc. If they havent posted at all, and have been a user for more than 3 days (you can specify how many days) then it will say they are inactive! And if you click the "YES!" link (under the Inactive? column) it will let you delete the person (it prompts you first). You can add a link to the admin CP. Here are the 'full' steps on how to install the 'hack': Step One: open index.php in your admin folder Find: PHP Code:
PHP Code:
Copy inactiveusers.php (attached below) into your admin folder And you're done! hard, eh ;p I was going to add the option to specifiy how many users per page since this would be bad for larger forums. But I couldnt figure it out. If anyone wants to give me a hand with that I would appreciate it. Have fun ^_^ :bunny: [EDIT: This hack is really old, and currently nothing (other than stuff on the first page) is added in this hack. I'll update this soon with something new for you guys with mods form this thread. Aswell there was a small update on post #29, go here for the update: https://vborg.vbsupport.ru/showthrea...719#post249719 ] |
Screen shot ^-^
|
thanks :D
|
Nice, could be useful.
|
Could be, but there is that problem of it loading all 10 000 users on one page (for you Fire), lol. Do you think you could direct me in the right direction on how to add 'pages' for this hack? I took a look but got confused @_@;
Aswell I used your instructions on how to do alternating table columns ^_^ thanks |
Check out icon.php there's some pagination code there.
|
Thanks :)
I'll take a look at it and see if I can manage to put something together, hehe. |
oh man, u just made my life a million times easier
|
Nice hack, no matter how small, it plays a pretty good role in forum management. Many forums could benifit from this hack, I know when I actually get around to finishing my community and releasing it, I will be using this as I can not stand having people take up database space if they have no actual intention of posting.
Nice Work, I knew someone would finally get around to doing it ;). - SaintDog |
Quote:
Just do what i do, bug the heck out of them till they start posting, works for me lol |
sweet, thanks
|
Quote:
lol, jk ;) |
Found a problem. It shows the exact same date and time for the last post of anyone who has ever posted.
|
eurgh, I cant make anything without it having atleast one bug ;p
Just re-download the php file attached above >.< I updated it. |
Code looks the same to me...
|
What exactly does this hack do, except list all users and give an indication if they are inactive???
Does it allow you to delete all inactive ones with one click? Or send a mail to all of the inactive ones??? |
@ Firefly: I was going to ask the exact same thing :-)
@ Takara: Also, can you make it where you have the option to e-mail all the inactive users so they know they will be deleted in say one week. Last warning note or something :-) - djr |
this is more like a visual addition to your adminCP that allows you to see members that NEVER post or inactive. there is also a quick delete user (YES) at the end of the query
I find this a brilliant addition |
How make to Super Moderators can use this hack?
|
As far as I know the administrator of the forum & website have to give you administrative permissions to the forum you are querying about to access the control panel, however if this person knows you and trusts you then it will work with this additionÂ…Â…?
however there might be another way, not to sure |
you basicly do the same why as you installed it for the admin cp but in the mod cp ;)
|
Nice hack :)
|
I need next:
If the user did not come on a forum of XX days, irrespective of quantity of his reports - he inactive If at the user of 0 reports - he too inactive Help me. |
:D :D :D :D Nice hack :D :D :D
:bandit: :bandit: THX :bandit: :bandit: |
Very nice... thanks :)
|
Another usefull and good adition for my board Takara, many thanks :D
|
Just to clear it up for some people.
What it does is lists every user on your forums. If the user has NEVER posted, and the user has been a member of your forums for 3 days (you can change that specific amount of days) then it tells you they are inactive. If you click the 'YES!' link, indicating they are inactive, you can delete that person. And Firefly, yea the code was the same, lol. <-- stupid :bunny: |
Quote:
lol |
Quote:
Anyway, find this in the inactiveusers.php PHP Code:
So replace the code above with: PHP Code:
|
beautiful! I requested something like this
|
takara, good job :)
not sure, but does it email automatically the user if deleted? i dont know if this is default in VB... :) |
uuummm, I'm not really sure you know. It uses vB's built in deleting functions. I was going to add an option to be able to email the person, however it required some editing of some additional files. (adding value="$userid" etc to the email forum in the admin CP, so the hack can just easily refrence the page and have it complete its self. a simple thing).
If you still want it I'll go ahead and give you it :p |
Is there any way this can be adapted to show anyone who hasn't visited the board for a specified number of days?
I want to "cull" any users who MAY have posted in the past, but haven't logged into the board for a while. Any ideas? |
i personally think is really important to let the user know he(she) was deleted. :)
|
Quote:
Thanks for the hack by the way.. very useful! |
Quote:
https://vborg.vbsupport.ru/showthrea...719#post249719 |
Great hack Takara I've been looking for such hack for a while. Can we put an option to send inactive users for 30 days for example a default e-mail. Just to let them know that we still care about them.....!!! can anyone do that for me please :)
Installed of course.... |
This is good.. but it makes it difficult to see exactly WHO you should delete.
Needs to ONLY say "YES" if they have not VISITED the site for the last XX days. Is that possible ? |
Thanks Takara, still needs to be a little easier to use for lazy gits like me though :)
|
I've ALMOST done it myself... but whats the difference between "Last Visit" and "Last Activity" ?
This is what I have so far: Find this... PHP Code:
PHP Code:
|
All times are GMT. The time now is 02:35 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:
|