Wikka Mod 018

Type: Feature Addition


IFrame


This is a very simple action that can be very useful to include content that otherwise might not easily import into a Wikka page.

Usage example:
{{iframe height="480" width="650" url="http://google.com"}}


Note: This feature has been removed from the default install due to security concerns. It can be activated by moving the iframe.php file in the /intranet folder to the /actions folder. Only activate this if your site is on a local intranet and not exposed to the public.



<?php

$width = $vars['width'];
$height = $vars['height'];
$url = $vars['url'];

echo '<iframe width="'.$width.'" height="'.$height.'" src="'.$url.'"></iframe>';

?>


How about this variation (I added frameborder="0"):
<?php

$width = $vars['width'];
$height = $vars['height'];
$url = $vars['url'];

echo '<iframe frameborder="0" width="'.$width.'" height="'.$height.'" src="'.$url.'"></iframe>';

?>
There are 10 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki