Dear pmwiki users!
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:
<?php if (!defined('PmWiki')) exit ();
Markup('wrl', 'directives', '/\\(:wrl:\\)/',
Keep("<embed src='
http://www.mediamachines.com:80/uploads/233/Reflections/3/model.x3d?myuid=0&inst=-712630691&src=codes'
WIDTH='420' HEIGHT='250' NAME='flux' TYPE='model/x3d+xml' DASHBOARD='0'
LOADSCREEN='1'/></div>") );
?>
This can also be seen on this test page:
http://wico.web-farm.org/index.php/Test/WRLRecipe
Now, I am trying to implement (:wrl http://www.mymodel.3d:) according to the
markup development page but I can't get it to work:
<?php if (!defined('PmWiki')) exit ();
Markup('wrl', 'directives',
'/\\(:wrl (\\d+) :\\)/e',
Keep("<embed src='$1' WIDTH='420' HEIGHT='250' NAME='flux'
TYPE='model/x3d+xml' DASHBOARD='0' LOADSCREEN='1'/>") );
?>
Any idea about what is wrong or missing?
Thanks!
Benoit
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users