This is a port of
this mod for vB4. To add a pathed "View Google Map" to the linkbit drop down menu. This uses custom fields for the address information, which must be setup in advance.
In the
'adv_links_linkbit' template, on approximately line 68, directly BELOW this code:
PHP Code:
<li><a href="showlink.php?{vb:raw session.sessionurl}do=goto&l={vb:raw link.linkid}&linkurl={vb:raw link.linkurl_string}" target="_blank"<vb:if condition="$show['nofollow']"> rel="nofollow"</vb:if>>{vb:rawphrase view_site}</a></li>
ADD THIS CODE:
PHP Code:
<vb:if condition="$link['field1'] AND $link['field2'] AND $link['field3']"><li><a href="http://local.google.com/maps?f=q&hl=en&q={vb:raw link.field1}<vb:if condition="$link['field11']">+Suite+{vb:raw link.field11}</vb:if>+{vb:raw link.field2}+{vb:raw link.field3}+{vb:raw link.field4}" target="_blank"<vb:if condition="$show['nofollow']"> rel="nofollow"</vb:if>>View Google Map</a></li></vb:if>
Of course you will need to change the custom field
numbers, to match the ones you use in your admincp > vba links directory > custom fields > list.
Enjoy!

Jeff