Support Forums

Google Maps Module for V3 & V4

This is a discussion on Google Maps Module for V3 & V4 within the Modules / Plugins / Modifications forums, part of the Developer Forums category; The google map module is module that collects address details from an ad and diaplays a google map inline with ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 07-29-2008, 12:38 PM   #1
curmudgeon
 
Join Date: Mar 2006
Posts: 5,410
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default Google Maps Module for V3 & V4

The google map module is module that collects address details from an ad and diaplays a google map inline with the ad or creates a link to open a map in a new browser window.

The module allows for customization via the admin interface shown below.

The module can be set to pull the address details form EITHER "extra fields" OR from "Registration fields" but NOT. You have to chose one or the other in the modules administration.

To use this module you MUST create an extra field that is a dropdown with 2 values "yes" and "No" and it must be set to be "displayed" for the category that wil have the ability to display inline maps. This extra fild is what will allow your users to turn the map display on and off.

If you chose to collect address data from extra fields then you must also create an extra field for....

Address
City
State
Zip
Country

These need to be single line text fields.


Attached is a copy of the readme.txt file with the installation instructions. Please read it very carefully and if you have questions or doubts please ask BEFORE purchasing this module. I also recommend that potential non-US customers try a few addresses on googles website to make sure it properly creates a map. You can also send me an address and I will place a test ad on one of my sites so we can make sure the module works properly for your area.

This module is sold AS IS with no warantly expressed or implied. Support will be given on a best effort basis to get the module working as designed. Modifications and customization is done at your own risk and expense.

Because it works with google maps and interfaces with their site, there may come a time that Google may make changes that effects the operation of this module. Since I have no control over google I can not control their changes and therefor can not gaurantee this module will work forever. I will make an effort to keep the script working and any updated versions of the script will be free to existing users.

Time permitting I will likely keep this module current and working but there is no gaurantee or promise of that.

The price for this module is $50 USD per domain name. Installation is available for an additional cost.
Attached Images
File Type: jpg admin.jpg (89.8 KB, 40 views)
File Type: jpg typical_ad.jpg (107.3 KB, 51 views)
Attached Files
File Type: txt readme.txt (12.6 KB, 38 views)
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 07-30-2008, 02:49 PM   #2
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 20
crystal is on a distinguished road
Default

Hi Larry,

Is it possible to use this mod without the address field, so that the map just shows city, state, zip, country? (The marker would be on the city).

Also, can the "directions" popup be added to the map? (When you click the marker you can add your address and it will bring up directions to the listing address).

Thank you!
__________________
Crystal
v4.0.8 Dev
crystal is offline   Reply With Quote
Old 07-30-2008, 03:47 PM   #3
curmudgeon
 
Join Date: Mar 2006
Posts: 5,410
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by crystal
Hi Larry,

Is it possible to use this mod without the address field, so that the map just shows city, state, zip, country? (The marker would be on the city).
If you chose to use the users registration fields there is no option to display just the city.

However,if you create extra fields, and set the module to use them for the address, then you can set the extra fields so they are not required. That way people can leave the address blank and a map will be created for just the city.

Quote:
Originally Posted by crystal
Also, can the "directions" popup be added to the map? (When you click the marker you can add your address and it will bring up directions to the listing address).

Thank you!
Nope. The whole direction aspect was not working with the API so that has been removed.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 08-01-2008, 02:59 AM   #4
Member
 
Join Date: Apr 2006
Posts: 76
Rep Power: 23
gppromano is on a distinguished road
Default

Hi Larry,

It could create two fields latitude and longitude, to manually enter the coordinates, when google maps, not locate them properly advertisement in a map.

Thanks
gppromano is offline   Reply With Quote
Old 08-01-2008, 11:43 AM   #5
Member
 
Join Date: Oct 2007
Posts: 60
Rep Power: 17
ksuralta is on a distinguished road
Default

Larry,

Where could we purchase this module?

Thanks,
__________________
Kenneth
http://www.phlist.com
v4.0.8 Developer + Custom Template
ksuralta is offline   Reply With Quote
Old 08-03-2008, 02:37 PM   #6
curmudgeon
 
Join Date: Mar 2006
Posts: 5,410
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

You can contact me via PM through the forum here or e-mail through the forum. Im going to be out of town with limited or no access to E-mail unti Aug 7th though.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 08-11-2008, 09:09 AM   #7
curmudgeon
 
Join Date: Mar 2006
Posts: 5,410
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Module veriosn 1.2 has been release.

- It fixes a variable conflict in the externalmap.php which prevented the external map links from working properly.

- additions to readme.txt file.

Existing clients can send me an e-mail or PM through the forum or from techconnx.net if you would like the updated files.

To upgrade from V1.1 to V1.2 all you need to do is upload the new files over your old files.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 09-08-2008, 11:05 PM   #8
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

Is there any way to use this map and hide created extrafield from showing up in the listing?
It is kind of pointless to lets say MAP: YES while map is shown below

I would rather hide that from listing display and keep it only when listing is created.
Any ideas what to change?
__________________
68 Classifieds � version 4.0.8 Designer

Last edited by MiśUszatek; 09-09-2008 at 12:12 AM.
Mi?Uszatek is offline   Reply With Quote
Old 09-10-2008, 02:53 PM   #9
curmudgeon
 
Join Date: Mar 2006
Posts: 5,410
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by MiśUszatek
Is there any way to use this map and hide created extrafield from showing up in the listing?
It is kind of pointless to lets say MAP: YES while map is shown below

I would rather hide that from listing display and keep it only when listing is created.
Any ideas what to change?
It needs to be set to displayed when created so its passed to the templates and in turn its value used to show/hide the map.

However, you can selectivly hide exta fields in the viewlisting template.

for example in the default V4 template file you have the section like this that goes over the extra fields and displays them.

Code:
{* Extra Fields *}
    {foreach from=$extrafields item=extras}
       <tr>
          <td><strong>{$extras.title}:</strong></td>
          <td>
              {if isset($extras.value)}
                  {foreach key=key item=item from=$extras.value}
                      {$item}<br />
                  {foreachelse}
                      {$extras.value}
                  {/foreach}
               {/if}
           </td>
        </tr>
{/foreach}
{* End Extra Fields *}
While looping over the fields you can add logic to check for a field name and then not display it, like this....

Code:
{* Extra Fields *}
    {foreach from=$extrafields item=extras}
       {if $extras.title<>"Map Available"}
        <tr>
          <td><strong>{$extras.title}:</strong></td>
          <td>
              {if isset($extras.value)}
                  {foreach key=key item=item from=$extras.value}
                      {$item}<br />
                  {foreachelse}
                      {$extras.value}
                  {/foreach}
               {/if}
           </td>
        </tr>
      {/if}
{/foreach}
{* End Extra Fields *}
now the above simply surrounds the loop in an evaluation and IF the extra field name DOES NOT EQUAL "Map Availabe" then the exta field will be displayed.

Make sense?
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 09-11-2008, 05:59 PM   #10
Member
 
Join Date: Aug 2008
Posts: 42
Rep Power: 13
Mi?Uszatek is on a distinguished road
Default

thanks, perfect solution
__________________
68 Classifieds � version 4.0.8 Designer
Mi?Uszatek is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Maps Module - Beta tester needed. Lhotch Technical Support 17 07-30-2008 12:30 PM
Google Juice fjarabeck Site Marketing 0 04-27-2006 01:40 PM


All times are GMT -4. The time now is 10:22 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0