vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Add iframe (https://vborg.vbsupport.ru/showthread.php?t=113423)

Rickie3 04-18-2006 10:00 PM

Add iframe
 
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
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 [iframe]url[/iframe]
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 [iframe]your.site.com[/iframe]

see below screenshot of how it looks on my board
or click here
Live Demo

imported_predatorkill 04-19-2006 09:42 AM

great code add on!:banana:

one error tho,when i put a link example [iframe]www.domain.com[/iframe]

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

Quote:

Originally Posted by puertoblack2003
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

Quote:

Originally Posted by bashy
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

Quote:

Originally Posted by yinyang
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

Quote:

Originally Posted by Rickie3
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

Quote:

Originally Posted by yinyang
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

Quote:

Originally Posted by NR Fatal
At all it doesn't?

nope. i have no idea why!

Rickie3 04-25-2006 11:28 PM

Quote:

Originally Posted by NR Fatal
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

Quote:

Originally Posted by yinyang
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/im...itor/frame.gif
is the img i used...

glorify 07-30-2006 08:27 PM

Like it. This 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

Quote:

Originally Posted by Rickie3
@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

Quote:

Originally Posted by Q-v-n-s-Q (Post 1087974)

please click install

Rickie3 12-02-2006 08:19 AM

Quote:

Originally Posted by ^SuiCyde^ (Post 1129880)
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/getpl...d=4901552&q=lo
hi-fi URL: http://www.soundclick.com/util/getpl...d=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. :)


All times are GMT. The time now is 04:54 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.01230 seconds
  • Memory Usage 1,818KB
  • 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
  • (11)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
  • (40)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