Skip to content

cPMD phpMyDirectory Mods, Templates and Customization

Your Cart

Show Cart
Your Cart is currently empty.


Using Google Gadgets Print E-mail

(Replace all xsrc and xhref occurrences with src and href respectively, after you copy and paste the code blocks)

Google Gadgets are free and easy to use javascript modules that you can add to your website.  To make them dynamic, replace variables created in the Javascript with those created in listing pages.  

 For example, for Driving Directions, you can add something like this:

<script xsrc=\" http://gmodules.com/ig/ifr?url=http://www.google.com/ig/modules
/driving_directions.xml&up_from=&up_to=<? php echo $address_line1 ?>%20<?php echo $zip ?>&am p;up_country=0&synd=open&w=300&h=91&am p;title=&lang=all&country=ALL&border=% 23ffffff%7C3px%2C1px+solid+%23ffffff&output=js \ ">


Notice that the variables <? php echo $address_line1 ?>%20<?php echo $zip ?> are added to the script to make the Gadget dynamic and specific to the listing.

 

phpMyDirectory News