The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Google Streetview BB Code Details »» | |||||||||||||||||||||||||
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;"> <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}&source=embed&output=svembed"></iframe></td> </tr> </table> </div> 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 Show Your Support
|
Comments |
#22
|
||||
|
||||
Quote:
|
#23
|
|||
|
|||
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. |
#24
|
||||
|
||||
Our code , and have given us no credit.
Even have used my exact Maps code, with my bloody house on it ! |
#25
|
||||
|
||||
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... |
#26
|
||||
|
||||
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 |
#27
|
||||
|
||||
ahh missed that appologies. A PM would of been a quicker way of resolving that though.
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. |
#28
|
||||
|
||||
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) |
#29
|
||||
|
||||
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? |
#30
|
||||
|
||||
Really ? Isnt that exactly what [url ] and [img ] tags allow ?
@nitra1000 - please add the instructions to a text file and upload them, otherwise this is likely to get removed for having no files. Thanks. |
#31
|
||||
|
||||
OK, I should have said "you can not allow arbitrary URL's to be passed to IFRAME based BB Codes..." but surely you can see the security risk inherent in this code... If anyone is interested put the URL: http://www.juot.net/nofile.html into this code... You will get my 'red' 404 file not found custom error page... I promise you it is safe for this test but if I was someone with malicious intentions I could put dangerous code on that page and then embed it into anyone's site who allows this code.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|