Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
GPX-to-MAP-Display Details »»
GPX-to-MAP-Display
Version: 1.1.2, by ScratchMang ScratchMang is offline
Developer Last Online: Aug 2016 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.2.2 Rating:
Released: 12-03-2014 Last Update: 12-04-2014 Installs: 3
Uses Plugins
Re-useable Code Code Changes Translations  
No support by the author.

First and foremost, I personally did not write this MOD. I was fortunate enough to have a friend who is far more skilled than I when it comes to programming to create this MOD for me. All credit where Credit due.

I will provide what support I can on this MOD.

Tested and working with vBulletin 4.2.2.

In short, this MOD will parse your forums for threads with a GPX file attached, and then parse and display that GPX File In-Line via Google Maps.

Please read the instructions closely as you need to obtain a Google API for this to work properly.

Download the MOD from here ...

https://github.com/taeram/gpx-to-map-vbulletin



Licensing

This code is distributed under the MIT License.


Installation / Upgrading

To install or upgrade the product:

Download the latest release from the Releases tab, and unpack it on your computer.
Login to the Admin Control Panel in your vBulletin server
In the sidebar, click "Plugins & Products"
In the sidebar, click "Manage Products"
Scroll to the bottom of the page, and click "Add/Import Product"
Click the "Choose File" button, and select the product.xml you unpacked earlier.
If upgrading, be sure and select "Yes" to the "Allow Overwrite" option
Click the "Import" button

The first time you install the Product, you'll need to edit a template:

Login to the Admin Control Panel in your vBulletin server
In the sidebar, click "Styles & Templates"
In the sidebar, click "Style Manager"
In the "Style Manager" table, find the "MASTER STYLE", and click the ">> <<" button to select it
In the "MASTER STYLE Templates" list, double click on "Postbit Templates >>"
Under "Postbit Templates >>", double click "postbit_legacy"
In the Template edit box, search for "postrow"
Modify the code from this (some code omitted for clarity):

<div class="postbody">
<div class="postrow ...">

To this

<div class="postbody">
{vb:raw post.gpx_to_map_html}
<div class="postrow ...">

Settings

To configure the settings for GPX to Map:

Login to the Admin Control Panel in your vBulletin server
In the sidebar, click "Settings"
In the sidebar, click "Options"
From the "Settings to Edit" list, select "GPX to Map Options"
Click "Edit Settings"
Customize the settings as you see fit, and click "Save"

Most settings have defaults, except for the "Google Maps API Key" setting, which you'll need to get from the Google Developer Console:

Sign in to https://developers.google.com/
Create a project, give it a name
Go to APIs & Auth => APIs
Enable Google Maps JavaScript API v3
Go to APIs & Auth => Credentials
Generate a Public API access "Browser Key"
Back in vBulletin, open up the "GPX to Map Options" page
Paste the key from Google into the "Google Maps API Key" box
Click "Save"



GPX-To-Map.png

Download Now

File Type: zip gpx-to-map-vbulletin-master.zip (7.3 KB, 14 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-05-2014, 06:11 PM
v123shine v123shine is offline
 
Join Date: Sep 2008
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Congratulation, nice mod
5 stars.
Reply With Quote
  #3  
Old 12-05-2014, 06:16 PM
ScratchMang ScratchMang is offline
 
Join Date: Sep 2010
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. I will pass along the complements ....
Reply With Quote
Reply

Thread Tools

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


All times are GMT. The time now is 05:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03486 seconds
  • Memory Usage 2,230KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (1)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete