1
Peekay
Turn off or change map in Mxdirectory 3.0 RC1
  • 2006/6/28 19:11

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


How do I disable or change the 'map' settings? Can't use Yahoo maps in the UK yet.
A thread is for life. Not just for Christmas.

2
zyspec
Re: Turn off or change map in Mxdirectory 3.0 RC1
  • 2006/6/28 20:26

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


There are instructions and additional examples for several non-US countries in the /Maps directory.

3
Peekay
Re: Turn off or change map in Mxdirectory 3.0 RC1
  • 2006/6/28 23:42

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Thx
A thread is for life. Not just for Christmas.

4
DarinAllan
Re: Turn off or change map in Mxdirectory 3.0 RC1

Has anyone configured Mxdirectory for Australian Maps? Whereis or similar.

Cheers....Darin

5
DarinAllan
Re: Turn off or change map in Mxdirectory 3.0 RC1

Ok if not, can we get some advice on how to remove the map button?

6
zyspec
Re: Turn off or change map in Mxdirectory 3.0 RC1
  • 2006/9/13 12:23

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


The easiest way to remove the maps is to just delete the code in the templates...

In /templates/xdir_link.html delete lines 49-59

<td>
 
  <
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 name="getmap" type="submit" class="c_mapbtn" value="<{$smarty.const._MD_MAPBTN}>" />
  form>
 
td>


and in /templates/xdir_listingfull.html delete lines 57-67

<td>
 
  <
form action="http://us.rd.yahoo.com/maps/home/submit_a/*-http://maps.yahoo.com/maps" method="get" name="mapForm2" target="_new" id="mapForm2">
    <
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 name="getmap" type="submit" class="c_mapbtn" value="<{$smarty.const._MD_MAPBTN}>" />
  form>
           td>


Then go to ADMIN > MODULES and update the mx-directory module which will regenerate the templates.*/

7
DarinAllan
Re: Turn off or change map in Mxdirectory 3.0 RC1

Excellent thanks for your help zyspec

Login

Who's Online

482 user(s) are online (374 user(s) are browsing Support Forums)


Members: 0


Guests: 482


more...

Donat-O-Meter

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

Latest GitHub Commits