3
hi ghia
thank you kindly help me.
I want to display this map of France which is in swf format
I want to display a map of franceet other countries in a swf in a block of the module, but the file datas.xml is not taken into account unless I place it at the root of which is xoops impractical.
I prefer it to be taken into account if it is placed in a folder of the module. Here is the source code:
<div class="blockTitle"><h2>Cartesh2>div>
<div class="blockContent">
<script type="text/javascript" src="http://127.0.0.1/site_test/modules/url/js/swfobject.js">script>
http://127.0.0.1/site_test/modules/url/cartes/french/datas.xml
<object type="application/x-shockwave-flash" data="http://127.0.0.1/site_test/modules/url/cartes/french/france.swf" width="385" height="400">
<param name="movie" value="http://127.0.0.1/site_test/modules/url/cartes/french/france.swf" />
<param name="loop" value="false" />
<param name="wmode" value="#CCBF73" />
<param name="quality" value="best" />
object>
this is
http://127.0.0.1/site_test/modules/url/cartes/french/datas.xml
which is not good
$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, "Unable to load XML file block maps !"));
}
;
I think "load" is not interpreted read
if (!$dom->load($fichier)) {
I try with "xoops_load"
if (!$dom->xoops_load($fichier)) {
I have a blank page
thank you if you have the solution