vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   iFrame BBCODES (https://vborg.vbsupport.ru/showthread.php?t=143468)

anywares 03-28-2007 09:00 PM

iFrame BBCODES
 
I remember seeing something like this somewhere and i noticed that it wasnt well implemented so i made my own. NONE OF THE ORIGINAL CODES BY THE AUTHOER WHO'S NAME I CANT REMEMBER HAS BEEN USED!

Step1:
Goto AdminCP => Custom BBCodes => Manage BBCodes => Add new BBCODE

Step 2:

Title:

iFrame BBCODES

tag:
if

replacement:

HTML Code:

<!-- Start iFrame by anywares -->
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="600"  height="400" style="margin:10px 0">
<thead>
        <tr>
                <td class="tcat" colspan="2" style="text-align:center">
                        <a href="{param}" title="Go to site directly" target="_new">Go to the site directly</a>
                </td>
        </tr>
</thead>
<tr>
<td>
<iFrame src="{param}" width="615" height="415"></iFrame>
</td>
</tr>
</table>
<!-- End iFrame by anywares -->

You can adjust the size of the window by editing these two lines:
HTML Code:

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="600"  height="400" style="margin:10px 0">
HTML Code:

<iFrame src="{param}" width="615" height="415"></iFrame>
Example:
[if]http://www.google.com[/if]


Discription:
iFrame BBCODE

Use {option}
No

Screenshots:
http://img8.imagepile.net/img8b/60267iframe.png

http://img8.imagepile.net/img8b/58045iframe2.png

PLEASE NOTE:
I WOULD ADVISE YOU PEOPLE TO USE THE ADVANCE BBCODE PERMISIONS BASED ON USERGROUP HACK WITH THIS MOD! IT CAN BE FOUND HERE:
https://vborg.vbsupport.ru/showthread.php?t=103747


Please click install if youve used this ;)

Thorlax402 03-28-2007 11:53 PM

Wow. First post! Looks like a pretty neat mod too. Thanks for the share :D

subzero06 03-29-2007 01:54 AM

Awsome! Thanks!
Works for 3.6.4 also?

Twilkey 03-29-2007 02:19 AM

That is awesome. I never thought about that. I will probably use it but later. So I will go ahead and hit install.

Trip3151 03-29-2007 04:30 AM

Nice great work

weedheaven 03-29-2007 04:37 AM

Amazing! One thing. I've noticed that when you do just www. it wont show the page. Could it be possible to make it, that it is able to use just www. instead of http:// in front of it? Thanks a lot

*installed*

zhou 03-29-2007 05:19 AM

good job
install thx

apiasto 03-29-2007 06:18 AM

its very nice, but could it be possible to do something like this for anything.like users can use it to frame their signature or the post or any other picture?
that would be great

Triky 03-29-2007 06:46 AM

Great work!

ilydgn 03-29-2007 07:23 AM

good job
install thank you:up:

thincom2000 03-29-2007 10:57 AM

Doesn't this make it possible for users to post obscene or malicious web sites inline with your own? Don't get me wrong, I believe a BB-Code for this is great, I would just recommend using Advanced BB-Code Permissions on it.

Neo_Angelo 03-29-2007 11:26 AM

interesting, i might give this a go.

anywares 03-29-2007 03:06 PM

Thanks for all the positive feedback guys. please do remember to click install if youve used this or if you like it :)

Also, weedheaven ill see if i can make that happen and pm you when im done

Andyucs 03-29-2007 03:17 PM

bloody good job m8ty this will come in very handy ta!

anywares 03-29-2007 03:23 PM

Quote:

Originally Posted by ilydgn (Post 1215120)
good job
install thank you:up:

Why not take just 2 seconds of your time to mark it as installed? :D

Quote:

Originally Posted by Triky (Post 1215104)
Great work!

Why not take just 2 seconds of your time to mark it as installed? :D

Quote:

Originally Posted by apiasto (Post 1215092)
its very nice, but could it be possible to do something like this for anything.like users can use it to frame their signature or the post or any other picture?
that would be great

Ill consider making something like that if you consider clicking install :D

Quote:

Originally Posted by Thorlax402 (Post 1214936)
Wow. First post! Looks like a pretty neat mod too. Thanks for the share :D

Why not click install reserved poster ;)

Quote:

Originally Posted by Andyucs (Post 1215389)
bloody good job m8ty this will come in very handy ta!

Glad you like it :D

Zachery 03-29-2007 04:19 PM

The possibly security risks of having said bbode is insane.

Andyucs 03-29-2007 06:24 PM

remove due to above comment

can Zachery explain a bit more

you mean like phishing sites

Zachery 03-30-2007 01:17 AM

