BARF - Bay Area Riders Forum

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

Thread Tools Display Modes
Old 06-24-2019, 01:02 PM   #16
Super Moderator
bikeama's Avatar
AMA #: 1097
BARF Moderator
Contributor + 1%

Join Date: May 2008
Location: Stockton CA
Motorcycles: 2016 Multistrada ST
Name: Bill
Looks like that works.

My ride for July 29th this year.

+1 thanks, to insyder and DataDan!

Last edited by bikeama; 06-24-2019 at 01:05 PM..
bikeama is offline   Reply With Quote
Old 06-24-2019, 03:35 PM   #17
berth's Avatar

Join Date: Sep 2014
Location: Orange County
Motorcycles: KRS-1200
Originally Posted by bikeama View Post
Looks like that works.

My ride for July 29th this year.

+1 thanks, to insyder and DataDan!
Quoting seems to work now too.
#69 #45
berth is offline   Reply With Quote
Old 06-24-2019, 10:49 PM   #18
Like a Boss.
insyder's Avatar
Barf Tech Admin
Founding Member

Join Date: Feb 2002
Location: W. Sacramento
Motorcycles: Are dangerous
Name: Brian
The bottom line is the options that GMaps offers in regards to embeds kind of sucks.

- Try and wrap a link with your own iframe and it doesn't work.
- If you're not careful with their embed code, you can break it.
- If you want to just allow any code and let VBulletin wrap an iframe around it, you run the risk of some joker iframing a scat porn or malware site on a popular page in the 'sink. This site gets the traffic, so its a totally reasonable risk/fear.

So what I built was a little js that takes the full iframe from GMaps to make it super easy for the user(I hope). It then strips the front end and rear end of the code to temporarily neuter the code, then reapplies that same code itself so that VBulletin is the one building the iframe and not the user. Fairly secure, and works "ok"...

If I have a minute, I'll see if I can use js to dump the GMaps iframe tags into a regex for that trim operation. Perhaps that will make it robust in only accepting GMaps code...(?)

Now if G could change it up to offer up maps like they do with YouTube videos, then it could be nice and easy and secure.

IDK, they're playing games with Google maps and licensing and what not for devs and using maps now a days anyway so who knows what might change or not change. G knows that GMaps in all its forms is a super useful content piece that they have. Monetizing its use is just part of the business model.
web design and app development of west sacramento
insyder is offline   Reply With Quote

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 04:55 PM.

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