![]() |
Find "Inactive" Users
We use a flag in our database to show whether a user account has been made "inactive" (ie disabled so they cant access the board.. used when an emplyee leaves our company).
I am trying to add a line to the user.php file to add a link similar to the FIND ALL USERS that will list all the "inactive" accounts. This is the SQL query that does what I want.. SELECT * FROM `user` where empactive=0 LIMIT 0, 30 Is there any way I can add this to a link so that user.php will run this query and show the results? I was hoping that it would be a simple line like the "List visitors in the last 24 hours" link. Any help would be appreciated! |
in your user.php find this line:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Excellent it works.. THANKS! !!
I was half way there.. I already had... PHP Code:
|
because all what you've done was just add a link to the cp, but you didn't tell the script what to do if you click on the link
this part PHP Code:
|
Ahh right.. got it :) - Thanks!
|
Ok that works, but it's still a pain to trawl through each one to delete it.
I have tried to ammend the MASS PRUNE users search thing to give an option to find any users who show as inactive (as above).. I've added.. PHP Code:
|
I have also added:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
What have I missed? |
"No idea what any of it does, but it looks logical"
Very good statement ;) as i see you sometimes change a 0 to 1: if it is an Ex-Employe then empactive=0 you said in the code empactive=1... so change PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
Thanks.. I'm even more confused now :)
I think what I had actually worked except that the PHP Code:
I've resolved it by taking out the IF statement and always running that bit of the query thing. I'll be so pleased when I understand what I'm talking about :) Thanks for your help! |
All times are GMT. The time now is 10:05 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:
|