![]() |
iFrame to Keep URL's on your Site!
1 Attachment(s)
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;"> 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 |
it's a good option , i'm gonna add it although i've heard iframe is not good for seo ,tnx anyway
|
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 |
thanks :)
|
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, |
Isn't the facebook like boxes, etc all iFrame based?
Chris |
good work really
|
Demo?
|
Quote:
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. |
Quote:
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. |
All times are GMT. The time now is 07:08 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|