1
cflfans
Xdirectory
  • 2005/3/9 22:23

  • cflfans

  • Just popping in

  • Posts: 37

  • Since: 2004/5/29


Ok now I'm having fun
When a business is in the directory and you click on map.

The problem is (and I fixed most of it)It did go to yahoo//maps.com but I changed it to go to yahoo//ca.maps.com.

But the country on the listing box still says united states
I want it to say Canada this way it will go to the map and my visitors won't have to click to Canada.
Right now If you go to this sectionand click on map you will see what i mean.

Thanks
Mark

2
cflfans
Re: Xdirectory
  • 2005/3/10 21:48

  • cflfans

  • Just popping in

  • Posts: 37

  • Since: 2004/5/29


Does anyone have an answer for this one?

3
jlm69
Re: Xdirectory
  • 2005/3/10 21:59

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


Try looking for these lines in the templates/xdir_item.html, xdir_listingfull.html and any other file that has the map button on it.
------------------------------------------
<form name="mapForm2" action="http://us.rd.yahoo.com/maps/home/submit_a/*-http://maps.yahoo.com/maps" target="_new" method="get">
<input type="hidden" name="addr" value="<{$link.address}>" />
<input type="hidden" name="csz" value="<{$link.city}>, <{$link.state}> <{$link.zip}>" />
<input type="hidden" name="country" value="us" />
<input type="hidden" name="srchtype" value="a" />
<input type="submit" name="getmap" value="Map" />
</form>
------------------------------------------------------
change the country value from "us" to I'm guessing but "ca" or your country code.

That should take care of your problem.

John*/

4
cflfans
Re: Xdirectory
  • 2005/3/11 1:37

  • cflfans

  • Just popping in

  • Posts: 37

  • Since: 2004/5/29


WOW!!!!!!!!!

I opened up 3 files thast have that and changed the country value from "us" to "ca" (that is what it is) and uploaded the new files with no changes.
Then I changed <{$link.state}> <{$link.zip}> to <{$link.Province}> <{$link.Postal Code}> that also did not work. It did change the text it shows on the yahoo box to province and postal code.

I then went over to yahoo canada and changed ths link "http://us.rd.yahoo.com/maps/home/submit_a/*-http://maps.yahoo.com/maps"

to the link you see below
So it does everything but change the United states to Canada what up with that?


<form name=mapForm2 action="http://us.rd.yahoo.com/maps/maps/toHome/*-http://ca.maps.yahoo.com/maps?t=a" target="_new" method=get>
<input type="hidden" name="addr" value="<{$link.address}>">
<input type="hidden" name="csz" value="<{$link.city}>, <{$link.Province}> <{$link.Postal Code}>">
<input type="hidden" name="country" value="ca">
<input type=hidden name=srchtype value=a>
<input type=submit name="getmap" value="Map">*/

5
krystinevo
Re: Xdirectory

I replaced the original form html in the templates with the following and didn't mess with the city or state fields... works fine for me.

<form name=mapForm2 action="http://ca.maps.yahoo.com/maps/home/submit_a/*-http://ca.maps.yahoo.com/maps" target="_new" method=get>
<input type="hidden" name="addr" value="<{$link.address}>">
<input type="hidden" name="csz" value="<{$link.city}>, <{$link.state}> <{$link.zip}>">
<input type="hidden" name="country" value="ca">
<input type=hidden name=srchtype value=a>
<input type=submit name="getmap" value="Map">
</form> */

6
cflfans
Re: Xdirectory
  • 2005/3/11 4:06

  • cflfans

  • Just popping in

  • Posts: 37

  • Since: 2004/5/29


<form name=mapForm2 action="http://ca.maps.yahoo.com/maps/home/submit_a/*-http://ca.maps.yahoo.com/maps" target="_new" method=get>
<input type="hidden" name="addr" value="<{$link.address}>">
<input type="hidden" name="csz" value="<{$link.city}>, <{$link.state}> <{$link.zip}>">
<input type="hidden" name="country" value="ca">
<input type=hidden name=srchtype value=a>
<input type=submit name="getmap" value="Map">
</form>
Thanks a bunch krystinevo
That did the trick for me also

Cheers
Mark*/

Login

Who's Online

152 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 152


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits