vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Links Directory > vBa Links Directory v4.0 Support > Modifications

Reply
 
Thread Tools Display Modes
  #1  
Old 03-30-2010, 04:36 PM
NashChristian's Avatar
NashChristian NashChristian is offline
Senior Member
 
Join Date: Nov 2007
Location: Nashville, Tennessee
Posts: 249
Lightbulb Adding a Pathed Google Map Link to the Linkbit Drop-Down Menu ~ Using Custom Fields

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&amp;l={vb:raw link.linkid}&amp;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

Last edited by NashChristian; 03-30-2010 at 04:44 PM.
Reply With Quote
  #2  
Old 06-09-2010, 01:58 AM
vethelp vethelp is offline
Junior Member
 
Join Date: May 2009
Posts: 7
Default

thx just added this in a jiffy
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add Mapping to the Linkbit Drop-Down Menu? NashChristian "How Do I..." Questions 1 03-30-2010 03:53 PM
begging for answer on drop down menu for link directory drynax Modifications 15 07-05-2008 08:05 AM
Multiple selection menu and custom fields BWJ Bugs From 3.0 Beta 2 1 06-04-2008 12:04 PM
Adding a custom dropdown menu ADT Troubleshooting / "How do I..." Questions 1 03-22-2006 03:26 PM
drop down menu on custom pages dont work karlsson Troubleshooting / "How do I..." Questions 7 11-22-2004 04:07 AM


All times are GMT -4. The time now is 07:53 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.