CyberGrenade
07-09-2006, 05:28 AM
I have added a mod that will display the google map associated with a link based on where the server for that domain is hosted. I think it is kinda cool. It uses two different APIs to generate the code, so it does take some time to load it. That is why I have added the page as a link details page instead of adding it to the links.tpl.
Here is the code, and how to install it. As always, if you find this useful, please add your site to my directory http://www.cybergrenade.com
Here is a URL of an example:
http://www.cybergrenade.com/linkinfo.php?s=1
First - Get an API keycode from Google Maps.
http://www.google.com/apis/maps/signup.html
Second - Create the code page.
Copy the code below and add it to your root directory as a file called linkinfo.php
Content visible to registered users only.
Third - Create the template page. Create a page called linkinfo.tpl with the code below and add it to your templates directory.
Content visible to registered users only.
Forth - Add your Google MAP API code to the linkinfo.tpl page.
Replace this code with the key Google gave you for your site.
Content visible to registered users only.
Fifth - Modify your link.tpl page so that after the link title, you have an icon or a word loads the info or details page.
This is the code that I use.
Content visible to registered users only.
The graphic I use, was downloaded from this site:
http://www.ndesign-studio.com/resources/pixel_icons.htm
I have also added a visitor map to my site that uses the Google API. You can see it by going to: http://www.cybergrenade.com/map.php
I need to clean up the code and optimize it before I upload it here.
As always, if you find this information or mod useful, please add your site to my directory as a Reciprocal Link, Featured Link, or Regular Link.
Thanks......
Here is the code, and how to install it. As always, if you find this useful, please add your site to my directory http://www.cybergrenade.com
Here is a URL of an example:
http://www.cybergrenade.com/linkinfo.php?s=1
First - Get an API keycode from Google Maps.
http://www.google.com/apis/maps/signup.html
Second - Create the code page.
Copy the code below and add it to your root directory as a file called linkinfo.php
Content visible to registered users only.
Third - Create the template page. Create a page called linkinfo.tpl with the code below and add it to your templates directory.
Content visible to registered users only.
Forth - Add your Google MAP API code to the linkinfo.tpl page.
Replace this code with the key Google gave you for your site.
Content visible to registered users only.
Fifth - Modify your link.tpl page so that after the link title, you have an icon or a word loads the info or details page.
This is the code that I use.
Content visible to registered users only.
The graphic I use, was downloaded from this site:
http://www.ndesign-studio.com/resources/pixel_icons.htm
I have also added a visitor map to my site that uses the Google API. You can see it by going to: http://www.cybergrenade.com/map.php
I need to clean up the code and optimize it before I upload it here.
As always, if you find this information or mod useful, please add your site to my directory as a Reciprocal Link, Featured Link, or Regular Link.
Thanks......