Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
iFrame BBcode Details »»
iFrame BBcode
Version: 1.00, by Strike-Force.ne Strike-Force.ne is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.8.2 Rating:
Released: 07-21-2009 Last Update: Never Installs: 25
Re-useable Code Translations  
No support by the author.

This code is a result of looking for something similar a while back for my forum. I originally made this for vb 3.6.8 but have confirmed it works for 3.8.2 and 3.8.3 as well.

This BB Code contains not only a button which allows the viewer to go to the site being displayed, but it also contains a "Back" and "Forward" button so the user can navigate the iFramed site without having to leave your site. This allows the user to decide whether the posted site is worth more of their time or not without forcing them to view it in order to go "back" or "forward".

To install this BB Code: AdminCP -> Custom BB Codes -> Add new BB Code

Title: iFrame

Tag: if

Replacement:
HTML Code:
<!-- Start iFrame by Strike-Force.net -->

<table border="0" bgcolor="#89723C" width="100%"> <tr>  

<td> <br> <center> <head>

<script type="text/javascript">
function goBack()
  {
  window.history.back()
  }
</script>
 
<input type="button" value="Back" onclick="goBack()">


<script type="text/javascript">
function newDoc()
{
window.location.assign("{param}");
}
</script>

<input type="button" value="Visit Site" onClick="window.open('{param}')" /> 

<script type="text/javascript">
function goforward()
  {
  window.history.forward()
  }
</script>


<input type="button" value="Forward" onclick="history.go(1)"> </head> </center> <br> </td> </tr> </table> 

<iframe src="{param}" width="100%" height="500"> </iframe> 

<!-- End iFrame by Strike-Force.net -->
Example: [if]http://www.google.com[/if]

Description: Places a site within a small framed window in a post.

Use {option}: No

Button Image: (button image is optional, and I don't use one personally)

I have also created a colored border around the buttons which can easily be changed to suit the color scheme of your site. This can be changed by changing the bgcolor value to whatever color you choose on this line:
HTML Code:
<table border="0" bgcolor="#89723C" width="100%"> <tr>
The height and width of the iFrame can be adjusted by changing this line:
HTML Code:
<iframe src="{param}" width="100%" height="500"> </iframe>
Here's an example of this on my vb 3.6.8 install but it looks the same on 3.8.3: http://www.strike-force.net/showthread.php?t=280


You will need to install the plugin Advanced BBCode Permissions if you want to restrict who can use this BBcode.

Show Your Support

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

Comments
  #2  
Old 07-22-2009, 08:03 PM
Andyrew Andyrew is offline
 
Join Date: Aug 2005
Location: UK
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's great. :up:
Reply With Quote
  #3  
Old 07-23-2009, 04:00 AM
sugresmax's Avatar
sugresmax sugresmax is offline
 
Join Date: Nov 2006
Location: Russia
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And I can put into this BB-code some bad page? With exploit ... or virus.
Reply With Quote
  #4  
Old 07-23-2009, 06:42 AM
tirol07 tirol07 is offline
 
Join Date: Mar 2007
Location: Austria
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wonderful
Reply With Quote
  #5  
Old 07-23-2009, 12:15 PM
trotskid trotskid is offline
 
Join Date: Feb 2009
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice BBcode, thanks!
Reply With Quote
  #6  
Old 07-23-2009, 01:20 PM
Frondy's Avatar
Frondy Frondy is offline
 
Join Date: Feb 2009
Location: Zagreb, Croatia
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work, thanks
Reply With Quote
  #7  
Old 07-23-2009, 02:38 PM
Strike-Force.ne Strike-Force.ne is offline
 
Join Date: Aug 2007
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sugresmax View Post
And I can put into this BB-code some bad page? With exploit ... or virus.
Potentially. That's why I recommend you install the Advanced BBCode Permissions plugin to limit who can use this BBcode. I would read the end of the thread for that plugin for updates on how to make it compatible for 3.8.X since it's for 3.6.X
Reply With Quote
  #8  
Old 07-23-2009, 05:53 PM
sugresmax's Avatar
sugresmax sugresmax is offline
 
Join Date: Nov 2006
Location: Russia
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For what this BB code?
Create a group, and allow HTML ... I think it is more powerfull, but more dangerous.

ps. You can do with your board everything You want
Reply With Quote
  #9  
Old 07-24-2009, 07:11 PM
gearspro gearspro is offline
 
Join Date: Jun 2009
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great thanks
Reply With Quote
  #10  
Old 03-19-2010, 11:01 PM
Bill from Cleve Bill from Cleve is offline
 
Join Date: Sep 2008
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What a fun toy.

As far as being used as "back door" to jerks wishing to crash your board, make sure you run a tight board. That's what Mods are for. Besides CYB's-permissions based on post count should work rather well?
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 11:21 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04310 seconds
  • Memory Usage 2,314KB
  • Queries Executed 24 (?)
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
  • (3)bbcode_html
  • (1)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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