PDA

View Full Version : iframe



TosaInu
01-04-2007, 23:04
Hello,

A new bbcode is added today. iframe

This bbcode will directly display a html page in a new frame in your post.
The width is set to 100% of the post, the hight is one you can provide in pixels. iframe=500 makes it 500 pixels high and will add scrollbars when necessary.

http://www.icrc.org/

Sasaki Kojiro
01-05-2007, 00:22
https://forums.totalwar.org/vb/showpost.php?p=1374878&postcount=2

Sasaki Kojiro
01-05-2007, 00:23
https://img178.imageshack.us/img178/1058/emotarghbr6.gif


Foiled!

drone
01-05-2007, 01:17
What are you trying to do Sasaki, bring down the .Org? :laugh4:

Any limitations/protections as to what can be included in the html? I don't particularly want javascripts, popups, flash, etc. coming up when I open up a thread. I'm also a little concerned about unexpected content being loaded automatically, since I, ummm, surf the .Org at work. Is there a way to turn this off, or tag it like spoilers which allow us to see the link URL before loading it?

TosaInu
01-05-2007, 01:34
Any limitations/protections as to what can be included in the html? I don't particularly want javascripts, popups, flash, etc. coming up when I open up a thread. I'm also a little concerned about unexpected content being loaded automatically, since I, ummm, surf the .Org at work. Is there a way to turn this off, or tag it like spoilers which allow us to see the link URL before loading it?

It's of course possible to code it in such a way that only pages from one controlled source can be displayed. What spurred the implementation of this code was a need to display static HTML pages, one controlled source was enough for that.

But, it seems it's possible to use it for other nice things too. Users are responsible, just like for any content of their posts.

It's disabled for new members (sorry, the selective hack didn't work yet, so all BBcode is disabled for now). So, when one of the members is abusing it, by posting malicious pages or pulling 'jokes', his account will be adjusted.

Yes, it's possible to wrap it in spoiler tags. However, sounds are not blocked by it.

drone
01-05-2007, 02:11
Spoiler tags wouldn't work for my purposes, since the content would be downloaded regardless if it is viewed or not. I'd be more interested in a user option to disable the iframe tag, but leave the URL so one could click the link after inspection. I can think of links that would not violate the Org rules, but I don't particularly want showing up in my sysadmin's logs. Some people might also want to disable this for the dial-up skins.

And, of course, all members are responsible for the content of their posts. :bow:

Stig
01-05-2007, 02:14
I think we can trust eachother that we won't post anything that is not Worksafe ... not only can it be offensive, impolite, etc etc, it can also get you a pretty long ban

TosaInu
01-05-2007, 02:27
Spoiler tags wouldn't work for my purposes, since the content would be downloaded regardless if it is viewed or not. I'd be more interested in a user option to disable the iframe tag, but leave the URL so one could click the link after inspection. I can think of links that would not violate the Org rules, but I don't particularly want showing up in my sysadmin's logs. Some people might also want to disable this for the dial-up skins.


Good point. But is it ok for a site like org to show in the sysadmin logs? It clearly says http://forums ?

drone
01-05-2007, 02:39
test post for flash content
http://www.albinoblacksheep.com/flash/base.html

Works, and it appears that my Mozilla FlashBlock works within the iframe, which is nice. Let me know if you want this edited out (it can get annoying ~D ) (Edited, replaced, with new open/close). Let the YouTube postings commence!


I think we can trust eachother that we won't post anything that is not Worksafe ... not only can it be offensive, impolite, etc etc, it can also get you a pretty long ban
Well, there's worksafe, and then there is worksafe. Depends on where you work. There are things people could post that don't break the rules, and I don't want to deny Orgahs the pleasure of posting those. I just tend to be picky about where I click though, and don't particularly want pages loaded without my consent (I can think of some links in Backroom arguments that I just will not go to from work). There is also the no-warning factor, you click to view an Org thread, and then you get blasted with a sound downloaded from elsewhere without knowing it.


Good point. But is it ok for a site like org to show in the sysadmin logs? It clearly says http://forums ?
Well, they haven't fired me yet! :creep:

MSB
01-05-2007, 08:41
www.totalwar.org

Well it sort of didn't work. What is the code?

Sasaki Kojiro
01-05-2007, 08:53
...

