Version: 1.00, by ravencr
Developer Last Online: Nov 2010
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:
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.
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.
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.
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.
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.