|
|
| Author |
Message |
lhna
New User
Joined: 22 Mar 2010
Posts: 24
|
Posted: April 2nd 2010, 11:25 pm Post subject: Search Memberlist? |
|
|
| Looking for a hack/mod to allow users to search the memberlist. I just installed "Search in User Profiles", but believe it or now, username is not a searchable field. We're using this for our neighborhood, and are using people's real names for usernames. I want people to be able to type in a person's name (username) and find their profile. Any suggestions? |
|
| Back to top |
|
 |
Dogs and Things
Well Known User
Joined: 11 Sep 2006
Posts: 189
|
Posted: April 3rd 2010, 1:19 am Post subject: |
|
|
Look!
Second Hack in that list is the one you're after, Hack number 8 is a nice one too. |
|
| Back to top |
|
 |
lhna
New User
Joined: 22 Mar 2010
Posts: 24
|
Posted: April 3rd 2010, 9:03 am Post subject: |
|
|
| Ah, I was searching for "search" memberlist or "search" username instead of "find". Thanks! |
|
| Back to top |
|
 |
Dogs and Things
Well Known User
Joined: 11 Sep 2006
Posts: 189
|
Posted: April 3rd 2010, 10:19 am Post subject: |
|
|
Enjoy!
It is better to search for general terms like "Memberlist" or "Viewtopic" etc. Those give you a list of all Hacks related to that particular part of your board. And thus makes you have to go through a large list of Hacks, but at the same time making you find additional nice Hacks. |
|
| Back to top |
|
 |
lhna
New User
Joined: 22 Mar 2010
Posts: 24
|
Posted: April 3rd 2010, 9:04 pm Post subject: |
|
|
Have you applied both of these? The Memberlist Find User worked fine, but I tried Sort Memberlist Per Letter, which was a very small and simple hack, but it didn't do anything. I see that it's confirmed to work on 2.0.4 - 2.0.6, but I'm running 2.0.22. What version are you running?
thanks |
|
| Back to top |
|
 |
Dogs and Things
Well Known User
Joined: 11 Sep 2006
Posts: 189
|
Posted: April 4th 2010, 2:41 am Post subject: |
|
|
I run 2.0.23 and have it working nicely.
Did you install it in all your templates? |
|
| Back to top |
|
 |
lhna
New User
Joined: 22 Mar 2010
Posts: 24
|
Posted: April 4th 2010, 7:15 am Post subject: |
|
|
| Yeah, I only have one template anyway. Perhaps it's conflicting with one of my other hacks? I didn't cause any of my previous hacks to stop working so I kinda doubt it's that. It's so small and simple, I can't imagine what went wrong. Maybe I'll just start over and try it again. Must have done something wrong. |
|
| Back to top |
|
 |
Dogs and Things
Well Known User
Joined: 11 Sep 2006
Posts: 189
|
Posted: April 4th 2010, 12:03 pm Post subject: |
|
|
| What is supposed to appear is a row of letters at the very bottom of the userlist, did you check there? |
|
| Back to top |
|
 |
lhna
New User
Joined: 22 Mar 2010
Posts: 24
|
Posted: April 4th 2010, 4:08 pm Post subject: |
|
|
| Dogs and Things wrote:
|
|
What is supposed to appear is a row of letters at the very bottom of the userlist, did you check there?
|
Yeah, there was no row of letters anywhere on my memberlist. I tried it again and I got it working now. Here was the deal, in case it helps anyone else. The instructions said find this line and make an addition before it:
| Code:
|
|
$sql = "SELECT username, user_id, user_viewemail, user_posts, user_regdate, user_from, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_avatar, user_avatar_type, user_allowavatar
|
Problem is, that line occurs twice in my memberlist.php file. So I made the addition before the first occurance, which turned out not to be correct. Adding it before the second occurance instead made it work.
And my row of letters appears on the top of the memberlist. (Which I'm glad, because my users probably wouldn't see it if it was at the bottom of the memberlist!)
Anyway, got it going now ... thanks! |
|
| Back to top |
|
 |
Dogs and Things
Well Known User
Joined: 11 Sep 2006
Posts: 189
|
Posted: April 4th 2010, 4:15 pm Post subject: |
|
|
Well done!
I seemed to remember the letters appeared at the bottom and that I changed things so that they moved to the top. But I was wrong, from what you say the top is the place they should appear. And yes, that the logic place for it.
Nice little hack, specially for boards with many users.
Greetings. |
|
| Back to top |
|
 |
|