Jump to content

Recommended Posts

Posted

What a pain this one is being. According to PHPBB, PHPBB3 has the [googlemaps][/googlemaps] BBCode built in (as far as I can gather at any rate), but my install does not. In my admin control panel it does not show it listed under installed BBCodes either. Anyone know where there are some instructions on how to add this tag, or know how to do it as it's driving me nuts!!

All I want to do is show the occasional map in PHPBB :(

Posted

Yup, it's the latest build (3.0.9) with no updates available. The only BBCodes showing are:

 

{TEXT}

{SIMPLETEXT}

{INTTEXT}

{IDENTIFIER}

{NUMBER}

{EMAIL}

{URL}

{LOCAL_URL}

{COLOR}

Posted

How about this, fresh from google themselves...

 

Google Earth API code is composed of two parts. One is two

 

You can get your key here: Sign Up for the Google Maps API - Google Maps API Family - Google Code

 

The second

 

var ge;

google.load("earth", "1");

function init() {

google.earth.createInstance('map3d', initCallBack, failureCallBack);

}

function initCallBack(instance) {

ge = instance;

ge.getWindow().setVisibility(true);

}

function failureCallBack(errorCode) {

}

google.setOnLoadCallBack(init);

 

If desired, some extra codes can be added to make other GE layers or your map files to show up in the 3D Earth. Here are a lot of examples:

Google Earth API Developer&#39s Guide - Google Earth API - Google Code

 

In phpBB, all these goes into the overall_header.html template since

is in that file.

 

The second part of the API is a simple

where the Earth will appear with an id "map3d" within the :

 

needs this call:

 

As an advanced usage, you can also add buttons or checkmarks to let the users turn on and off layers and features of GE like the navigation controls, the grids, the roads, international borders, that you can find their examples in the documentation.

  • Thanks 1
Posted

You'd think so wouldn't you? All you get is a URL with the tags shown at either end. Ah well, I'll come back to this one later.

 

Well, It'll give me something to do I suppose!!

Posted
not the right place for this, but how the hell do you embed youtube !??!

 

@RabbieBurns

You just need to use the little movie strip button three from the end of the quickedit box which will prompt you for the URL.

  • Thanks 1
Posted

Google's static maps API is pretty cool since it enables you to embed maps as images. :)

 

http://maps.googleapis.com/maps/api/staticmap?center=51.50400,-0.08216&zoom=15&size=640x400&maptype=roadmap&sensor=false&markers=color:red|label:S|51.50400,-0.08216

 

http://maps.googleapis.com/maps/api/staticmap?center=51.50400,-0.08216&zoom=15&size=640x400&maptype=roadmap&sensor=false&markers=color:red|label:S|51.50400,-0.08216

  • Thanks 1
Posted
That works, but it requires a bit of faffing around with the address (as I've spent the past 45 mins finding out!). I shall post more on this after I have got my head around it.
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...