Exclude user from searchs

Discussion forum for MOD Writers regarding MOD Development.
Locked
atoirtap
Registered User
Posts: 63
Joined: Thu Aug 01, 2013 8:34 pm

Exclude user from searchs

Post by atoirtap »

Hi buddies, I'm trying to introduce a minor limitation in searchs so a certain user's posts couldn't been viewables in search results. I found viewtopic.php?f=71&t=2156630 but it's not the same question.

I've been messing around in search.php, but not getting a clear idea about how to do that. Any clue?
User avatar
Jackanape
Registered User
Posts: 1076
Joined: Wed Oct 13, 2004 6:01 am
Location: Capitol of the Great State of New York
Name: Jack Drury
Contact:

Re: Exclude user from searchs

Post by Jackanape »

You ought to be able to do the same thing as cited in the post you mention, but direct it towards the user_id of the poster, instead of the forum. Essentially adding "WHERE user_id != $user_id" (where $user_id is the excluded user) to the query when it goes in.
~Extending the rule of meticulous exactitude to exaspirating punctillio...still.~
Treat your phpBB like a member of the family--Update and MOD her by hand, with HTML-Kit
: : Wanna Talk Poker? : : Image : :
atoirtap
Registered User
Posts: 63
Joined: Thu Aug 01, 2013 8:34 pm

Re: Exclude user from searchs

Post by atoirtap »

Thanks for answering, but the content of search.php is too complex for me and I don't know how to add the hack.
Locked

Return to “[3.0.x] MOD Writers Discussion”