View Full Version : iFrame BBCODES
anywares
03-28-2007, 10:00 PM
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:
<!-- 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:
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="600" height="400" style="margin:10px 0">
<iFrame src="{param}" width="615" height="415"></iFrame>
Example:
http://www.google.com
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-29-2007, 12:53 AM
Wow. First post! Looks like a pretty neat mod too. Thanks for the share :D
subzero06
03-29-2007, 02:54 AM
Awsome! Thanks!
Works for 3.6.4 also?
Twilkey
03-29-2007, 03: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, 05:30 AM
Nice great work
weedheaven
03-29-2007, 05: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*
apiasto
03-29-2007, 07: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, 07:46 AM
Great work!
ilydgn
03-29-2007, 08:23 AM
good job
install thank you:up:
thincom2000
03-29-2007, 11: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, 12:26 PM
interesting, i might give this a go.
anywares
03-29-2007, 04: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, 04:17 PM
bloody good job m8ty this will come in very handy ta!
anywares
03-29-2007, 04:23 PM
good job
install thank you:up:
Why not take just 2 seconds of your time to mark it as installed? :D
Great work!
Why not take just 2 seconds of your time to mark it as installed? :D
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
Wow. First post! Looks like a pretty neat mod too. Thanks for the share :D
Why not click install reserved poster ;)
bloody good job m8ty this will come in very handy ta!
Glad you like it :D
Zachery
03-29-2007, 05:19 PM
The possibly security risks of having said bbode is insane.
Andyucs
03-29-2007, 07:24 PM
remove due to above comment
can Zachery explain a bit more
you mean like phishing sites
Zachery
03-30-2007, 02: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, 07: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, 08:00 PM
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, 10: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-31-2007, 12:38 AM
yes indeed there is. I would advise using this mod:
https://vborg.vbsupport.ru/showthread.php?t=103747
Tralala
03-31-2007, 01: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, 09:59 AM
Thanks please take the time to click install ;)
Tulsa
03-31-2007, 12:38 PM
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.
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
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_JISAny ideas or suggestions as to why the longer url will not function in the iframe would be greatly appreciated.
Tulsa
05-08-2007, 11:07 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.
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.
http://777.nifty.com/cs/catalog/777_780/catalog_crplanetoftheapes_1.htm
JeffreySmith
05-12-2007, 03:45 PM
installed!
laura66a
07-31-2007, 11: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, 05:24 AM
See if this will fix your issues. It worked for me.
http://www.vbulletin.com/forum/showthread.php?t=238471&highlight=iframe
majidgbox
05-12-2009, 09:51 PM
<span style="text-decoration: line-through">tanx</span>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.