Friday, June 20, 2014

Dân Chơi

Add-ons Xenforo - View Map 1.2

Compatible (tương thích):
  • XenForo 1.3
Description:

Creates a link called View Map for use in messages. Clicking the View Map link will show a Google map with a marker to a specific location.

Live Example:

http://www.southbayriders.com/forums/threads/2143/

(Example of View Map link)
pic001
(Example of View Map page)


(Example of link in visitor tab)
pic003 
(Example of Options page)
pic004
Features:
  1. Google map is display in your forum.
  2. Visitor tab has link to View Map.
  3. Easy to use link creator.
How to use:
  1. Under the Visitors tab, click the View Map link.
  2. Move map to desired location.
  3. Copy the Map code and paste it into a message.

    Example of map code:
    pic005 


    Installation:
    1. Download viewmap_v1.0.zip and unzip it.
    2. Upload the Andy folder to your server. The correct location is library/Andy.
    3. From your Admin Control Panel, go to the "Install Add-on" page.
    4. Upload the addon-ViewMap_v1.0.xml file.
    5. Click the Install Add-on button.
    Setup:
    1. Copy these two files from the add-on directory to a web viewable directory of your choice:

      viewmap.php
      crosshair.gif
    2. Add information to the Options page indicating the link to the viewmap.php file.
    3. The default coordinate should be changed to your preference. By default the map will show San Jose California. To change, edit the viewmap.php file and change the following to the coordinates you prefer:

      $coordinates = '37.339386,-121.894956';
    How it works:
    1. Member clicks View Map link.
    2. View Map link is a Custom BB Code.
    3. Custom BB Code calls a link which is defined in the Route Prefix.
    4. The Route Prefix calls Viewmap.php located in the add-on directory.
    5. The Viewmap.php calls the andy_viewmap template.
    6. The template calls viewmap.php file which runs in an iFrame.
    7. The viewmap.php file calls the Google API and display a map.
    Sending a donation:

    If you like this add-on and use it often, please consider sending a small donation. My PayPal email address provided upon request via Private Conversation.

    Thank you.
DOWNLOAD HERE