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)
 Question about adding states to members.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

taropatch
Average Member

USA
741 Posts

Posted - 23 March 2004 :  14:26:27  Show Profile
I've read about people adding states to topic.asp, but I just want to add it to the members.asp so members can seek out others near them.

Also, I would like to change the state input to a drop down so that people use the same abbreviations.

Is anyone using the UK Counties, US States mod? What exactly does it do?

I know that adding the state to the members.asp should be easy, but I'm pretty clueless. Can someone please give me some guidance? Thanks!

Andy

Webbo
Average Member

United Kingdom
982 Posts

Posted - 24 March 2004 :  20:12:28  Show Profile  Visit Webbo's Homepage
The MOD gives your members a list of all the US States to choose from rather than them typing it into their profile
If you use the add-on it will allow the state to be included in the 'Author' box at the side of their post under their stars
Go to Top of Page

taropatch
Average Member

USA
741 Posts

Posted - 24 March 2004 :  22:27:44  Show Profile
Thanks Webbo. I'll try adding the mod for the states to help with more consistent field entries.

Can anyone offer some advice/a hand with adding the states to the members.asp?
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 25 March 2004 :  07:59:11  Show Profile
<edit> I removed my original message because I seen it wasn't the right info. I'll post a tested member.txt when I get it right Or if I get it right ;^) </edit>

<take two>
This mod adds state to the members page, with list member by state ascending or descending options.
This is Snitz 3.4.04 members file. You should be able to substitute if you have the some Snitz version and no other modifications to members.asp.
As always, make a back-up copy first.
members.txt Right click and "save" or Left click and copy
</take two>

    _-/Cripto9t\-_

Edited by - cripto9t on 25 March 2004 09:12:51
Go to Top of Page

taropatch
Average Member

USA
741 Posts

Posted - 27 March 2004 :  01:12:04  Show Profile
Thanks Cripto9t,

Works great! Thanks so much for the text file. Hey, how can I add a check box to search by state?

I think all I need to do now is add the states mod so that there's a dropdown for state abbreviations. This would keep things much more uniform. Right now some people have California, CA, Kalifornia, etc. The state field in the members.asp is a big help to my members.

Thanks again.
Go to Top of Page

taropatch
Average Member

USA
741 Posts

Posted - 27 March 2004 :  01:14:31  Show Profile
Uh oh. I juse noticed when I do a search from the members.asp, I get this error:
quote:
Microsoft VBScript runtime error '800a0009'
Subscript out of range: 'mM_DATE'

/forum/members.asp, line 416

What did I do wrong?
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 28 March 2004 :  15:10:06  Show Profile
quote:
Originally posted by taropatch

Uh oh. I juse noticed when I do a search from the members.asp, I get this error:



I'm getting the same thing. I'll have a look and see if I can find the problem.

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

cripto9t
Average Member

USA
881 Posts

Posted - 28 March 2004 :  15:28:08  Show Profile
That didn't take long . I missed something .

Find this code around line 105 and add the part in red. Again, make sure it's in the right place .
'New Search Code
If strMode = "search"  and (srchUName = "1" or srchFName = "1" or srchLName = "1" or srchInitial = "1" ) then 
	strSql = "SELECT MEMBER_ID, M_STATUS, M_NAME, M_LEVEL, M_EMAIL, M_STATE, M_COUNTRY, M_HOMEPAGE, "

I'll update my link in a few.

I'll have a look at the search by state thing and see if I do it. No promises though .

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

taropatch
Average Member

USA
741 Posts

Posted - 28 March 2004 :  23:25:39  Show Profile
Thanks cripto9t!

You were so quick with the update. I applied it and it worked like a charm. Thanks so much for doing that for me.
Go to Top of Page

taropatch
Average Member

USA
741 Posts

Posted - 31 March 2004 :  12:40:17  Show Profile
BTW, cripto9t, based off of the code that you provided, I also added M_CITY. It's working great. I've been trying it on a test forum but should be ready to implement it on my live forum very soon. Just trying to upgrade some of my other mods while I'm at it. Thanks again!
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 01 April 2004 :  19:41:41  Show Profile
Cool , you're catching on . I haven't had a chance to look at the search thing, but I haven't forgot. I should have time this weekend.

    _-/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 3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07