The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Hunt out Inactive Users Details »» | |||||||||||||||||||||||||
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 )!
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 ] Show Your Support
|
Comments |
#42
|
||||
|
||||
Takara,
Is there any way that you can make it so it will follow however we have the date and time set up on our boards individually? I went in and tried to edit the date and time in the php file but it wouldn't wrap the date right when I did. Also, in order to make the RED color appear for the YES option on Inactive?, I had to move the font color to just before the YES word. Like this: $yninactive="<a href=\"user.php?s=$session[sessionhash]&action=remove&userid=".$row["userid"]."\" target='_blank'><font color=\"#FF0000\">YES!</a></font>"; or it wouldn't show YES in red. Just thought you might want to know. And thanks for the fix! It works great now! |
#43
|
||||
|
||||
Sorry about this Takara, but I noticed that when you enter another amount of days to check for in the Days Inactive box, when you click submit, the number reverts back to 3 instead of staying at whatever number you put in there. Wouldn't it be better to stay at the new number until you change it again so you can tell by looking at it how many days you specified the last time you changed it?
Also, I tried the inactiverusers-se file you have up here and it said YES in the last column of users that had posted today and left messages today also. Is that how it is supposed to work? Just curious. |
#44
|
||||
|
||||
Quote:
But thanks for the suggestions you two. I've updated both PHP files ^-^ :bunny: |
#45
|
||||
|
||||
I have my date showing as May 6, 2002 and my time showing as 5.45 pm on the board. Is there any way to have it show in the listing according to how we have it set on our board? I tried changing it in the php file, but it didn't wrap the time right when I did.
|
#46
|
||||
|
||||
Thanks for the FONT COLOUR fix Boofo, I thought it should be in RED
So now we just need a ONE CLICK.. DELETE and EMAIL (individual or ALL Yes's) |
#47
|
|||
|
|||
Takara please could you please answer my question in post # https://vborg.vbsupport.ru/showthread.php?postid=249758#post249758]37[/URL]
I really need that |
#48
|
||||
|
||||
The font color=red was already there, just had it in the wrong spot.
The one Click idea would be a good addition. (Hint...Hint...) |
#49
|
||||
|
||||
You're guys requests are getting beyond my abilities ;p
But, I'll look at it never the less. and see what I can do. |
#50
|
||||
|
||||
Sorry about that. If you can get the time thing set (or tell me how to so it wraps right), I'll be happy with that.
By the way...what is the main difference between the standard file and the se file you made? Just curious. |
#51
|
||||
|
||||
I think that I'll stick to running a phpMyAdmin query after giving a warning, first..
Much easier, and with one hit on the Enter button, all users who didn't heed the warning and stayed inactive, are all deleted... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|