You're allowing _anyone_ who can use the bbcode to put a link to _any_ webiste on your site.

Tralala 03-30-2007 06:24 PM

I see adjusting the size is an admin setting and is global.

Is there a way to allow for a variable OPTION so users could specify their own frame size, each time they used it?

da420 03-30-2007 07:00 PM

Quote:

Originally Posted by Zachery (Post 1215816)
You're allowing _anyone_ who can use the bbcode to put a link to _any_ webiste on your site.

notice,
ANY ONE and ANY WEB SITE are stressed. This can be used to embed pages with malicious, dangerous, or just plain annoying code into your threads pages with little work whatsoever. I suggest installing this at your own risk.

Tralala 03-30-2007 09:15 PM

Yeah. I turned this BBCode on. A user then embedded this page:



http://www.hampsterdance.com/classorig.html



Needless to say, I turned this BBCode off.


I could see how it would be helpful for some people, though. Is there any way to restrict BBcodes for use by only certain usergroups? (IE: for moderators and admins only?)

anywares 03-30-2007 11:38 PM

yes indeed there is. I would advise using this mod:
https://vborg.vbsupport.ru/showthread.php?t=103747

Tralala 03-31-2007 12:01 AM

And 3.6 version here: https://vborg.vbsupport.ru/showthread.php?t=122942

Coolness. I will enable this again, but only make it available to trusted Mods and the 2 Admins by way of the above hack.

This is a VERY cool addition and I thank you, anywares, for sharing it!

anywares 03-31-2007 08:59 AM

Thanks please take the time to click install ;)

Tulsa 03-31-2007 11:38 AM

I've been using the other iframe for a long time now and must admit, you're version does present it better. Now from a functionality stand point, you might consider using a percentage for width instead of a fixed width. 95% for the border and 100% for the iframe gives it a nice look. Generally it will eliminate the scrolling from side to side and adjust for different users screen widths.

I have one question you may or may not be able to answer for me but it has not functioned in the other iframe and it won't in this one in the same fashion. Here are two links, one works and the other one does not. The only difference in the two links in the name of the actual page, the first one that does not work is longer. That's it. I've highlighted the difference in the two links in red.

Code:

[if]http://translate.google.com/translate?u=http%3A//777.nifty.com/cs/catalog/777_777/catalog_golgothirteentheprofessional_1.htm&hl=en&langpair=ja|en&tbb=1&ie=Shift_JIS[/if]

[if]http://translate.google.com/translate?u=http%3A//777.nifty.com/cs/catalog/777_777/catalog_fireexpress_1.htm&hl=en&langpair=ja|en&tbb=1&ie=Shift_JIS[/if]

Any ideas or suggestions as to why the longer url will not function in the iframe would be greatly appreciated.

Tulsa 05-08-2007 10:07 AM

Quote:

Originally Posted by Tulsa (Post 1216791)
I've been using the other iframe for a long time now and must admit, you're version does present it better. Now from a functionality stand point, you might consider using a percentage for width instead of a fixed width. 95% for the border and 100% for the iframe gives it a nice look. Generally it will eliminate the scrolling from side to side and adjust for different users screen widths.

I have one question you may or may not be able to answer for me but it has not functioned in the other iframe and it won't in this one in the same fashion. Here are two links, one works and the other one does not. The only difference in the two links in the name of the actual page, the first one that does not work is longer. That's it. I've highlighted the difference in the two links in red.

The issue is the 27th character in the page name. 26 characters shown in red 27th and after shown in green. What's happening is at the end of the name the .htm is getting converted to .ht m and is causing the page to not load. If you remove the 1, the link will now show fine but of course the page still won't load as the name is wrong.

Code:

[iframe]http://777.nifty.com/cs/catalog/777_780/catalog_crplanetoftheapes_1.htm[/iframe]

JeffreySmith 05-12-2007 02:45 PM

installed!

laura66a 07-31-2007 10:41 AM

Hello.

Are there any plans to update this BBcode to be more compatible with vBulletin 3.6.8? I have found that as I continue to upgrade the vBulletin code, fewer and fewer of the embedded websites I have are working correctly.

I use this extensively to illustrate websites and more and more of them aren't working.

I have several examples of URLs that were once working but are no longer. This seems to be an affect of changes in the vBulletin code.

If you could contact me and take a look at what isn't working, I would be grateful.

Laura

Tulsa 08-02-2007 04:24 AM

See if this will fix your issues. It worked for me.

http://www.vbulletin.com/forum/showt...ghlight=iframe

majidgbox 05-12-2009 08:51 PM

<span style="text-decoration: line-through">tanx</span>


All times are GMT. The time now is 03:38 AM.

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.01845 seconds
  • Memory Usage 1,804KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (30)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete