1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

View Map 1.5

Creates a link called View Map for use in messages.

  1. AndyB
    Compatible XF Versions:
    • 1.2
    • 1.3
    • 1.4
    • 1.5

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

    Live Example:


    (Example of View Map button)


    (Example of View Map)


    (Example of View Map link in visitors tab)


    (Example of Options page)


    1. Large easy to use Google map displayed full screen.
    2. Responsive code supports all devices.
    3. Visitors tab has a link called View Map, this allows viewing the Google map.
    4. View Map button when clicked shows exact location in Google map.
    5. All phrases start with viewmap_ for your convenience.
    1. Download viewmap_v1.4.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.4.xml file.
    5. Click the Install Add-on button.
    Setup step 1:

    Copy the following two files from the add-on directory to a web viewable directory of your choice, for example a /misc/ folder:


    Setup step 2:

    Edit the viewmap.php file and change the first few variables to reflect your forum information.

    Setup step 3:

    Option 1: Contact me so I can add your domain to the allowed URLS that can use this add-on. In the conversation explain you're using the View Map add-on and would like to have your URL added to the allowed URLs that can use this API.


    Option 2: Get your own key from Google using this link:


    Update the viewmap.php file variable called $key located on the top of the file.

    Setup step 4:

    In the Options page, add the Location and Default Coordinates.

    How to create a View Map button:
    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:


    4. To change the word "View Map" to another language, edit the following BB Code:

      Admin CP -> Custom BB Codes -> [map] -> HTML Replacement:
    How it works:
    1. Member clicks View Map button.
    2. The View Map button 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 redirects to viewmap.php.
    6. The viewmap.php file calls the Google API to display a map.
    Sending a donation:

    If you like this add-on, please consider sending a small donation.


    Thank you.
    RobaFresca, bkrox, THLove and 4 others like this.

Recent Updates

  1. See description
  2. See description
  3. See description

Recent Reviews

  1. dking
    Version: 1.5
    The difference in someone that dabbles at code and a developer is that a developer understands his work and listens when feedback is given. Andy's Code worked perfectly on existing systems but GOOGLE made a change that requires an API for all new domains. Andy quickly identified the problem, added the needed code and released the changes within 24 hours. This is why I use the mods from AndyB, this is why I have no problem throwing a few dollars to him.
  2. RobaFresca
    Version: 1.4
    As always: A tiny, helpful and working tool ! Keep that great work on AndyB....Thank you so much !!!
  3. adwade
    Version: 1.4
    AndyB has created another great add-on here. This is perfect for any forum that is trying to organize an event, or quickly relate to others where anything is located at. It was quick to install, easy enough for a beginner to configure and (as always) works like a charm!
  4. AndreaMarucci
    Version: 1.2
    Nothing less than perfect. You've to translate also some phrases in the viewmap.php files if you want to translate it in another language...
  5. RightJob
    Version: 1.0
    Another great addnot, I'm also using it from time to time, and it works well, thank you!