GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing www.mediawiki.org — Extension:IframeTag - MediaWiki
This extension allows you use iframe tags in your wiki and makes some attempt to validate the URLs being embedded in iframes. Your wiki admins will be able to use a page in the MediaWiki namespace to update the list of allowed URLs. As of this writing, only the following attributes are supported:
InstallationYou can install the extension by using composer at the root of your wiki instance: COMPOSER=composer.local.json composer require --no-interaction --no-update mediawiki/iframe-tag composer update --no-progress --no-interaction --no-dev --optimize-autoloader Then add the following to your LocalSettings.php: wfLoadExtension( 'IFrameTag' ); Or, if you prefer to have the configuration of the allowed hosts made directly in LocalSettings.php and not in the special page: wfLoadExtension( 'IFrameTag' ); $iFrameOnWikiConfig=false; $iFrameDomains = [ 'one.example.com', 'two.example.com', 'three.example.com' ]; Configuring the allowed hostsCurrently, host name matching is done based on the full domain name. If a list of names is allowed hosts is given in the configuration and the host in the There are two methods for configuring permissible domains. On Wiki configurationThis method is enabled by default, but if you do not want your administrators changing the list of allowed domains, you can set $iFrameOnWikiConfig=false; If you leave the method enabled, people with the editsitejson (administrators and interface administrators by default) will be able to change the value of { "domains": [ "one.example.com", "two.example.com", "two.example.com" ] } PHP ConfigurationThis is the familiar "set a PHP variable in your In your $iFrameDomains = [ 'one.example.com', 'two.example.com', 'three.example.com' ]; How the tag is parsedThe If problems are found with when parsing the iframe tag attributes, that attribute is skipped, notes about what went wrong are they are inserted into the page output as HTML comments. If the | ||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||