Dear pmwiki users!<br><br>I've been trying to write a recipe to display WRL files (3D models) in pmwiki. I could get it to work by "hard-wiring" a specific file:<br><br><?php if (!defined('PmWiki')) exit ();
<br>Markup('wrl', 'directives', '/\\(:wrl:\\)/',<br>
Keep("<embed
src='<a href="http://www.mediamachines.com:80/uploads/233/Reflections/3/model.x3d?myuid=0&inst=-712630691&src=codes">http://www.mediamachines.com:80/uploads/233/Reflections/3/model.x3d?myuid=0&inst=-712630691&src=codes
</a>'
WIDTH='420' HEIGHT='250' NAME='flux' TYPE='model/x3d+xml' DASHBOARD='0'
LOADSCREEN='1'/></div>") );<br>?><br><br>This can also be seen on this test page:<br><a href="http://wico.web-farm.org/index.php/Test/WRLRecipe">http://wico.web-farm.org/index.php/Test/WRLRecipe</a>
<br><br>Now, I am trying to implement (:wrl <a href="http://www.mymodel.3d:">http://www.mymodel.3d:</a>) according to the markup development page but I can't get it to work:<br><br>
<?php if (!defined('PmWiki')) exit ();<br>Markup('wrl', 'directives',<br> '/\\(:wrl (\\d+) :\\)/e',<br> Keep("<embed src='$1' WIDTH='420' HEIGHT='250' NAME='flux' TYPE='model/x3d+xml' DASHBOARD='0' LOADSCREEN='1'/>") );
<br>?><br><br>Any idea about what is wrong or missing?<br>Thanks!<br><br>Benoit<br>