Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Search members by country
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

miperez
Junior Member

Spain
243 Posts

Posted - 27 October 2004 :  12:10:45  Show Profile
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  Show Profile
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
Go to Top of Page

miperez
Junior Member

Spain
243 Posts

Posted - 28 October 2004 :  08:21:01  Show Profile
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"
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 28 October 2004 :  08:30:48  Show Profile
That was quick . Like I said it has a major bug in it, but you may be able to spot the fix.

    _-/Cripto9t\-_
Go to Top of Page

miperez
Junior Member

Spain
243 Posts

Posted - 28 October 2004 :  12:02:17  Show Profile
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"
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 28 October 2004 :  15:58:09  Show Profile
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\-_
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07