Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Google Streetview BB Code Details »»
Google Streetview BB Code
Version: 1.00, by nitra1000 nitra1000 is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.2 Rating:
Released: 03-10-2010 Last Update: Never Installs: 26
Re-useable Code  
No support by the author.

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}&amp;source=embed&output=svembed"></iframe></td>
        </tr>
</table>
</div>
Example: [sview]Example[/sview]
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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-13-2010, 07:24 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by denman75 View Post
thank you ,working great
Quote:
Originally Posted by Loco.M View Post
thanks for the how to, I've added it to my forum, the members will have fun with it
Quote:
Originally Posted by pauldack View Post
Superb BB, working perfectly on my sites, members are loving it, cheers!!!!
:up:
Glad your all, happy with it
Reply With Quote
  #23  
Old 03-17-2010, 02:04 AM
SuperGLS SuperGLS is offline
 
Join Date: Nov 2004
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #24  
Old 03-17-2010, 04:01 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Our code , and have given us no credit.

Even have used my exact Maps code, with my bloody house on it !
Reply With Quote
  #25  
Old 03-17-2010, 04:01 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TimberFloorAu View Post
Our code , and have given us no credit.

Even have used my exact Maps code, with my bloody house on it !
Err... no I haven't.. and no it doesn't..

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...
Reply With Quote
  #26  
Old 03-18-2010, 02:09 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #27  
Old 03-18-2010, 12:03 PM
nitra1000's Avatar
nitra1000 nitra1000 is offline
 
Join Date: Dec 2009
Location: uk
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TimberFloorAu View Post
alot of swearing...
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.
Reply With Quote
  #28  
Old 09-18-2010, 09:56 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #29  
Old 09-18-2010, 10:24 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #30  
Old 09-19-2010, 10:04 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
You can not allow arbitrary URL's in BB Code...
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.
Reply With Quote
  #31  
Old 09-19-2010, 11:09 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
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.
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.
Reply With Quote
Reply


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. The time now is 12:05 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.11623 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete