![]() |
Google Streetview BB Code
Hi all, this little bit of code, will allow your members to use google street view on your site...
As seen At my Leicester Talk Forum Theres no products to upload, or templates to edit.. Just follow these steps. Creating the basic Widget Go To "Admin CP --> Custom BB Codes --> Add New BB Code" Enter the following... Title: Street View BB Code Tag Name: sview Replacement: Code:
<div align="center" style="margin: 5px 5px 5px 5px;"> Description: Add Google Street View to the forum. Locate the place of interest you want, using maps.google.com street view then click LINK icon right hand side, and copy the link info in the very first box, and paste between the [sview] tags Use {option}: No Button Image (Optional): whatever 20x20 image you want, I've put one at the bottom. Please upload the file and then refer to it... Remove Tag If Empty: Yes Disable BB Code Within This BB Code: Yes Disable Smilies Within This BB Code: Yes Disable Word Wrapping Within This BB Code: Yes Thats It Folks.. lot's off map icons: http://commons.wikimedia.org/wiki/Category:Map_icons If you wish to thank me, consider my advertisers for your next purchases :) |
Thanks for sharing!
Is there any way to just put the address between the BB Code Tag? |
Not to my knowledge... All this does is take the URL you provide and add some extras around it in order to embed it onto your forum.
Looking at the address and the link url they are significantly different. |
confirmed this is working on 3.8.4 PL2 and installed :)
|
how do I increase the number of characters in the [Example] column?
can't get the last few characters in |
Strange - I'm only ever getting the overview image, not the Street View. My links from Google look a lot different though - much more complicated. Such as:
http://maps.google.com/maps?f=l&hl=e...317.83,,0,3.58 Yikes. Any thoughts? |
Quote:
|
Quote:
|
Absolutely superb! Cheers mate!
|
|
Quote:
|
Quote:
|
Quote:
|
Timing couldn't have been better for me, I am just building an eating-out section and this will be a nice extra feature, especially as our part of the UK was only put on street-view yesterday! :cool:
Example listing with street-view |
Quote:
|
Quote:
|
thanks for the how to, I've added it to my forum, the members will have fun with it :)
|
Superb BB, working perfectly on my sites, members are loving it, cheers!!!!
:up: |
thank you ,working great
|
Interesting, I'm going to have to check this out later.
|
Quote:
Quote:
Quote:
|
Wonderful!
How would I get a regular Google Map one? Do I just do the same thing, except for create different tags like [GMAP] and then use the regular link? EDIT- Yeah, I did just that and it seems to work. We'll see. |
Our code , and have given us no credit.
Even have used my exact Maps code, with my bloody house on it ! |
Quote:
The code is different to allow for the StreetView view, although the wrapping in a table/div came from the google maps code. The example location is somewhere out in a desert, unless your house is under a small rock.. The image has come from the wiki commons. Get your facts stright... If you look at my first widget, you'll find I did name your mod, as something which taught me how to make BB code, but I've since passed that as it's not exactly the hardest thing in the world... |
YOUR CODE from 1st POST !
Example: [sview]http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=birkdale,+qld &sll=37.0625,-95.677068&sspn=33.901528,71.894531&ie=UTF8&ll=-27.487563,153.21928&spn=0.074162,0.140419&z=13&iwl oc=A[/sview] THE LINK USED IN YOUR CODE IS POINTING AT A HOUSE I OWN ( infact the centre of Wellington Point ) REASON BEING I USED IT AS AN EXAMPLE IN OUR BBCODE MAPS RELEASE !!! So LEAST YOU CAN DO IS CHANGE THE BLOODY THING ! AND POINT TO SOMEONE ELSES HOUSE BUT NOT IN WELLINGTON POINT BIRKDALE QUEENSLAND ! If you dont believe me VB can happily check by looking at My Google MAP code released way back ! The point is pal, I use an address I own so that I am not inadvertantly pointing at someones house, so do us a favour change the bloody MAP address in your example. Kapishe |
Quote:
P.S Does swearing make you feel like a real man? Because to me it makes you seem childish and immature. Same with the caps lock, ONLY LITTLE IMMATURE KIDS USE THIS BECAUSE THEY CAN'T CONVAY A TONE PROPERLY. |
This BB Code has the same security flaw as the Google Maps one... You're taking the entire "src" parameter from the BB Code- there's no reason someone has to point to google- they could point to any website/domain anywhere and then run any code they wanted on your site including Flash, Java, or any other insecure code and give your users viruses or such.
You can not allow arbitrary URL's in IFRAME BB Codes... I strongly suggest editing the code or removing this altogether. (edited per Paul M's post) |
Looks awesome, but I will only use it when it can not be exploited this way.
Please edit this addon. Maybe already put http://maps.google.com/maps?f=q in there? |
Quote:
@nitra1000 - please add the instructions to a text file and upload them, otherwise this is likely to get removed for having no files. Thanks. |
Quote:
|
I'm getting an error:
/Example&source=embed&output=svembed was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8r DAV/2 mod_fcgid/2.3.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.fun-forums.com Port 80 |
Mods please move to graveyard due to security floor, pointed out in post #30
|
All times are GMT. The time now is 02:38 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|