UBB.Dev
Posted By: Jamin [6.1x] Redirect on single member search result. - 09/13/2001 7:55 AM
This is something that's really small, probably not as efficient as it could be, and generally useless. So I'm sure some of the big hackers will laugh at me. (Granted it is bigger than align=center, but still... wink ) Oh well.

Anyway, I did this mostly (only) for member searching from the control panel, though I'm sure it could probably be applied to all other searches as well. What it does, is if there's only a single match on the search, it auto-redirects you to that profile. My primary intent was to make searching by member number a little faster - I thought, If I search for Member X, and there is only one Member X out there, why should I have to open his profile myself? So there's just one less step in this immediate gratification world. smile

So, to accomplish this feat, here ya go.

In cp_user_search_results.pl:

Find:
Quote
quote:
Replace that with:
Quote
quote:
Hope you like. smile

---Skorpion

[ 09-13-2001: Message edited by: Skorpion ]
Posted By: LK Re: [6.1x] Redirect on single member search result. - 09/18/2001 10:46 PM
Me like wink
yeah, it would be good for small-time boards wink
© UBB.Developers