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/Code)
 Google Map Profile Integration
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

CptSternn
Starting Member

Ireland
17 Posts

Posted - 23 June 2008 :  11:46:48  Show Profile  Visit CptSternn's Homepage  Reply with Quote
I was going to upload this as a MOD, but it seems a waste since it's just a quick one line edit.

If you want to incorporate GoogleMaps into your user profiles so your users can click on the LOCATION: field and have it open a window at GoogleMaps with their location highlighted, simply edit POP_PROFILE.ASP at around line #561 - change:

response.write myLocation

To:

Response.Write "<a target=""blank"" href=""" & "http://maps.google.com/maps?q=" & myLocation & """>" & myLocation & "</a>"

Thats it.
<

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 23 June 2008 :  12:46:06  Show Profile  Reply with Quote
Google maps will give you weird results if there are any streets with the same name as the cities, unless you make this change.

Just above that line, at appx lines 534-542:

Find the following:

				if myLocation <> "" then
					if myCountry <> "" and myCountry <> " " then
						myLocation = myLocation & "<br />" & myCountry
					end if
				else
					if myCountry <> "" and myCountry <> " " then
						myLocation = myCountry
					end if
				end if


Change them to say:


				if myLocation <> "" then
					if myCountry <> "" and myCountry <> " " then
						myLocation = myLocation &", "& myCountry
					end if
				else
					if myCountry <> "" and myCountry <> " " then
						myLocation = myCountry
					end if
				end if
<

Edited by - Carefree on 23 June 2008 12:46:25
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.07