TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 123
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 62
  • Total: 62

MapQuest Integrated Directions

Started by brianjw, January 30, 2007, 02:55:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

brianjw

Well many of you may already use this and i know i have for a long time but here it goes... :D
This code is for the mapquest.

Code

<center><form action="http://www.mapquest.com/maps/map.adp" method="get">
<table cellpadding="3" cellspacing="0" border="0" style="font: 11px Arial,Helvetica;">
<tr><td colspan="2"><div align="center"><a href="http://www.mapquest.com/" target="_blank"><img border="0" src="http://cdn.mapquest.com/mqstyleguide/ws_wt_sm" alt="MapQuest"></a></div></td></tr>
<tr><td colspan="2">Address/Intersection:</td></tr>
<tr><td colspan="2"><input type="text" name="address" size="20" maxlength="80"></td></tr>
<tr><td colspan="2">City:</td></tr>
<tr><td colspan="2"><input type="text" name="city" size="20" maxlength="80"></td></tr>
<tr><td>State:</td><td>ZIP Code:</td></tr>
<tr><td><input type="text" name="state" size="3" maxlength="2"></td><td><input type="text" name="zipcode" size="10" maxlength="12"></td></tr>
<tr><td colspan="2" style="text-align: center;"><input type="submit" value="Get Map"><input type="hidden" name="CID" value="lfmapwid"></td></tr>
</table>
</form></center>

This must be used in a Script Block. This code is made for left or right scriptblocks. You can integrate into some other codes and feel free to post the entire code you used to integrate it with something else in a centerblock here.

Directions
-Copy and paste this into a left or right script block on your websites TP Admin.
-Activate the block and move it where you want.
-Customize it however you want.
-Integrate into CenterBlock or other than a smf/tp website.

Brianjw

brianjw

Code I Use
<center><form action="http://www.mapquest.com/maps/map.adp" method="get">
<table cellpadding="3" cellspacing="0" border="0" style="font: 11px Arial,Helvetica;">
<tr><td colspan="2">Address/Intersection:</td></tr>
<tr><td colspan="2"><input type="text" name="address" size="20" maxlength="80"></td></tr>
<tr><td colspan="2">City:</td></tr>
<tr><td colspan="2"><input type="text" name="city" size="20" maxlength="80"></td></tr>
<tr><td>State:</td><td>ZIP Code:</td></tr>
<tr><td><input type="text" name="state" size="3" maxlength="2"></td><td><input type="text" name="zipcode" size="10" maxlength="12"></td></tr>
<tr><td colspan="2" style="text-align: center;"><input type="submit" value="Get Map"><input type="hidden" name="CID" value="lfmapwid"></td></tr>
</table>
</form></center>

(Just Without the Image and link to there site)

Demo: Click here (username: test password: test --Do not abuse the account)
The MapQuest block is at the very bottom LEFT block. :)

RoarinRow

Thanks brian!  Been using this for awhile.   :up:

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

brianjw



tick

cool addition to the site!  just what I have been looking for.

bluedevil

Very cool Brian. I was using a HTML image in a block but switched to this script block instead. :up:

thefley

is there a way to make it the next page to pop up in new window, adding "about blank" somewhere?

Icarus

I modified this original slightly for my site to include a picture of the front entrance to my building  .  .  .

Quote<form action="http://www.mapquest.com/directions/main.adp" method="get">
<div align="center">
<input type="hidden" name="go" value="1">
<input type="hidden" name="2a" value="123 A Ave">
<input type="hidden" name="2c" value="Virginia Beach">
<input type="hidden" name="2s" value="VA">
<input type="hidden" name="2z" value="23460">
<input type="hidden" name="2y" value="US">
<table border="0" cellpadding="0" cellspacing="0" style="font: 11px Arial,Helvetica;">
<tr><td colspan="2" style="font-weight: bold;"><div align="center"><img border="0" src="http://www.mywebsite.com/images/mapquest_fr_ent.jpg" alt="Front Entrance"></div></td></tr>
<tr><td colspan="2" style="font-weight: bold;">FROM:</td></tr>
<tr><td colspan="2">Address or Intersection: </td></tr>
<tr><td colspan="2"><input type="text" name="1a" size="22" maxlength="30" value=""></td></tr>
<tr> <td colspan="2">City: </td></tr>
<tr> <td colspan="2"><input type="text" name="1c" size="22" maxlength="30" value=""></td></tr>
<tr><td>State:</td>
<td> ZIP Code:</td></tr>
<tr><td><input type="text" name="1s" size="4" maxlength="2" value=""></td><td>
<input type="text" name="1z" size="8" maxlength="10" value=""></td></tr>
<tr><td colspan="2">Country:</td></tr>
<tr><td colspan="2"><select name="1y"><option value="CA">Canada</option><option value="US" selected>United States</option></select></td></tr>
<tr> <td colspan="2" style="text-align: center; padding-top: 10px;"><input type="submit" name="dir" value="Get Directions" border="0"></td></tr>
<input type="hidden" name="CID" value="lfddwid">
</table>
</div>
</form>

You can find some other options here

MinasC

this is only for US and Canada , right ?

This website is proudly hosted on Crocweb Cloud Website Hosting.