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

Reply
 
Thread Tools
iFrame to Keep URL's on your Site! Details »»
iFrame to Keep URL's on your Site!
Version: 1.00, by ravencr ravencr is offline
Developer Last Online: Nov 2010 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.0.6 Rating:
Released: 09-23-2010 Last Update: Never Installs: 11
Re-useable Code Code Changes Translations  
No support by the author.

Hello,

I'm not a programmer by any means, but I just figured this out after not being able to find this anywhere on this site. This allows you to embed an iframed url within a post, so it keeps your folks on your site instead of opening up a new web page and forcing them to leave your site to view it. It's simple to do, as well, especially given the fact I did it with no programming experience at all.

1) Go to AdminCP, then Custom BB Codes, then Add new BB Code

Title = iframe
BB Code Tagname = iframe
Replacement = Add the code below:
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="yes" marginheight="0" marginwidth="0" src="{param}&output=embed"></iframe></td>
</tr>
</table>
</div>
Example = [iframe]url[/iframe]
Description = You can use the iframe tag to display a website within a post. Can be visually more enhancing than simply using a link.
Use {Option} = no
Check Yes for all remaining options and click save. You can obviously adjust the layout within the code however you want and upload a button image too for your users. It's that simple! Hope it helps...

Chris

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
iiioroh

Comments
  #2  
Old 09-24-2010, 07:26 PM
YankForum's Avatar
YankForum YankForum is offline
 
Join Date: Mar 2010
Location: MY
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it's a good option , i'm gonna add it although i've heard iframe is not good for seo ,tnx anyway
Reply With Quote
  #3  
Old 09-24-2010, 07:31 PM
ravencr ravencr is offline
 
Join Date: Feb 2007
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My thought is I'll manually provide the link below the iframe, so if someone wants to click the actual link, they're more than welcome to. Plus, I think in-bound links is way more important than outgoing.

Chris
Reply With Quote
  #4  
Old 09-24-2010, 10:42 PM
Blooded Blooded is offline
 
Join Date: Feb 2010
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #5  
Old 09-24-2010, 11:13 PM
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
Location: In a cyber world...
Posts: 999
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a quick note...

Allowing an iframe to be posted in a forum is a high security risk. Most forums that become attacked have iframe code injected in to them, which passes on trojans to clients/members that can spread to other forums. I, personally would not allow any iframe code in any of my forums for this very reason.

I just noticed in your coding you are using the table tags, these are not compliant with vBulletin 4, which uses Strict xHTML, well modifications should do, even though there are quite a few around that do not.

Regards,
Reply With Quote
  #6  
Old 09-25-2010, 01:00 AM
ravencr ravencr is offline
 
Join Date: Feb 2007
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't the facebook like boxes, etc all iFrame based?

Chris
Reply With Quote
  #7  
Old 09-25-2010, 05:33 AM
as7apcool as7apcool is offline
 
Join Date: Feb 2009
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good work really
Reply With Quote
  #8  
Old 09-26-2010, 06:57 PM
Ricsca's Avatar
Ricsca Ricsca is offline
 
Join Date: Apr 2006
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Demo?
Reply With Quote
  #9  
Old 09-26-2010, 10:59 PM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by syrus.xl View Post
Just a quick note...

Allowing an iframe to be posted in a forum is a high security risk. Most forums that become attacked have iframe code injected in to them, which passes on trojans to clients/members that can spread to other forums. I, personally would not allow any iframe code in any of my forums for this very reason.

I just noticed in your coding you are using the table tags, these are not compliant with vBulletin 4, which uses Strict xHTML, well modifications should do, even though there are quite a few around that do not.

Regards,
c/s

I was on a forum that had iframe and I've gotten viruses on my computer before because of this kind of mod.

I know from experience not to install this.
Reply With Quote
  #10  
Old 09-26-2010, 11:24 PM
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
Location: In a cyber world...
Posts: 999
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ravencr View Post
Isn't the facebook like boxes, etc all iFrame based?

Chris
Yes, the iframe tag is used with Facebook, but in a very controlled manner. Facebook does have strict security measures in place, this is to reduce them from being attacked.

What you are doing is allowing anyone to come on your forum and use the iframe tag, you have no control on what url is posted. It is bad enough trying to fix a site that has been compromised with a iframe url, yet alone allowing anyone to post it in a message. iframes are normally posted hidden on forums and not through posts, this eventually becomes noticed by Google, whom will block your site with their red 'Attack Page' - unless this is fixed quite quickly your Page Rank will drop, and may lead to your forum infecting others.
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:58 AM.


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.04824 seconds
  • Memory Usage 2,320KB
  • Queries Executed 26 (?)
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
  • (2)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
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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