XF 2.0 Use Batch Update Users to search for users with website

KevinMK

Member
Is there a way to use the form for Batch Update Users to search for users who filled in a specific field under Personal details? I'd love to search for people who have filled out the website field.

Can you use regex?
 
There is a good add on for this

 
This SQL query gets all users with a website for you:
SQL:
SELECT `xf_user`.`user_id`, `xf_user`.`username`, `xf_user_profile`.`website` FROM `xf_user` LEFT JOIN `xf_user_profile` ON `xf_user`.`user_id` = `xf_user_profile`.`user_id` WHERE `xf_user_profile`.`website` != ""
It fetches only username, user_id and website.

I would not use raw SQL queries in order to delete users - you would have orphaned data in your database!
 
Top Bottom