vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - YBMF-Google Maps BB Code (https://vborg.vbsupport.ru/showthread.php?t=234318)

MooseMoney 01-28-2010 08:04 PM

Thank you for this mod!
I cannot get the placemarks added in Google Maps to show on the map in the forum. Please help.

wacnstac 01-28-2010 08:05 PM

Try searching for Pictured Rocks, MI, or just try one of the URL's that I've posted.

TimberFloorAu 01-28-2010 08:05 PM

Placemarks wont work with this code.

You would need a total Modification for this , plus your own api key i suspect.

Please click INSTALLED

TimberFloorAu 01-28-2010 08:08 PM

Quote:

Originally Posted by wacnstac (Post 1969261)
Try searching for Pictured Rocks, MI, or just try one of the URL's that I've posted.

Mate I dunno what you are doing wrong, but works for me. I think the best bet is to remove the hack.

I have just posted on your forum, Pictured Rocks MI

http://www.michigan-sportsman.com/fo...1&postcount=15

Works fine mate.

wacnstac 01-28-2010 08:08 PM

Whenever you do it, you get some extra stuff at the end of the URL that my URL's above do not have. That is the difference.

TimberFloorAu 01-28-2010 08:15 PM

what url are you using for Google Maps

TimberFloorAu 01-28-2010 08:20 PM

Ok seems to be that Firefox gives the ACCURATE version. Weird huh !!!

Code:

Search for Pictured Rocks MI


Internet Explorer

http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=pictured+rocks+mi&sll=37.0625,-95.677068&sspn=36.094886,71.894531&ie=UTF8&hq=pictured+rocks+mi&hnear=Pictured+Rocks+National+Lakeshore,+Grand+Marais,+MI+49839&z=10

Firefox

http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=pictured+rocks+mi&sll=37.0625,-95.677068&sspn=36.642161,72.861328&ie=UTF8&hq=pictured+rocks+mi&hnear=Pictured+Rocks+National+Lakeshore,+Grand+Marais,+MI+49839&t=h&z=10


Google Chrome

http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=pictured+rocks+mi&sll=37.0625,-95.677068&sspn=45.063105,68.818359&ie=UTF8&hq=pictured+rocks+mi&hnear=Pictured+Rocks+National+Lakeshore,+Grand+Marais,+MI+49839&z=10

Note in FF the last part of the code &t=h is being dropped by CHrome and IE

Edit one of your posts add the code I have posted for FF and save, see if that fixes it.

wacnstac 01-28-2010 08:21 PM

I'm actually using FireFox :) I go to http://maps.google.com/ to get my maps.

MooseMoney 01-28-2010 08:25 PM

Quote:

Originally Posted by TimberFloorAu (Post 1969263)
Placemarks wont work with this code.

You would need a total Modification for this , plus your own api key i suspect.

Please click INSTALLED

Thank you for your response.
Excuse my ignorance, but there are placemarks on this map (click on Terrain view);
http://www.michigan-sportsman.com/fo...6&postcount=13

How did these get here?

TimberFloorAu 01-28-2010 08:31 PM

Wacnstac:

Try this replacement code:

Havent tested it.

Code:

<div align="center"  style="margin: 5px 5px 5px 5px;">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%">
        <tr>
                <td class="thead" style="text-align:center"><iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="{param}&t=h&output=embed"></iframe></td>
        </tr>
</table>
</div>


TimberFloorAu 01-28-2010 08:32 PM

Quote:

Originally Posted by MooseMoney (Post 1969281)
Thank you for your response.
Excuse my ignorance, but there are placemarks on this map (click on Terrain view);
http://www.michigan-sportsman.com/fo...6&postcount=13

How did these get here?

They are predefined pushpins embedded into Google Maps. Some use Panorama etc, others are user submitted via the web. But you cannot create your own, and add them. AFAIK on the fly.

MooseMoney 01-28-2010 08:37 PM

Quote:

Originally Posted by TimberFloorAu (Post 1969286)
They are predefined pushpins embedded into Google Maps. Some use Panorama etc, others are user submitted via the web. But you cannot create your own, and add them. AFAIK on the fly.

Thanks! Marked installed. :)
It will really be cool if one can somehow do placemarks!

TimberFloorAu 01-28-2010 08:49 PM

Ok I may have figured out one issue.

If you go onto google maps, and search for somewhere.

Then move the map, scroll or zoom. Then click the link, it appears google code isnt updating the link.

You need to ensure the place you are looking for is the exact one you typed into the search.

The added code I made does work. But If you are not having issues, I wouldnt use it, as it will parse that added code twice.

Ste

MooseMoney 01-28-2010 10:19 PM

Quote:

Originally Posted by TimberFloorAu (Post 1969263)
Placemarks wont work with this code.

You would need a total Modification for this , plus your own api key i suspect.

Please click INSTALLED

The placemarks done in Google Maps do not show on the forum.
However, once a message is upgraded to an article, the placemarks DO SHOW on the CMS page! :)
So why does it show placemarks on the CMS page but not within the forum message?

abqtj 01-28-2010 10:20 PM

Quote:

Originally Posted by TimberFloorAu (Post 1969299)
Ok I may have figured out one issue.

If you go onto google maps, and search for somewhere.

Then move the map, scroll or zoom. Then click the link, it appears google code isnt updating the link.

You need to ensure the place you are looking for is the exact one you typed into the search.

The added code I made does work. But If you are not having issues, I wouldnt use it, as it will parse that added code twice.

Ste

yesterday every map I tried I opened a new window and typed in an address...no scrolling or anything, just copied the link it provided...and you saw the Coffeyville results I got.

I have NO idea what it's doing.

abqtj 01-28-2010 10:26 PM

Quote:

Originally Posted by wacnstac (Post 1969254)
I figured it out. Seems that if you search for a location on GM and immediately find it, and copy and paste that URL, it won't work. You have to move the map around and maybe zoom in or out and copy that URL and it will work.

THANK YOU!

That, for some reason or another, has WORKED for me the last few times I've tested it on my board.

TimberFloorAu 01-28-2010 10:33 PM

Glad you guys are sorted lol.

Moose I have no bloody idea LOL

abqtj 01-28-2010 10:34 PM

Quote:

Originally Posted by TimberFloorAu (Post 1969358)
Glad you guys are sorted lol.

Moose I have no bloody idea LOL


Thank YOU for the mod...for the record, I still like it and think it's a great tool, especially for a forum like mine (offroading related).

TimberFloorAu 01-28-2010 11:18 PM

More than welcome mate, It is invaluable on our site. Along with a suburb profiler one we have. It gives our forum stickability :up:

MooseMoney 01-28-2010 11:48 PM

Quote:

Originally Posted by TimberFloorAu (Post 1969358)
Glad you guys are sorted lol.

Moose I have no bloody idea LOL

Can anything be done for the forum pages?
The code on the CMS page uses iframe tags;

Code:

<iframe width="100%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?hl=en&amp;source=hp&amp;ie=UTF8&amp;msa=0&amp;msid=101442581782408755507.00047e40377219ff5d319&amp;ll=-34.043272,18.347855&amp;spn=0.19231,0.444603&amp;z=12&amp;output=embed"></iframe>

TimberFloorAu 01-28-2010 11:58 PM

Could you explain please Moose?

Do you want to use a bbcode iframe ?

voglermc 01-29-2010 12:05 AM

Steve,
I'm at a loss to how I can get routes done in the maps. Is this something you'll be working on for a future release?

MooseMoney 01-29-2010 12:07 AM

Quote:

Originally Posted by TimberFloorAu (Post 1969420)
Could you explain please Moose?

Do you want to use a bbcode iframe ?

I would love to have the placemarks show on maps in the forum itself.
I copied the link from the first box in Google Maps and posted that in a forum message.
After promoting the message to an article and all the placemarks showed, I noticed iframe tags in the CMS source code.
Seems to me that this is the reason why placemarks are not shown in the forum message but do show on the CMS page.

TimberFloorAu 01-29-2010 12:28 AM

Well, sounds like you should implement HTML within your CMS. Custom for what you want.

Aside from php includes, the only way to plop stuff into a page from gmaps is using iframe. Or similar.

voglermc 01-29-2010 12:38 AM

I wonder if having HTML turned off in posts matters?

TimberFloorAu 01-29-2010 12:59 AM

I wouldnt allow HTML to be on, its asking for trouble.

I suggest tho, you could create your own vb powered page ( Lynn has a Tut for it )

Then create your own html block hard coded into a vb wrapped page.

Edrondol 01-30-2010 02:08 PM

We put this on our page and it took lass than 2 hours for someone to discover that this code allows not only Google Maps but will work with nearly ANY url, which causes recursive loops and opens your site up for people to use this and put in damaging code.

I love the idea but the actual product itself is flawed and dangerous. I'd point you to a thread to show you what I mean but we had to take it down because it was causing server issues.

kylek 01-31-2010 06:58 PM

Would there be any way to use this so you could have members display a map image in their postbit location? They would have to go to thier profile and input a map image, then I guess an image would be needed to be displayed in the postbit so others could click on it to see the image location.

Also where would you add the map.gif image if you want it to show in the quick reply editor?

Thanks for this!

TimberFloorAu 01-31-2010 07:07 PM

Easier would be a memberinfo block, that is set up by a user defined field.

So members could add their location, which would be displayed in the memberinfo block, linked from their postbit via a link , i supposed My Location: Click Here

ComoEstaEso-com 02-02-2010 10:36 PM

Quick suggestion from seeing other people use my site, and the google Map post:::
Could the navigation buttons (zoom +/-, up,down,...) have the options of google Maps for small/medium/large?

Might be wrong on my part, and the bigger buttons might not exist.
My user just saw the picture and smiled... oblivious to the zoom/nav buttons.

Thanks! It's working great over here!

TimberFloorAu 02-04-2010 07:39 PM

Im not sure what you are asking Moose.

Cigarcritic 02-04-2010 10:41 PM

Looks good coming out the gate but needs more work.

The planned routes need to appear for this to be a complete mod and a link to go directly to the google maps for printing is mandatory.

Tagged for later install.

TimberFloorAu 02-05-2010 02:20 AM

Quote:

Originally Posted by Cigarcritic (Post 1975033)
Looks good coming out the gate but needs more work.

The planned routes need to appear for this to be a complete mod and a link to go directly to the google maps for printing is mandatory.

Tagged for later install.


LOL be a long wait then :)

War.Frog 02-05-2010 02:28 AM

Quote:

Originally Posted by TimberFloorAu (Post 1975139)
LOL be a long wait then :)

I lol'd :D

rotor 02-05-2010 09:19 PM

Quote:

Originally Posted by TimberFloorAu (Post 1968369)
Very Welcome. I have tons of bbcode enhancements, I may add more later this week/next week when I get the opportunity. Mind you a lot of our stuff is Australia based :)

Tagged ..... looks great and will try this shortly

and most of us do appreciate the hard work and effort that you people put into enhancing our forums - thx :D

Doctor Death 02-05-2010 11:27 PM

The best mapping codes I have seen. Really nicely done, 5 stars.

TimberFloorAu 02-06-2010 12:31 AM

Thanks :)

interfx 02-07-2010 12:55 PM

Installed, works just great!...

One question, how do I get to the actual marker (A) as shown on your site? I have the same screen on Google Maps, and when I paste it into the BB code, it looses the market and info box for the location... (using in an article if that makes a difference)

Any ideas on how to fix this?

TimberFloorAu 02-08-2010 06:45 PM

I guess the marker may have disappeared because you have zoomed, moved changed location of the map.

If you went onto google maps and typed.

Stone Mountain , Atlanta.

Then did nothing but copy the link code into the bbcode. It should show the relevant markers.

That is something to do with googles geo-coding, not something I can fix.

SemperFideles 02-08-2010 11:54 PM

Fantastic Mod! Nominated for MOTM.


All times are GMT. The time now is 12:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01367 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete