+ 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
    10,464
    Thank Post
    605
    Thanked 2,186 Times in 1,004 Posts
    Blog Entries
    23
    Rep Power
    632

    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. #2

    nephilim's Avatar
    Join Date
    Nov 2008
    Location
    Dunstable
    Posts
    12,011
    Thank Post
    1,631
    Thanked 1,910 Times in 1,418 Posts
    Blog Entries
    2
    Rep Power
    432
    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.

  3. #3

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    199
    not the right place for this, but how the hell do you embed youtube !??!

  4. #4

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    10,464
    Thank Post
    605
    Thanked 2,186 Times in 1,004 Posts
    Blog Entries
    23
    Rep Power
    632
    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}

  5. #5

    nephilim's Avatar
    Join Date
    Nov 2008
    Location
    Dunstable
    Posts
    12,011
    Thank Post
    1,631
    Thanked 1,910 Times in 1,418 Posts
    Blog Entries
    2
    Rep Power
    432
    in that case it should be a case of this

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

  6. #6

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    10,464
    Thank Post
    605
    Thanked 2,186 Times in 1,004 Posts
    Blog Entries
    23
    Rep Power
    632
    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.

  7. #7

    nephilim's Avatar
    Join Date
    Nov 2008
    Location
    Dunstable
    Posts
    12,011
    Thank Post
    1,631
    Thanked 1,910 Times in 1,418 Posts
    Blog Entries
    2
    Rep Power
    432
    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.

  8. Thanks to nephilim from:

    Dos_Box (19th July 2011)

  9. #8

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    10,464
    Thank Post
    605
    Thanked 2,186 Times in 1,004 Posts
    Blog Entries
    23
    Rep Power
    632
    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!!

  10. #9

    nephilim's Avatar
    Join Date
    Nov 2008
    Location
    Dunstable
    Posts
    12,011
    Thank Post
    1,631
    Thanked 1,910 Times in 1,418 Posts
    Blog Entries
    2
    Rep Power
    432
    haha, is it for edugeek or something else you have going on? I dont mind taking a look

  11. #10

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,223
    Thank Post
    874
    Thanked 2,717 Times in 2,302 Posts
    Blog Entries
    11
    Rep Power
    780
    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.

  12. Thanks to SYNACK from:

    RabbieBurns (22nd July 2011)

  13. #11

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    10,464
    Thank Post
    605
    Thanked 2,186 Times in 1,004 Posts
    Blog Entries
    23
    Rep Power
    632
    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.

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

    Info here: Google Maps BBCode - BBCodes

  15. #13


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,006
    Thank Post
    230
    Thanked 2,693 Times in 1,988 Posts
    Rep Power
    791
    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

  16. Thanks to Arthur from:

    Dos_Box (20th July 2011)

  17. #14

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    10,464
    Thank Post
    605
    Thanked 2,186 Times in 1,004 Posts
    Blog Entries
    23
    Rep Power
    632
    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.

  18. #15

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    10,464
    Thank Post
    605
    Thanked 2,186 Times in 1,004 Posts
    Blog Entries
    23
    Rep Power
    632
    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
  •