Google Map Profile Integration - نوشته شده در (1231 Views)
Starting Member
CptSternn
مطلب: 17
17
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. <
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
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:
Code:

				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:

Code:

				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
<
 
شما باید یک متن وارد کنید