WordPress.org

Ready to get started?Download WordPress

Forums

Driving Directions
Awesome! Works Perfectly! (3 posts)

5 stars
  1. jeffreytp
    Member
    Posted 7 months ago #

    Awesome Plugin! Works perfectly. Fast and easy! I did however change some code in the ddirections.php file from this:

    $output = '<div id="directions">
                      <p>'.__('To start the route enter your initial location:','ddirections').'</p>
                      <input id="from-input" type="text" value="" size="20" placeholder="'.__('Address','ddirections').'" />
                      <select style="display:none;" onchange="" id="unit-input">
                          <option value="metric" selected="selected">'.__('Metric','ddirections').'</option>
                          <option value="imperial">'.__('Imperial','ddirections').'</option>
                      </select>
                      <a href="#" onclick="WPmap.getDirections(\'manual\'); return false" class="map-button">'.__('Get the rute','ddirections').'</a>
                      <br />
                      <input id="map-config-address" type="hidden" value="'.$coordinates.'"/>
                     <div id="geo-directions">
                     <p>Tambien puedes...</p>
                      <a href="#" onclick="WPmap.getDirections(\'geo\'); return false" class="map-button">'.__('Use my location','ddirections').'</a>

    to this:

    $output = '<div id="directions">
                      <strong><p>'.__('For directions, enter your starting location:','ddirections').'</p></strong>
                      <input id="from-input" type="text" value="" size="70" placeholder="'.__('Address, City, State Zip','ddirections').'" />
                      <select style="display:none;" onchange="" id="unit-input">
                          <option value="metric" selected="selected">'.__('Metric','ddirections').'</option>
                          <option value="imperial">'.__('Imperial','ddirections').'</option>
                      </select>
                      <a href="#" onclick="WPmap.getDirections(\'manual\'); return false" class="map-button">'.__('Click Here to Get the route','ddirections').'</a>
                      <input id="map-config-address" type="hidden" value="'.$coordinates.'"/>
                     <div id="geo-directions">
                     <strong>Or you may also</strong>
    		<a href="#" onclick="WPmap.getDirections(\'geo\'); return false" class="map-button">'.__('Click Here to Use My Current Location','ddirections').'</a>

    I have the shortcode on a page as follows:
    [wpmap_directions_input]
    [wpmap_map]
    [wpmap_directions_container]

  2. foley2013
    Member
    Posted 7 months ago #

    Awesome…many thanks

  3. hectorgarrofe
    Member
    Plugin Author

    Posted 6 months ago #

    Thanks for your comment jeffreytp!

    I updated the plugin to 1.4.1 to fix some spelling errors.

    I hope the plugin will be useful!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.