Quote an example and see?

MSB
01-05-2007, 09:42
http://www.bbc.co.uk

It worked, sort of? The site does exist, so why does it say that it doesn't?

Edit: http://

TosaInu
01-05-2007, 16:24
abcd

Caius
01-05-2007, 17:10
Seems it isnt working\Warning: this will open off-site content and may contain malicious code.:inquisitive:

drone
01-05-2007, 17:10
Not sure the "close" is working (of course, I'm not sure what you are trying to do with it), but the "open" seems to work. Thank you very much. :bow:

Edit-> @ Caius, if you click on the "Open http://whatever" next to the warning, it downloads.

Sasaki Kojiro
01-05-2007, 17:35
Yeah, "close" opens the black page in a new tab.

TosaInu
01-05-2007, 19:42
It does for some site yes. Still working on better code.


Seems it isnt working\Warning: this will open off-site content and may contain malicious code.

Instead of directly throwing the content to the reader, the reader can decide himself to view the content. The title source is displayed.

Husar
01-05-2007, 23:58
Very nicely done Tosa.:2thumbsup:

sapi
01-06-2007, 04:10
Nice work!

doc_bean
01-06-2007, 11:59
I like it !

MSB
01-06-2007, 15:51
You could have tested it using something slightly more irritating :grin:

http://www.albinoblacksheep.com/flash/llama.php

http://artistic-insanity.net/song/daleksong.html


And good work Tosa :thumbsup: It will help the Org immensely. Finally there is no need to post links that open in new tabs any more.

MSB
01-06-2007, 22:02
Just a bug in iframe in this thread (https://forums.totalwar.org/vb/showpost.php?p=1376976&postcount=7). If you try to close the iframe it opens a black page in a new tab.

And banning all vB code for Juniors is causing some Junior posts to be much harder to understand.

TosaInu
01-06-2007, 22:16
Just a bug in iframe in this thread (https://forums.totalwar.org/vb/showpost.php?p=1376976&postcount=7). If you try to close the iframe it opens a black page in a new tab.

Noticed. Not sure whether it's because of the URL co.uk, or something within that page. Will try to improve it.



And banning all vB code for Juniors is causing some Junior posts to be much harder to understand.

True. That's why something else was tried first, but that failed. Normal BBcode will be available to Junior Members when possible.

TosaInu
01-06-2007, 22:19
http://www.overclockers.co.uk

This co.uk URL works normally. The BBC doesn't want to be turned off?

Motep
01-07-2007, 02:53
for some reason it works like a link for whenever I try to do it...I click "open whatever" and it opens it.


screw it...might as well make a link anyways...

Th one ring: To rule them All! (http://www.devilducky.com/media/13796/)

MSB
01-07-2007, 11:27
Motep, the code is:

:gah: Just read sapi's post. I still can't get it to work.

sapi
01-07-2007, 11:30
{iframe=insert random number here, the larger the number the larger the size of the page]insert address here[/iframe]


^^He meant to write it like this

EDIT - i see his problem; fixed, but replace the { with a [

TosaInu
01-07-2007, 12:38
for some reason it works like a link for whenever I try to do it...I click "open whatever" and it opens it.


screw it...might as well make a link anyways...

Th one ring: To rule them All! (http://www.devilducky.com/media/13796/)

Which browser are you using?

Kralizec
01-07-2007, 18:26
Hmmm

https://forums.totalwar.org/vb/showpost.php?p=1377768&postcount=29

Kralizec
01-07-2007, 18:39
A collage.

https://img167.imageshack.us/img167/5297/krscreenis0.th.jpg (https://img167.imageshack.us/my.php?image=krscreenis0.jpg)

TosaInu
01-07-2007, 18:47
It does the nesting in your browser Kralizec?

Kralizec
01-07-2007, 18:53
Nesting? I'm not sure what you mean.

It was deliberate, not a bug.

I initially got the same idea as Sasaki. A frame can have a subframe but it won't work if it has the same URL as the original frame, apparently.
In the frame in my own post, I opened a subframe using Sasakis post, then opened this thread again and opened a sub-subframe using my own post again.

TosaInu
01-07-2007, 19:09
Nesting: frame inside a frame.

Edit: it doesn't show for me.