1
scbron
MxDirectory and Maps not working
  • 2007/5/30 17:20

  • scbron

  • Just popping in

  • Posts: 6

  • Since: 2007/1/20


Mxdirectory 3.01 the yahoo maps function stopped working. It looks to be on Yahoo end. Is this an easy fix? Suggestions please.

Powered by XOOPS 2.0.16
Linux infong 2.4 #1 SMP Thu Jan 13 08:59:31 CET 2005 i686 unknown
PHP Version 4.4.4
GD Version bundled (2.0.28 compatible)
Mysql 4.0.25

2
toppertan
Re: MxDirectory and Maps not working
  • 2007/7/31 3:21

  • toppertan

  • Just popping in

  • Posts: 1

  • Since: 2007/7/31


I'm not too familiar with Yahoo API, so I switched my maps over to Google with the following code in the files templates/xdir_link.html and templates/xdir_listingfull.html that are in the mxdirectory module. It works for me so far, at least until google makes changes. Make sure to clear templates_c cache to see the change.

Quote:


<!-- REPLACE THE FOLLOWING CODE WITH CODES FOR YOUR COUNTRY FROM THE /MAPS DIRECTORY -->
<form action="http://maps.google.com/maps?" method="get" name="mapForm2" target="_new" id="mapForm2">
<input type="hidden" name="f" value="q" />
<input type="hidden" name="hl" value="us" />
<input type="hidden" name="q" value="<{$link.address}>, <{$link.city}>, <{$link.state}> <{$link.zip}>" />
<input type=submit name="getmap" value="Map">
</form>
<!-- END OF CODE REPLACEMENT FOR COUNTRY MAPS -->



Hope this is helpful.

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!