xoops forums

vimana

Just popping in
Posted on: 2006/1/25 0:29
vimana
vimana (Show more)
Just popping in
Posts: 20
Since: 2005/1/26
#81

Re: Mx-directory - input welcome

tx to you. Realy a great thanx for the great module!!! Maybe It's not so difficult to make a map works in all the world, not only in the Usa. I've done some changes and I find some sites have maps of all the world (more or or less) it's working for country i'm interested (italy, uk, germany and spain) Just I've to make some more tryes and i'll post it

Mamba

Moderator
Posted on: 2006/1/25 5:38
Mamba
Mamba (Show more)
Moderator
Posts: 10798
Since: 2004/4/23
#82

Re: Mx-directory - input welcome

If possible, I would like to add a foreign language as an option. In the admin, I could select a default foreign language (e.g. English), and then on the entry form I would check "default foreign language" checkbox, and the user would see "English spoken here" graphic similar to the "Coupon" one. That would help the visitors in Paris or in Munich to see if a particular restaurant or business is good for people who don't speak French or German.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

bjbtexas

Not too shy to talk
Posted on: 2006/1/25 12:30
bjbtexas
bjbtexas (Show more)
Not too shy to talk
Posts: 106
Since: 2004/7/3 2
#83

Re: Mx-directory - input welcome

There was a Australian map module hack a while back on the xdirectory you might use to help make the international changes:

https://xoops.org/modules/repository/s ... file.php?cid=108&lid=1477

and here's a thread for Canada map changes.

https://xoops.org/modules/newbb/viewto ... id=143454#forumpost143454

I was looking for site maps when I ran across these.

bjbtexas

Not too shy to talk
Posted on: 2006/1/25 12:42
bjbtexas
bjbtexas (Show more)
Not too shy to talk
Posts: 106
Since: 2004/7/3 2
#84

Re: Mx-directory - input welcome

Quote:

Fraggo wrote:
Does anyone here have any experience in doing a mod rewrite on mx-directory?

I'm about to take this task on and am looking for a little guidance...

I want

/modules/restaurants/singlelink.php?cid=32&lid=4343
to read
/restaurants/CategoryName+Restaurants/RestaurantName

Also, same goes for URLS like

/modules/restaurants/viewcat.php?cid=27
should be...
/restaurants/CategoryName+Restaurants


Things I have seen are rewriting them to be link-4343.html, whereas I want the actual business name in the URL...

Any input?


I don't know how to do it, but I installed a mod re-write like you describe on OS commerce for a client and the results where fantastic. He sold more in one week than he had all the previous year.

The only issue became I had so many modifications to the core, I couldn’t make more changes without breaking something.

tom

Friend of XOOPS
Posted on: 2006/1/25 12:43
tom
tom (Show more)
Friend of XOOPS
Posts: 1359
Since: 2002/9/21
#85

Re: Mx-directory - input welcome

where can MXD be downloaded as on Dev.Xoops the download just shows an error and I can't download.

Error:

Not Found

The requested URL /dl/mx-directory/5 - Beta and RC Releases/ mx-directory BETA v2.0/XOOPS2_mod_mx-directory.zip was not found on this server.

wcrwcr

Home away from home
Posted on: 2006/1/25 13:51
wcrwcr
wcrwcr (Show more)
Home away from home
Posts: 1114
Since: 2003/12/12
#86

Re: Mx-directory - input welcome

Hi tom

try here:

http://www.jlmzone.com/modules/mydownloads/visit.php?cid=1&lid=7

vimana

Just popping in
Posted on: 2006/1/26 22:01
vimana
vimana (Show more)
Just popping in
Posts: 20
Since: 2005/1/26
#87

Re: Mx-directory - input welcome

btw:
uk hack on map get map on post code (see the template files xdir_link.html & xdir_listingfull.html):
<{if $link.zip != ""}>
<td>
<form name=mapForm action="http://www.multimap.com/map/browse.cgi?" target="_new" method=get>
<input type="hidden" name="pc" value="<{$link.zip}>">
<input type=submit value="Map">
</form>
</td>
<{/if}>

italian hack 1 for map:
<form name=mapForm action="http://www.tuttocitta.it/tc/mappa/index.jsp?" target="_new" method=get>
<input type="hidden" name="com1" value="<{$link.city}>">
<input type="hidden" name="to1" value="<{$link.address}>">
<input type=submit value="Map">
</form>

italian hack 2 for map:
<form name=mapForm action="http://www.maporama.com/share/map.asp?" target="_new" method=get>
<input type="hidden" name="COUNTRYCODE" value="IT">
<input type="hidden" name="_XgoGCAddress" value="<{$link.address}>">
<input type="hidden" name="Zip" value="">
<input type="hidden" name="State" value="">
<input type="hidden" name="_XgoGCTownName" value="<{$link.city}>">
<input type=submit value="Map">
</form>

This second site i'm using for map have all countries.
I did't have time to do some tries but here I'm using this:
<input type="hidden" name="COUNTRYCODE" value="IT">
because IT it's the code of italy, probabily if i use a selectabe country in submit that give me the code of different counries in xdir_links table in county i can use:
<input type="hidden" name="COUNTRYCODE" value="<{$link.country>">
I still have to try it, sorry

btw if someone need italian language for mxdirectory, I've italian language of xdirectory and I'm finishing adding the missing things for mxdirectory.my mail for ask it, is b_sirius@beserious.org

vimana

Just popping in
Posted on: 2006/1/27 18:02
vimana
vimana (Show more)
Just popping in
Posts: 20
Since: 2005/1/26
#88

Re: Mx-directory - input welcome

ok I tested the maps It works. I need the time to check and write all country codes from www.maporama.com. I've only a problem I'm gonna replace county name in table xdir_links (country) with country code of maporama.com for get map so for display country name I've to write in html some like this:
<{if $link.country =="US"}> USA
<{elseif $link.country =="DE"}> Germany
<{elseif $link.country =="IT"}> Italy
<{elseif $link.country ==................................(all counties)
<{/if}>
I don't know about php & html programming. I'm just an amateur. maybe someone know a better way for do it.

About have different language i think the only way it's to use XOOPS multilanguage. I think in mxdirectory are included some languages and i can do italian.

nni123

Just popping in
Posted on: 2006/1/27 18:43
nni123
nni123 (Show more)
Just popping in
Posts: 17
Since: 2004/12/17
#89

Re: Mx-directory - input welcome

Fatal error: Call to a member function on a non-object in C:\software\Apache Group\Apache2\htdocs\modules\mxdirectory\language\english\main.php on line 4


any idea how to take of this..

thank you

sailjapan

Moderator
Posted on: 2006/1/29 13:34
sailjapan
sailjapan (Show more)
Moderator
Posts: 1672
Since: 2005/11/16
#90

Japanese map link (from romanized address)

Great Mod. Many thanks.
If you want to generate a Map for a location in Japan -using yahoo.co.jp- I've bodged a few lines of code that will take the post code and get you to within one click of a map on Yahoo. If your addresses are in Japanese fonts, you could do better.
As with Vimana's UK and Italian map link hacks above, type in the following to both xdir_link.html and xdir_listingfull.html :

<{if $link.zip != ""}>
<td>
<form name=mapForm2 action="http://search.map.yahoo.co.jp/search?" target="_new" method=get>
<input type="hidden" name="p" value="<{$link.zip}>">
<input type=submit value="Map">
</form>
</td>
<{/if}>
Never let a man who does not believe something can be done, talk to a man that is doing it.