View Full Version : Add iframe
Rickie3
04-18-2006, 10:00 PM
Ok what this does is allow you to add a url inside a post.Please forgive me if this is posted in the wrong section or has been posted before,If this is not allowed here please remove Admin.I have used this on my board for over 12 months and have not had any problems.If you are unsure dont use it,if you use please click *install*
go to adminCP>>Custom BB Codes>>>Add new BB code.
In title put>>iframe
In tag put>>iframe
In Replacement place this code
<a href="{param}" TARGET="_blank"> {param} </A><BR>
<script type="text/javascript">
/***********************************************
* IFRAME Scroller script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
//specify path to your external page:
var iframesrc="{param}"
//You may change most attributes of iframe tag below, such as width and height:
document.write('<iframe id="datamain" src="'+iframesrc+'" width="100%" height="700px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="1" scrolling="yes"></iframe>')
</script>
In example place url
In description place>>>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
then click save.
to use simply put the url in between the iframe tags eg your.site.com
see below screenshot of how it looks on my board
or click here
Live Demo (http://www.sats-general.com/forum/showthread.php?p=9569#post9569)
imported_predatorkill
04-19-2006, 09:42 AM
great code add on!:banana:
one error tho,when i put a link example www.domain.com
i get an error that url dont exist!
"/forum/www.domain.com dont exist" in browser! i tryied putting http:// but no luck!
EDIT:Everything seems ok now after the refresh,guys,dont forget to put http:// before the link! :D
puertoblack2003
04-19-2006, 10:56 AM
hey this is cool man is there a way to create a image tag for it...thanks installed:banana:
bashy
04-19-2006, 01:13 PM
hey this is cool man is there a way to create a image tag for it...thanks installed:banana:
When you created the BBcode just add the url to the button you want to use ;)
Cheers i have installed, will test it :)
brilliant m8 works well :)
puertoblack2003
04-19-2006, 01:28 PM
When you created the BBcode just add the url to the button you want to use ;)
Cheers i have installed, will test it :)
brilliant m8 works well :)
cool thank you
yinyang
04-19-2006, 02:38 PM
demo link doesn't work.
is there a way to add "http://" to the BBcode so people can just add "www.domain.com"?
Quarterbore
04-19-2006, 02:50 PM
I like this! I am curious if we can incorporate a fixed size for this as well? Obviously this can get really big if no limits are set?
Funny as I use this as an Admin as I allowed myself to use HTML but this prevents some of the worry about allowing members to use HTML on a board... I will install when I get time.
GrCh_Jeff
04-19-2006, 02:57 PM
It automatically opens in a seperate page.
Rickie3
04-23-2006, 12:54 AM
demo link doesn't work.
is there a way to add "http://" to the BBcode so people can just add "www.domain.com"?link is ok now,my host had an issue,i will look into the adding http for you,thanx to all for replys
NR Fatal
04-24-2006, 02:56 AM
nice! works good, I made a button if anyone wants it. just a simple "IF" (IFrame) icon. I may change the color, not sure though, Nice job Rickie! been wanting this forahwile.
Rickie3
04-24-2006, 03:27 AM
thankyou, i will also use your button myself nice work
NR Fatal
04-24-2006, 11:37 PM
thankyou, i will also use your button myself nice work
Cool man, if you need any Graphics for anything, let me know.;)
yinyang
04-25-2006, 12:07 AM
i sort of lost the plot on the html permissions, but:
can you still use this and have html disabled?
Rickie3
04-25-2006, 12:40 AM
i have html disabled on my board,and it still works
yinyang
04-25-2006, 01:48 AM
great! i'm gonna give this a whirl! *clicks install*
edit:
weird, it doesn't work for me.
NR Fatal
04-25-2006, 11:09 PM
hey rickie, I noticed that this isn't added into PM's, how could I do this?
NR Fatal
04-25-2006, 11:09 PM
great! i'm gonna give this a whirl! *clicks install*
edit:
weird, it doesn't work for me.
At all it doesn't?
yinyang
04-25-2006, 11:28 PM
At all it doesn't?
nope. i have no idea why!
Rickie3
04-25-2006, 11:28 PM
hey rickie, I noticed that this isn't added into PM's, how could I do this?hmmm thats strange as its working in my PM
Rickie3
04-25-2006, 11:29 PM
nope. i have no idea why!can i have a link to your site please
NR Fatal
04-26-2006, 02:17 AM
lol, sorry, my fault, I had a problem earlier and was disabling everything and forgot that one, lol. its works.
SupremeWeapon
04-30-2006, 02:39 AM
I suggest adding acp support for security reasons. so you can only allow trusted users to use it. reason is IFRAMES open HUGE holes in your forums. any number of malicious things can be done with them.
password stealing
viruses/trojans embedded in the html page it pulls up
I frames auto open meaning your screwed if someone uses them in a bad way.
TheBlackPoet
05-14-2006, 03:50 PM
waaaay better than posting a url... this is a very good item..
good job man!!
Dermo-MIO
05-21-2006, 01:36 PM
brilliant iv been looking for this for ages installed and thanks to NR FATAL for making a button
Oddjob
05-21-2006, 09:04 PM
Sweet Hack, works perfect.
Installs
Ntfu2
05-22-2006, 12:20 AM
Before installing, you guys should be warned of potential security holes this opens up. any user could write a script to steal cookies or whatever they wish to do, and simply load the page via a iFrame which would cause havoc for your board and its users.
Enjoy the hack though, seems pretty cool
Tulsa
05-22-2006, 11:48 PM
The only person learning about this on my site is me. The rest of the users can just think of it as magic. ;)
TheBlackPoet
05-30-2006, 03:23 PM
this a great tool!!! i installed it and will click install !
i suggest anyone who installs this hack make a button for their bb code menu.. it gives your users who dont understand bbcode convenience
http://theblackpoet.com/community/images/editor/frame.gif
is the img i used...
glorify
07-30-2006, 08:27 PM
Like it. This (https://vborg.vbsupport.ru/showthread.php?t=103747&highlight=bbcode+permissions) mod could make it safer with permission restrictions per usergroup.
I also made a little better button.
bashy
08-28-2006, 08:33 AM
Hey rickie...
Anyway to get this to work when you edit a post please...
If you edit a post to ad an iframe it dont work :(
I am also sure that if you edit a post with an iframe it messes that up, not 100% if thats correct though pmsl... will test the latter now!!
EDIT: forget it, its making me out a lier now, I cant reproduce either of the issues pmsl.... I will edit the post i tested it on later to see if its a time thing lol
Rickie3
08-28-2006, 08:55 AM
@bashy if you make edits make sure you do a hard refresh on the page after you click the save button,you'll see there's no problems
bashy
08-28-2006, 09:17 AM
Hi m8...
Just tried doing what ya said and i still get...see image lol
@bashy if you make edits make sure you do a hard refresh on the page after you click the save button,you'll see there's no problems
Q-v-n-s-Q
10-01-2006, 11:05 PM
thanks.. work perfect
http://www.gamerzarea.com/forums/members/q-vns-q.html
^SuiCyde^
12-02-2006, 08:09 AM
any way that we could add a quick reply button for our iframe? PM me if this is possible and easy to accomplish.....
Rickie3
12-02-2006, 08:18 AM
thanks.. work perfect
http://www.gamerzarea.com/forums/members/q-vns-q.htmlplease click install
Rickie3
12-02-2006, 08:19 AM
any way that we could add a quick reply button for our iframe? PM me if this is possible and easy to accomplish.....will look into it, please click install for support
Tulsa
02-04-2007, 09:12 PM
Is there anyway to make this work with the Google translator? I can translate a page and grab the url and while it will bring up the page, it will no longer be translated.
^SuiCyde^
02-09-2007, 08:41 PM
i been doing this for over 3 yrs now, never seen it released on vb though it was just very obvious.....
just looking for a followup on the quick reply for iframe, but i had another question.....
could we instead, if we needed to popup a page using javacript from a next page
say a music profile.....soundclick page, is there a way that we could do the iframe just to show the link, like could i have this javascript popup enabled somehow directly from my forum?
lo-fi URL: http://www.soundclick.com/util/getplayer.m3u?id=4901552&q=lo
hi-fi URL: http://www.soundclick.com/util/getplayer.m3u?id=4901552&q=hi
i guess what i'm proposing is a self destructing iframe to break it down......
i want to be able to have an iframe inside a thread that pops up with a link almost like the google iframe redirector saying something like..... Please Wait While Music is loading... give it maybe 1 or 2 seconds, then close IT SELF.....for direct interaction with soundclick's script....
BACANERIA
03-05-2007, 03:29 AM
Thanksss i really really like this thanksss.
One question though. How can i hide the link? i dont want others too see the link an be able to copy it.
rolfw1
03-06-2007, 05:52 PM
Nice one, thanks mate. :)
Install clicked. :)
BadgerDog
03-22-2007, 03:12 PM
Very nice... thanks... :)
Regards,
Doug
FelixFlow
10-17-2007, 05:52 AM
hmm, very strange
this code works, but if i add the custom bb code permissions mod https://vborg.vbsupport.ru/showthread.php?t=103747 (i only want administrators to use the iframe tag) then the iframe tag doesnt work
:(
nallamothu
08-09-2008, 08:04 AM
Great Addon,
Thank You
wmlvb
11-15-2008, 09:53 AM
is this the one everyone is using or is there updated options?
ravencr
09-24-2010, 05:35 PM
Does this work for 4.07?
Chris
khaos44
06-29-2011, 02:42 AM
Trying to get an iframe code so I can input a video but this code gives me 404 error
john7911
10-12-2013, 05:58 PM
Hi,
I know it's old but can any one tell me why this Iframe does not work?
[slideshare id=21893119&doc=ilfallaitattraperlinstantmagique-rh-listea-130525072053-phpapp01]
Thank you.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.