Author |
Topic |
|
miperez
Junior Member
Spain
243 Posts |
Posted - 27 October 2004 : 12:10:45
|
I am interested in modifying members.asp so that, apart of having the option to list all members whose nick starts with a given letter, I can search all members belonging to a country.
Before starting coding, however, I'd like to know if someone has created a similar MOD for this.
I did a search and this is the only similar topic I have found. |
Best Regards
Mikel Perez
"Hell is the place where everything test perfectly, and nothing works"
|
Edited by - miperez on 27 October 2004 12:11:58 |
|
cripto9t
Average Member
USA
881 Posts |
Posted - 28 October 2004 : 08:17:11
|
I half way did this and I thought I had it working better than it does. Heres a Link Right click and save. It seems to work great with everything on the top, username, lastname, etc. It fails miserably when one of the asc/desc links is hit in the columns, name, posts, etc. I've also got search by state in there. Anyway you might be able to use the drop down country list in the folder, there is also a dropdown for states. The "inc_statelist" and "inc_countrylist" in the folder are includes for "inc_profile".
edited 12/16/04 to fix url |
_-/Cripto9t\-_ |
Edited by - cripto9t on 16 December 2004 09:11:28 |
|
|
miperez
Junior Member
Spain
243 Posts |
Posted - 28 October 2004 : 08:21:01
|
Thanks, Brian.
I ahev already downloaded it. I will install it today, and tell you if it works. |
Best Regards
Mikel Perez
"Hell is the place where everything test perfectly, and nothing works"
|
|
|
cripto9t
Average Member
USA
881 Posts |
Posted - 28 October 2004 : 08:30:48
|
That was quick . Like I said it has a major bug in it, but you may be able to spot the fix. |
_-/Cripto9t\-_ |
|
|
miperez
Junior Member
Spain
243 Posts |
Posted - 28 October 2004 : 12:02:17
|
Thanks, Brian!!
I'm still doing some little adjustments (for instance, I do not need to check the State at all, so I can get rid of that part), but mainly it's working, and it's going to be useful.
Regarding the bug you mentioned, I think that I fixed it. Simply, around line 336 (in my members.asp), you can change SrchCountry (which just holds "0" or "1" depending on whether you selected something in the combo or not, to SearchCountry, which is the real textual name for it:
strNames = "UserName=" & srchUName &_
"&FirstName=" & srchFName &_
"&LastName=" & srchLName
"&INITIAL=" &srchInitial &_
"&Country_Name=" & SearchCountry & "&"
'## Location Search Mod ...
This way, it doesn't "fail miserably" |
Best Regards
Mikel Perez
"Hell is the place where everything test perfectly, and nothing works"
|
|
|
cripto9t
Average Member
USA
881 Posts |
Posted - 28 October 2004 : 15:58:09
|
No problem . Thanks for the fix. I seen the 1 or 0 in the dropdown when I was looking at it this morning and thought that might have something to do with it. I'm sure that I had it working better than that, because I started with just "country". When I had that working I decided to go for state also. So I probably just wrote the wrong one down on my last edit . |
_-/Cripto9t\-_ |
|
|
|
Topic |
|