Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2015-09-23 01:24:49

Falkon303
Member
Registered: 2015-09-20
Posts: 4

quick PHP edit to hide Banned users.

I didn't see anywhere to remove Banned users easily, but one thought that crossed my mind is that search engines will still access those nasty spam urls as a link in the userlist.

This is a quick PHP edit to hide Banned users from the user list.

Open your root userlist.php, and go to around line 153, right where the table row is being created

before the table row, ad the following -

if ($user_title_field !== "Banned") { ?>

(this is your table row)
 

<?php ;}

you'll also probably want to actually drop them from your db record, but this is an easy edit.

Last edited by Falkon303 (2015-09-23 01:26:05)

Offline

#2 2015-09-23 12:50:37

chris98
Member
From: England, United Kingdom
Registered: 2013-05-31
Posts: 1,292
Website

Re: quick PHP edit to hide Banned users.

You should do

!= $lang_common['Banned']

for language reasons.

Offline

#3 2015-09-24 01:14:32

Falkon303
Member
Registered: 2015-09-20
Posts: 4

Re: quick PHP edit to hide Banned users.

Ahh you are right!  Thanks.

Offline

Board footer

Powered by FluxBB