Add to delicious
Add to technorati
Add to technorati
Digg it
furl
Yahoo

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorb83s
    • CommentTimeJul 30th 2008 edited
     # 1

    Hello,

    I needed this for my own projet but i think somebody else can use this first version.

    The code:
    http://pastebin.com/f2c4f0981

    The concept is simple you drag the icon over the map release it and save it and you are done, next version will include address finding etc.

    But for now.
    1. Create a file in ./pe-admin/fields/gmap.field.php
    2. Create a table like this one

    CREATE TABLE `gmap` (`id` int(11) NOT NULL auto_increment,
    `title_gmap` varchar(255) NOT NULL,
    `lt` varchar(25) NOT NULL,
    `lg` varchar(25) NOT NULL,
    PRIMARY KEY (`id`));

    3. Create a google key on:

    http://code.google.com/apis/maps/signup.html

    4. Add the following to /pe-admin/library/settings.lib.php

    $settings['gmap']['key'] = 'ABQIAAAAjI7F-dN0SmXFYVSdiFywVRTwzUR6sOX8Sp1N2ytbs7haf2_-qBS6NFTbhhxgL04Z8fm3xHP15lUYmA';
    $settings['gmap']['lat'] = '52.0946950569013';
    $settings['gmap']['lng'] = '5.1230621337890625';


    The lt and lg are the start coordinates for every new entry

    5. And now you need to do some extra hacking to get it working. Open pe-admin/modules/entrview.module.php

    and change row 12:$entry = $Db->fetch_row($getEntry); into $entry = $Db->fetch_array($getEntry);

    Now it should work.

    greetings Gijs

    Thankful People: Michael Dick, Luke
  1.  # 2

    This is really cool! I look forward to seeing more updates on it, great work!

    •  
      CommentAuthorravaza
    • CommentTimeAug 10th 2008
     # 3

    PureEdit gets more and more powerful

    • CommentAuthordidelco
    • CommentTimeJul 29th 2009
     # 4

    Great, It will be great that become included in pureedit new releases

    • CommentAuthorb83s
    • CommentTimeOct 22nd 2009 edited
     # 5

    Sorry for the plug but i created my own pureedit build with this option build in

    http://twitter.com/notsopureedit