Extension talk:Website in iFrame

From MediaWiki.org
Jump to: navigation, search

This is great, thanks very much. We've found it especially useful on our intranet: great for including forms, stats pages, etc. --Samdutton 14:48, 18 January 2008 (UTC)

Would it be possible to add an option that would limit iFrame'ing to a single domain (designated in the .php file)? For instance, I want to create web page that incorporates embedded Google maps, but I don't want to expose my site to random vandalism by spammers, users, etc. Since it's the only site I need to use <websiteFrame> tag for, why leave open to other sites? Just a thought. Great extension btw! - Samspectre 19:59, 27 February 2008 (UTC)

Take a look at this site: Iframe Isn't it what you're looking for?
"Also, a new "feature" is added. This script checks for the global variable $iframe_allowed_hosts. If it exists, then only hostnames (ie, ::www.google.com) in that array are allowed. An simple message is returned if the user attempts to use an unauthorized host. Don't count on this being ::foolproof or completely secure, but it's something! In your LocalSettings.php file, set the following, for example:
$iframe_allowed_hosts = array("www.google.com", "www.mysite.com"); " --84.61.39.83 22:17, 23 March 2008 (UTC)

Contents

[edit] Extension breaks rss?

I have this problem where when enabling this extension the RSS-feed breaks. Firefox as the RSS-reader gives an error XML Parsing Error: XML or text declaration not at start of entity and low and behold, the output does start with a newline, not with the xml-tag. If I comment out the include-line from Localsettings.php RSS works again. Has anyone else experienced this? --83.145.209.219 19:25, 8 May 2009 (UTC)

Nevermind. I had a trailing whitespace in extensions/websiteFrame.php. Removed that fixed the problem. --83.145.209.219 09:35, 9 May 2009 (UTC)

[edit] strictly validate user

In the main page it says "strictly validate user input and/or apply escaping to all characters that have a special meaning in HTML", but how can I strictly validate user input? Have I to set something in the localsettings.php? Can you explain it to me with an example as well? Thanks in advance. Mark

[edit] Force refresh

Is there any way to force a refresh of the wiki page if linked content is changed? --Robinson Weijman 13:46, 2 July 2009 (UTC)

[edit] Cannot Be Used With Variables?

We use Extension:VariablesExtension but it seems that this cannot be used in combination with this extension. We want to put (part of the) URL into a variable - but with this extension the URL is not correctly displayed. Tried a workaround using a template but that also does not work. Does anyone have any ideas? --Robinson Weijman 07:23, 30 July 2009 (UTC)

If you are using version 1.16.x you can modify the function based on the following code.
function efWonderfulHook( $text, $args, $parser, $frame ) {
        $output = $parser->recursiveTagParse( $text, $frame );
        return $output;
}

[edit] Version?

I can't see when this was last updated - anyone know? Is there a version number or date / time stamp? --Robinson Weijman 15:27, 22 July 2010 (UTC)

[edit] Any way to get marginwidth attribute working ?

Hello, apparently the marginwidth and marginheight attributes (http://www.w3schools.com/tags/tag_iframe.asp) do not work with this extention, correct?

Do you know if those attributes work with the the iframe widget extention??

--Ali.T 13:18, 10 December 2011 (UTC)

[edit] Multiple Iframe links into same target

I've been using this extension for a while and I seem to recall being able to feed different links into a single iframe within a wiki page. Example usage can be seen here with non-functioning links: http://txpoliticalalmanac.com/index.php?title=Election_2010

I'm using MediaWiki 1.12 and the websiteframe.php file is dated October 2008. That's an identical setup used in a previous iteration of the wiki above before I ported it over to a dedicated domain last November. So I'm not sure if I'm incorrect in thinking that the iframe/target swap had worked before, if there's a version conflict that's preventing it from working now, or what. Bottom line, if there's a way to change out the website within the iframe, that's what I'm looking to do. Any help would be appreciated.

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox