+ Post New Thread
Results 1 to 15 of 15
Web Development Thread, Googlemaps BBCode on PHPBB3 in Coding and Web Development; What a pain this one is being. According to PHPBB, PHPBB3 has the [googlemaps][/googlemaps] BBCode built in (as far as ...
  1. #1

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,782
    Blog Entries
    22
    Thank Post
    380
    Thanked 1,728 Times in 787 Posts
    Rep Power
    514

    Googlemaps BBCode on PHPBB3

    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

  2. IDG Tech News
  3. #2

    nephilim's Avatar
    Join Date
    Nov 2008
    Location
    Bedfordshire
    Posts
    8,303
    Blog Entries
    2
    Thank Post
    1,090
    Thanked 1,162 Times in 900 Posts
    Rep Power
    529
    Have you updated it? It's a recent addition to the base code. Once updated you should see in the backend to update the phpbb portion of the forum.

    Enjoy.

  4. #3

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,306
    Blog Entries
    6
    Thank Post
    1,250
    Thanked 456 Times in 296 Posts
    Rep Power
    156
    not the right place for this, but how the hell do you embed youtube !??!

  5. #4

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,782
    Blog Entries
    22
    Thank Post
    380
    Thanked 1,728 Times in 787 Posts
    Rep Power
    514
    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}

  6. #5

    nephilim's Avatar
    Join Date
    Nov 2008
    Location
    Bedfordshire
    Posts
    8,303
    Blog Entries
    2
    Thank Post
    1,090
    Thanked 1,162 Times in 900 Posts
    Rep Power
    529
    in that case it should be a case of this

    [googlemaps]insert google map URL here[/googlemaps]

  7. #6

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,782
    Blog Entries
    22
    Thank Post
    380
    Thanked 1,728 Times in 787 Posts
    Rep Power
    514
    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.

  8. #7

    nephilim's Avatar
    Join Date
    Nov 2008
    Location
    Bedfordshire
    Posts
    8,303
    Blog Entries
    2
    Thank Post
    1,090
    Thanked 1,162 Times in 900 Posts
    Rep Power
    529
    How about this, fresh from google themselves...

    Google Earth API code is composed of two parts. One is two <script>s that needs to be within the <head> and the other is to be within a <div>.

    The first <script> is a key that authorizes your web site while it is accessing the Google servers:
    <script src="http://www.google.com/jsapi?key=YOUR_KEY_HERE"></script>

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

    The second <script> is composed of functions that initialize GE on your web page. The minimal version of it is as follows:

    <script type="text/javascript">
    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);
    </script>

    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 <head> is in that file.

    The second part of the API is a simple <div> where the Earth will appear with an id "map3d" within the <body>:
    <div id="map3d" style="height: 400px; width: 600px;"></div>

    <body> needs this call:
    <body onload="init()">

    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.

  9. Thanks to nephilim from:

    Dos_Box (19th July 2011)

  10. #8

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,782
    Blog Entries
    22
    Thank Post
    380
    Thanked 1,728 Times in 787 Posts
    Rep Power
    514
    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!!

  11. #9

    nephilim's Avatar
    Join Date
    Nov 2008
    Location
    Bedfordshire
    Posts
    8,303
    Blog Entries
    2
    Thank Post
    1,090
    Thanked 1,162 Times in 900 Posts
    Rep Power
    529
    haha, is it for edugeek or something else you have going on? I dont mind taking a look

  12. #10

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    10,166
    Blog Entries
    9
    Thank Post
    749
    Thanked 2,455 Times in 2,087 Posts
    Rep Power
    688
    Quote Originally Posted by RabbieBurns View Post
    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.

  13. Thanks to SYNACK from:

    RabbieBurns (22nd July 2011)

  14. #11

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,782
    Blog Entries
    22
    Thank Post
    380
    Thanked 1,728 Times in 787 Posts
    Rep Power
    514
    Quote Originally Posted by nephilim View Post
    haha, is it for edugeek or something else you have going on? I dont mind taking a look
    All in good time.

  15. #12
    Diello's Avatar
    Join Date
    Jun 2005
    Location
    Kent, England
    Posts
    1,144
    Thank Post
    111
    Thanked 228 Times in 128 Posts
    Rep Power
    72
    Does it work if you manually add the BBCode in the ACP?

    Info here: Google Maps BBCode - BBCodes

  16. #13


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    5,959
    Thank Post
    180
    Thanked 1,797 Times in 1,340 Posts
    Rep Power
    468
    Google's static maps API is pretty cool since it enables you to embed maps as images.



    Code:
    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

  17. Thanks to Arthur from:

    Dos_Box (20th July 2011)

  18. #14

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,782
    Blog Entries
    22
    Thank Post
    380
    Thanked 1,728 Times in 787 Posts
    Rep Power
    514
    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.

  19. #15

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,782
    Blog Entries
    22
    Thank Post
    380
    Thanked 1,728 Times in 787 Posts
    Rep Power
    514
    Quote Originally Posted by RabbieBurns View Post
    not the right place for this, but how the hell do you embed youtube !??!
    A bit late, but you can add the BBCode found here to enable the YouTube tag.

    phpBB &bull; Adding Custom BBCodes in phpBB3 &bull; 3.0

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 60
    Last Post: 13th March 2008, 05:39 PM
  2. watching movies on projectors
    By MManjra in forum Hardware
    Replies: 5
    Last Post: 7th July 2005, 11:08 AM
  3. Local HOSTS file ignored on a domain
    By eejit in forum Windows
    Replies: 19
    Last Post: 24th June 2005, 02:10 PM
  4. Head on over to surveys
    By Ric_ in forum General EduGeek News/Announcements
    Replies: 4
    Last Post: 20th June 2005, 08:33 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •