BARF - Bay Area Riders Forum

Go Back   BARF - Bay Area Riders Forum > Community > Website / Geek Speak


Reply
 
Thread Tools Display Modes
Old 06-19-2019, 03:59 PM   #1
DataDan
Mama says he's bona fide
 
DataDan's Avatar
 
BARF Mod Alumni
BARFie winner 2010 & 2014
Contributor ++++

Join Date: Feb 2003
Location: San Luis Obispo
Motorcycles: Yamaha FJR1300
Name: Dan
Embedding Google map in post

Long ago, there was a feature for embedding a Google Map in a post. I used it in 1Rider to show a certain POV leading up to a hazard, or to the location of a crash that had occurred. Looking back on those posts, I now see only blank space where the embedded street view used to be.

Is the "gmap" feature still available, and if so how can I use it?
__________________
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
--Richard Feynman
DataDan is offline   Reply With Quote
Old 06-20-2019, 10:32 PM   #2
insyder
Like a Boss.
 
insyder's Avatar
 
Barf Tech Admin
Founding Member

Join Date: Feb 2002
Location: W. Sacramento
Motorcycles: Are dangerous
Name: Brian
I don't remember ever using the map feature, though I've seen the maps on here. I do know that the embed code for GMaps has changed over the years.

Can you do me a favor and post a link to the threads in question? I can take a look and see if the GMap BBcode can be revised.
__________________
.
web design and app development of west sacramento
.
insyder is offline   Reply With Quote
Old 06-21-2019, 08:01 AM   #3
DataDan
Mama says he's bona fide
 
DataDan's Avatar
 
BARF Mod Alumni
BARFie winner 2010 & 2014
Contributor ++++

Join Date: Feb 2003
Location: San Luis Obispo
Motorcycles: Yamaha FJR1300
Name: Dan
Here are a few:

https://bayarearidersforum.com/forum...49&postcount=9

https://bayarearidersforum.com/forum...4&postcount=17

https://bayarearidersforum.com/forum...&postcount=113

https://bayarearidersforum.com/forum...&postcount=114

https://bayarearidersforum.com/forum...6&postcount=32

https://bayarearidersforum.com/forum...0&postcount=56
__________________
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
--Richard Feynman

Last edited by DataDan; 06-21-2019 at 08:03 AM..
DataDan is offline   Reply With Quote
Old 06-22-2019, 12:01 AM   #4
insyder
Like a Boss.
 
insyder's Avatar
 
Barf Tech Admin
Founding Member

Join Date: Feb 2002
Location: W. Sacramento
Motorcycles: Are dangerous
Name: Brian
New BBCode! {maps} (Use the squared ones, of course)



When you go to Google Maps:
  • Make your map/route
  • Hit the "share" button
  • Click "Embed a map"
  • Click "COPY HTML"
  • Go to BARF
  • Type the {maps} BBCOde
  • Paste the code provided by Google
  • Type the closing {/maps} BBCode



It doesn't preview right, but if you follow the method above it should work just fine
__________________
.
web design and app development of west sacramento
.

Last edited by insyder; 06-22-2019 at 12:05 AM..
insyder is offline   Reply With Quote
Old 06-22-2019, 06:32 AM   #5
cheez
Master Of The Darkside
 
cheez's Avatar
 

Join Date: Oct 2015
Location: Livermore
Motorcycles: I'm not picky.
Name:


Hrm. No worky for me.
__________________
2017 Harley FXDB Dyna Street Bob (//SVART//)
2000 Suzuki DR650 (Dr. Bike)
2004 Yamaha FJR1300AC (The Pensive Parrot)
2008 Harley Davidson FLHP Road King Police (Porky The Pig Bike!)
2004 Suzuki Burgman 650 (Ingrid Burgman)
2003 Honda VTX1800R (Punkin II- riding the darkside)
2002 Honda VTX1800R (Poor Punkin got smashed by an inattentive kid)

IBA # 57764 || Patriot Guard Rider || Independent

Last edited by cheez; 06-22-2019 at 06:34 AM..
cheez is offline   Reply With Quote
Old 06-22-2019, 09:32 AM   #6
DataDan
Mama says he's bona fide
 
DataDan's Avatar
 
BARF Mod Alumni
BARFie winner 2010 & 2014
Contributor ++++

Join Date: Feb 2003
Location: San Luis Obispo
Motorcycles: Yamaha FJR1300
Name: Dan
__________________
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
--Richard Feynman

Last edited by DataDan; 06-24-2019 at 10:38 AM..
DataDan is offline   Reply With Quote
Old 06-22-2019, 11:12 AM   #7
bikeama
Super Moderator
 
bikeama's Avatar
 
AMA #: 1097
BARF Moderator
Contributor + 1%

Join Date: May 2008
Location: Stockton CA
Motorcycles: 2016 Multistrada ST
Name: Bill
LINK Does not embed?


Last edited by bikeama; 06-23-2019 at 06:06 AM..
bikeama is offline   Reply With Quote
Old 06-22-2019, 11:54 PM   #8
insyder
Like a Boss.
 
insyder's Avatar
 
Barf Tech Admin
Founding Member

Join Date: Feb 2002
Location: W. Sacramento
Motorcycles: Are dangerous
Name: Brian
__________________
.
web design and app development of west sacramento
.
insyder is offline   Reply With Quote
Old 06-23-2019, 06:12 AM   #9
bikeama
Super Moderator
 
bikeama's Avatar
 
AMA #: 1097
BARF Moderator
Contributor + 1%

Join Date: May 2008
Location: Stockton CA
Motorcycles: 2016 Multistrada ST
Name: Bill
insyder Brian This is a test.




Code below with square brackets replaced with { }. Everything looks the same. I did copy your code and is is above in the blank area. So something is there but can not see it.
EDIT: it is blank on preview but shows 404 not found when message submitted. Used Mod powers to copy your text.

Your text
{maps]}<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2398.7703087732652!2d-71.35992402096764!3d44.358554587100336!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x4cb3f461459c4971%3A0xefc9a5c3438bb4b9!2sRandolph%2C+NH!5e0!3m2!1sen!2sus!4v1561264336500!5m2!1sen!2sus" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>{/maps}

My text
{MAPS}<iframe src="https://www.google.com/maps/embed?pb=!1m52!1m12!1m3!1d697824.0207521071!2d9.950251079217455!3d46.90517507862801!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!4m37!3e0!4m5!1s0x47837de0ccd714ed%3A0x61362545c9e38802!2sHotel+Nolda%2C+Via+Crasta+3%2C+7500+St.+Moritz%2C+Switzerland!3m2!1d46.484449!2d9.832839!4m3!3m2!1d46.5829118!2d10.4370864!4m3!3m2!1d46.5405247!2d10.4327889!4m3!3m2!1d46.528686099999994!2d10.4533896!4m3!3m2!1d46.5328976!2d10.469598!4m3!3m2!1d46.5745863!2d10.538183499999999!4m3!3m2!1d46.6410726!2d10.5980464!4m5!1s0x0%3A0xf9b1f8c5c66842b6!2sKrumers+Post+Hotel+%26+Spa!3m2!1d47.3286879!2d11.1876619!5e0!3m2!1sen!2sus!4v1561230511786!5m2!1sen!2sus" width="400" height="300" frameborder="0" style="border:0" allowfullscreen></iframe>{/MAPS}

Last edited by bikeama; 06-23-2019 at 06:21 AM..
bikeama is offline   Reply With Quote
Old 06-23-2019, 06:23 AM   #10
bikeama
Super Moderator
 
bikeama's Avatar
 
AMA #: 1097
BARF Moderator
Contributor + 1%

Join Date: May 2008
Location: Stockton CA
Motorcycles: 2016 Multistrada ST
Name: Bill
Quote:
Originally Posted by insyder View Post


No question your map is working in your post. It does not work when quoted or copied. I must be missing something I can not see. I am on a MBP is that makes any difference. See my post above for text of your link and text of my link.


Bill
bikeama is offline   Reply With Quote
Old 06-23-2019, 06:58 AM   #11
berth
Veteran
 
berth's Avatar
 

Join Date: Sep 2014
Location: Orange County
Motorcycles: KRS-1200
Name:
Quote:
Originally Posted by bikeama View Post
No question your map is working in your post. It does not work when quoted or copied. I must be missing something I can not see. I am on a MBP is that makes any difference. See my post above for text of your link and text of my link.


Bill
Quoting won't work because it's quoting all of the HTML iframe goobledygook that's generated rather than just the maps URL.
__________________
#69 #45
berth is offline   Reply With Quote
Old 06-23-2019, 12:09 PM   #12
DataDan
Mama says he's bona fide
 
DataDan's Avatar
 
BARF Mod Alumni
BARFie winner 2010 & 2014
Contributor ++++

Join Date: Feb 2003
Location: San Luis Obispo
Motorcycles: Yamaha FJR1300
Name: Dan
Quote:
Originally Posted by insyder View Post
Use of the {maps} feature evidently requires HTML permission. You have it, so your posts can access the feature. My posts cannot. In fact, I cannot use it even when quoting your post, because the poster is me, not you.


My question is answered: We regular users cannot embed maps. For now, the feature exists but requires HTML permission, which is restricted to admins.
__________________
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
--Richard Feynman

Last edited by DataDan; 06-23-2019 at 08:32 PM..
DataDan is offline   Reply With Quote
Old 06-24-2019, 10:33 AM   #13
DataDan
Mama says he's bona fide
 
DataDan's Avatar
 
BARF Mod Alumni
BARFie winner 2010 & 2014
Contributor ++++

Join Date: Feb 2003
Location: San Luis Obispo
Motorcycles: Yamaha FJR1300
Name: Dan
Got it.




__________________
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
--Richard Feynman

Last edited by DataDan; 06-24-2019 at 04:55 PM..
DataDan is offline   Reply With Quote
Old 06-24-2019, 10:53 AM   #14
DataDan
Mama says he's bona fide
 
DataDan's Avatar
 
BARF Mod Alumni
BARFie winner 2010 & 2014
Contributor ++++

Join Date: Feb 2003
Location: San Luis Obispo
Motorcycles: Yamaha FJR1300
Name: Dan
Brian,

Scratch that guess about HTML permission...

Notice the code generated in your successful post #8:

var strInputString = '<iframe src="https://www.google.com/maps/embed?
pb=!1m18!1m12!1m3!1d2398.7703087732652!2d-71.35992402096764!3d44.358554587100336!2m3
!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x4cb3f461459c4971
%3A0xefc9a5c3438bb4b9!2sRandolph%2C+NH!5e0!3m2!1sen!2sus!4v1561264336500!5m2!1sen!2sus"
width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>';

strInputString = strInputString.replace("<iframe src=\"", "");

strInputString = strInputString.replace("\" width=\"600\" height=\"450\" frameborder=\"0\" style=\"border:0\" allowfullscreen></iframe>", "");

document.write('<iframe src=\"' + strInputString + '\" width=\"600\" height=\"450\" frameborder=\"0\" style=\"border:0\" allowfullscreen></iframe>')

Now look at the code for my failed post #6:

var strInputString = '&lt;iframe src=&quot;https://www.google.com/maps/embed?
pb=!1m18!1m12!1m3!1d2398.7703087732652!2d-71.35992402096764!3d44.358554587100336!2m3
!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x4cb3f461459c4971
%3A0xefc9a5c3438bb4b9!2sRandolph%2C+NH!5e0!3m2!1sen!2sus!4v1561264336500!5m2!1sen!2sus&quot;
width=&quot;600&quot; height=&quot;450&quot; frameborder=&quot;0&quot; style=&quot;border:0&quot; allowfullscreen&gt;&lt;/iframe&gt;';

strInputString = strInputString.replace("<iframe src=\"", "");

strInputString = strInputString.replace("\" width=\"600\" height=\"450\" frameborder=\"0\" style=\"border:0\" allowfullscreen></iframe>", "");

document.write('<iframe src=\"' + strInputString + '\" width=\"600\" height=\"450\" frameborder=\"0\" style=\"border:0\" allowfullscreen></iframe>')

The code is removing the initial <iframe src=" then inserting it in the document.write.

However, in my version, the "<" and the quote are represented as &lt; and &quot; so the replace doesn't work as intended.

My solution is to omit the <iframe src=" from the post. The replace (which would delete it anyway) has no effect, and the document.write inserts it properly.
__________________
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
--Richard Feynman

Last edited by DataDan; 06-24-2019 at 02:26 PM..
DataDan is offline   Reply With Quote
Old 06-24-2019, 11:20 AM   #15
SFMCjohn
13
 
SFMCjohn's Avatar
 
AMA #2917550
BARF Moderator: Vintage Cafe & Adventure Riding
Barfie Winner 2017
Contributor + 1%

Join Date: Nov 2010
Location: San Francisco, 94102
Motorcycles: KLR, K75s, TR7V, FXSB
Name: John A.
Quote:
Originally Posted by DataDan View Post
Got it.


ha! got it ...



thanks, insyder and DataDan!
__________________
BARF Terms of Service
San Francisco Motorcycle Club
IBA#4200 - Let's Ride!: BARF Ride Reports Index

Last edited by SFMCjohn; 06-24-2019 at 11:22 AM..
SFMCjohn is online now   Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -8. The time now is 03:59 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.