vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - iFrame to Keep URL's on your Site! (https://vborg.vbsupport.ru/showthread.php?t=251100)

ravencr 09-23-2010 10:00 PM

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;">
<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

YankForum 09-24-2010 07:26 PM

it's a good option , i'm gonna add it although i've heard iframe is not good for seo ,tnx anyway

ravencr 09-24-2010 07:31 PM

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

Blooded 09-24-2010 10:42 PM

thanks :)

syrus.xl 09-24-2010 11:13 PM

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,

ravencr 09-25-2010 01:00 AM

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

Chris

as7apcool 09-25-2010 05:33 AM

good work really

Ricsca 09-26-2010 06:57 PM

Demo?

8thos 09-26-2010 10:59 PM

Quote:

Originally Posted by syrus.xl (Post 2102894)
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.

syrus.xl 09-26-2010 11:24 PM

Quote:

Originally Posted by ravencr (Post 2102908)
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.


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
  • Page Generation 0.01048 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete