Hi
nunja, ob Block, oder Modul kommt auf die Menge der Inhalte an und wo es auf der Seite angezeigt werden soll. Denke auch, wenn es ein komplexes script ist, das da laufen soll ist der iframe die einfachste Lösung.
Als Blockdatei könnte das so aussehen:
/blocks/block-meiniframe.php
<?php
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
$mxblockcache = FALSE;
$content = '
<iframe src="http://www.deineseite.de/das_Script.php" width="100%" height="300" marginwidth="0" marginheight="0" frameborder="0">sorry, it's a iframe...</iframe>
;
?>
Als Modul würde es entsprechend so funzen:
/modules/dermodulname/index.php
<?php
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
// rechte Blöcke, an (1) oder aus (0)
$index = 1;
// header includen
include('header.php');
// iframe anzeigen, dabei am einfachsten den php-Parser verlassen
?>
<iframe src="http://www.deineseite.de/das_Script.php" width="100%" height="400" marginwidth="0" marginheight="0" frameborder="0">sorry, it's a iframe...</iframe>
<?php
// footer includen
include('footer.php');
?>