Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
iFrame to Keep URL's on your Site! Details »
iFrame to Keep URL's on your Site!
Mod Version: 1.00, by ravencr (Member) ravencr is offline
Developer Last Online: Nov 2010 I like it Show Printable Version Email this Page

vB Version: 4.0.6 Rating: (1 vote - 3.00 average) Installs: 11
Released: 24 Sep 2010 Last Update: Never Downloads: 0
Not Supported Code Changes Re-usable Code Translations  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 24 Sep 2010, 21:26
YankForum's Avatar
YankForum YankForum is offline
 
Join Date: Mar 2010
Real name: alij
it's a good option , i'm gonna add it although i've heard iframe is not good for seo ,tnx anyway
__________________
No more signature for me , Tnx!
Reply With Quote
  #3  
Old 24 Sep 2010, 21:31
ravencr ravencr is offline
 
Join Date: Mar 2007
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
__________________
www.utvrally.com
Reply With Quote
  #4  
Old 25 Sep 2010, 00:42
Blooded Blooded is offline
 
Join Date: Feb 2010
thanks
Reply With Quote
  #5  
Old 25 Sep 2010, 01:13
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
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 25 Sep 2010, 03:00
ravencr ravencr is offline
 
Join Date: Mar 2007
Isn't the facebook like boxes, etc all iFrame based?

Chris
__________________
www.utvrally.com
Reply With Quote
  #7  
Old 25 Sep 2010, 07:33
as7apcool's Avatar
as7apcool as7apcool is offline
 
Join Date: Feb 2009
good work really
Reply With Quote
  #8  
Old 26 Sep 2010, 20:57
Ricsca's Avatar
Ricsca Ricsca is offline
 
Join Date: Apr 2006
Demo?
Reply With Quote
  #9  
Old 27 Sep 2010, 00:59
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Real name: DRE
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 27 Sep 2010, 01:24
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
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
  #11  
Old 28 Sep 2010, 22:26
ravencr ravencr is offline
 
Join Date: Mar 2007
Based on everybody's responses above I decided, although it works fine, I'm going a different route with my site. Sorry, I don't have an example yet, because my site is still being built and inactive at the moment.

Chris
__________________
www.utvrally.com
Reply With Quote
  #12  
Old 25 Sep 2011, 19:48
insidegames insidegames is offline
 
Join Date: Jun 2010
Thanks for this Code. You can see a live demo here: http://forum.insidegames.ch/news-ank...html#post27192
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 16:15.

Layout Options | Width: Wide Color: