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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Town/City
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

7thgear
Starting Member

10 Posts

Posted - 27 March 2006 :  16:43:43  Show Profile
Throughout Snitz there are various options regarding the location of a Member. The ones I refer to are City, State & Country. I would like to rename every reference of "City:" and change it to "Town/City:". This is because in the UK not everyone lives in or near a City such as London, Edinburgh or Manchester. Some live nearer to Towns such as Irvine, Kendal or Banbury and it would be better if we could refer to Towns as well as Cities.

I don't want to write a load more code as I don't know how but it would be cool to rename the options on Members pages from City: to Town/City:

I've had a quick look but can't figure it out fully. Can anyone help with which files refer to City: so I can change them. I've tried to search within the ASP files and even been here (http://support.microsoft.com/kb/309173/en-us) to alter my PC but it didn't work.

Any help would be much appreciated

weeweeslap
Senior Member

USA
1077 Posts

Posted - 27 March 2006 :  16:47:34  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
in topic.asp search for city: and change it to town/city: should be in the file twice and in pop_profile.asp it should come up again, not sure how many it shows up but change it the same way serach for city: and change it to town/city:

coaster crazy
Go to Top of Page

7thgear
Starting Member

10 Posts

Posted - 27 March 2006 :  16:59:54  Show Profile
Thank you for the quick reply WWS. Unfortunately I could not find one reference to City or City: in Topic.asp and while there are references to City in pop_profile.asp, there are no references to City: (the references in there look like db table stuff or variables of some kind - I'm no coder or dba as you've probably guessed )
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 27 March 2006 :  18:20:49  Show Profile  Visit muzishun's Homepage
In the file inc_profile.asp around line 311-318 in an unmodified Snitz, change this:
	if strCity = "1" then
		Response.Write	"                    <tr>" & vbNewLine & _
				"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>City: </font></b></td>" & vbNewLine & _
				"                      <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""City"" size=""25"" maxLength=""50"" value="""
		if strMode <> "Register" then Response.Write(rs("M_CITY"))
		Response.Write	"""></font></td>" & vbNewLine & _
				"                    </tr>" & vbNewLine
	end if

to this:
	if strCity = "1" then
		Response.Write	"                    <tr>" & vbNewLine & _
				"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Town/City: </font></b></td>" & vbNewLine & _
				"                      <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""City"" size=""25"" maxLength=""50"" value="""
		if strMode <> "Register" then Response.Write(rs("M_CITY"))
		Response.Write	"""></font></td>" & vbNewLine & _
				"                    </tr>" & vbNewLine
	end if

I didn't see any other references in inc_profile.asp, so that should be everything. Won't need to make any database changes or anything else. This just changes the way it displays.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

7thgear
Starting Member

10 Posts

Posted - 28 March 2006 :  03:47:35  Show Profile
Thank you very much for that Bill. It's worked a treat.


Go to Top of Page

alanh
New Member

United Kingdom
92 Posts

Posted - 28 March 2006 :  11:10:14  Show Profile
7thgear,

there is a MOD at the following link http://www.snitzbitz.com/mods/details.asp?Version=All&mid=111 this allows you to change from the USA states, to UK towns in a dropdown list. If your members are all from the UK, Scotland etc, then it may be useful to you.
Go to Top of Page

7thgear
Starting Member

10 Posts

Posted - 28 March 2006 :  11:16:00  Show Profile
Thanks for that alanh. I'll check it out
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 28 March 2006 :  13:07:25  Show Profile  Visit muzishun's Homepage
Glad you got it working.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
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 1.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07