daily menu » rate the banner | guess the city | one on oneforums map | privacy policy (aug.2, 2013) | DMCA policy | flipboard magazine

Go Back   SkyscraperCity > Fun Forums > About the forums

About the forums » Testing | Archive

Reply
 
Thread Tools
Old November 14th, 2013, 10:11 AM   #1
RagazzoSiberiano
мультифора
 
Join Date: Oct 2008
Location: Novosibirsk
Posts: 3,875
Likes (Received): 1784

Feature request: MapBB library to embed maps seamlessly

Hi,
There's a new map library out there that allows easy editing and integrating maps right into forum posts, without screenshotting and making links to interactive maps etc.

http://mapbbcode.org/
RagazzoSiberiano no está en línea   Reply With Quote
Old November 15th, 2013, 09:35 AM   #2
Jan
High there, what's up!
 
Jan's Avatar
 
Join Date: Jul 2002
Location: SkyscraperCity
Posts: 27,186
Likes (Received): 15549

Looks cool, we'll have a look at it.
Jan no está en línea   Reply With Quote
Old November 22nd, 2013, 01:31 PM   #3
v3
Frequent flyer
 
Join Date: Apr 2011
Location: KRR
Posts: 737
Likes (Received): 113

It would be really nice feature to be embedded into the forum mod. Click the Likes icon to vote :-)
__________________
387 flights
394 999 miles
953 h 37 min in the air
v3 no está en línea   Reply With Quote
Old December 9th, 2013, 10:55 PM   #4
RagazzoSiberiano
мультифора
 
Join Date: Oct 2008
Location: Novosibirsk
Posts: 3,875
Likes (Received): 1784

del
RagazzoSiberiano no está en línea   Reply With Quote
Old December 10th, 2013, 07:34 AM   #5
fserges
Never again!
 
fserges's Avatar
 
Join Date: Aug 2009
Location: St.Petersburg
Posts: 4,062
Likes (Received): 1544

We have plenty info which could be shown in maps style.
This specific library has been used in a number of forums and showed its usefulness.
__________________
The mobile phone is switched off or outside of coverage area ...
fserges no está en línea   Reply With Quote
Old December 10th, 2013, 10:38 PM   #6
RagazzoSiberiano
мультифора
 
Join Date: Oct 2008
Location: Novosibirsk
Posts: 3,875
Likes (Received): 1784

Zverik, the service author has released a JS loader for the library. Basically, you just link a JS file, and it scans the page, replacing [map][/map] codes with embed map and editor. So you don't need to modify the vBulletin engine at all, or change it minimally.
RagazzoSiberiano no está en línea   Reply With Quote
Old December 11th, 2013, 11:31 PM   #7
Union Man
Interstellar
 
Union Man's Avatar
 
Join Date: Sep 2009
Location: Norwich
Posts: 1,049
Likes (Received): 3654

What's the news on this? This would be extremely beneficial to be able to embed a map on the forums, it would make it so much easier showing other members where construction sites are etc.
Union Man no está en línea   Reply With Quote
Old December 26th, 2013, 05:21 PM   #8
dkiselev
Registered User
 
Join Date: Dec 2013
Posts: 1
Likes (Received): 0

Hi with new version of libriary, you can add [map] support without plugin, just using admin pannel.

First.
Add scripts loading in header template.

Styles And Templates -> Search in Templates
Find headinclude template

Add follow text to the and of template

Code:
<script src="//cdn.jsdelivr.net/mapbbcode-loader/1.2.0/MapBBCodeLoader.plain.js"></script>
<script>
    YAHOO.util.Connect.successEvent.subscribe(function(status, result){if(result[0]){if(result[0].responseText){if(result[0].responseText.indexOf('[map')>0){if(window.updateMapBBCode){setTimeout(window.updateMapBBCode, 500);}}}}});        
</script>
First of them adds lib. Second one used for proper work of AJAX posts editor. If you don't use them, just link the lib.

Code:
<script src="//cdn.jsdelivr.net/mapbbcode-loader/1.2.0/MapBBCodeLoader.plain.js"></script>
Second:
Add custom bbcodes.

You need two of them (with option and without).

Code:
Title: MapBB
BB Code Tag Name: map
Replacement: <div class="mapbbcode">[map]{param}[/map]</div>
Example: [map]map data[/map]
Description: Add interactive maps in yor message
Use {option}: No
Remove Tag If Empty: No
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes
Second one with option placeholder

Code:
Title: MapBB
BB Code Tag Name: map
Replacement: <div class="mapbbcode">[map={option}]{param}[/map]</div>
Example: [map=10,42.45495,18.5366][/map]
Description: Add interactive maps in yor message
Use {option}: Yes
Remove Tag If Empty: No
Disable BB Code Within This BB Code: Yes
Disable Smilies Within This BB Code: Yes
Disable Word Wrapping Within This BB Code: Yes
Disable Automatic Link Parsing Within This BB Code: Yes
I test this for 4th version of vBulletin.
Ask me via forum or via skype dmitry.v.kiselev if something will go wrong.
dkiselev no está en línea   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



All times are GMT +2. The time now is 12:03 AM. • styleid: 14


Powered by vBulletin® Version 3.8.11 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions Inc.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.

vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.

SkyscraperCity ☆ In Urbanity We trust ☆ about us | privacy policy | DMCA policy

Hosted by Blacksun, dedicated to this site too!
Forum server management by DaiTengu