1
hello
I try to add a map of France in swf format in a block
blocks in the file ../templates/blocks/url_blocks_cartes.html
<{$block.urlCartes}>
and in the file ../blocks/url_cartes.php
function b_url_cartes($options)
{
global $xoopsDB, $xoopsModuleConfig, $xoopsModule, $xoopsTpl, $xoopsConfig, $xoopsUser;
$block = array();
$block['title'] = _MB_TITLE_CARTE;
$block['urlCartes'] =
$fichier = XOOPS_URL . "/modules/url/cartes/".$xoopsConfig['language']."/datas.xml";
$dom = new DOMDocument();
if (!$dom->load($fichier)) {
die(redirect_header(XOOPS_URL."/modules/url/index.php",3, "Impossible de charger le fichier XML du bloc cartes !"));
}
;
$block['urlCartes'] .= '
<object type="application/x-shockwave-flash" data="'.XOOPS_URL.'/modules/url/cartes/'.$xoopsConfig['language'].'/france.swf" width="385" height="400">
<param name="movie" value="'.XOOPS_URL.'/modules/url/cartes/'.$xoopsConfig['language'].'/france.swf" />
<param name="loop" value="false" />
<param name="wmode" value="#CCBF73" />
<param name="quality" value="best" />
</object>
';
return $block;
}
}
my card does not appear??
I try as hard link in the html template does not work!
because of my xml file is not loaded and the file is needed france.swf
lack there a call to a function or class of xoops?
I try directly calling html page or is my card, so I add module_version.php
$modversion['templates'][10]['file'] = 'url_carte.html';
$modversion['templates'][10]['description'] = '';
then ../templates/blocks/url_blocks_cartes.html
<{include file="db:url_carte.html"}>
nothing appears !
thank you if you can help