Ning Developer Docs

I have just completed the advanced search tutorial, and it works great, except a banned member is showing up in the search results, i've checked and the line

$query = $query->filter("my->xg_index_status", '<>', "banned");

does exist in the index controller (along with the pending exclusion). However, it doesn't seem to exclude the banned members!

Is this a bug or, have i made a mistake?

Please Help!

Alex

Views: 1

Replies to This Discussion

The NING source code has moved on since that tutorial was put together, and either 'banned' no longer exists in xg_index_status, (and is now called 'blocked'), or 'banned' now exists in my->status eg:


$query->filter('my->xg_index_status', '<>', 'pending');
$query->filter('my->xg_index_status', '<>', 'blocked');
$query->filter('my->status', '<>', 'banned');

Thanks Ning,

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service