Dear Patrick,

Thanks for your help! I implemented your advice and now, I get the plugin
window to appear properly but, somehow, it can't load the file in argument (
e.g.
http://www.web-farm.org/wiki/fields/WiCo/uploads/ItemPages/20071125_biogas_plant.wrl
)

This is how my wrl.php recipe looks like now:

<?php if (!defined('PmWiki')) exit ();
Markup('wrl', 'directives',
  '/\\(:wrl (\\S+):\\)/e',
  Keep("<embed src='$1' WIDTH='420' HEIGHT='250' NAME='flux'
TYPE='model/x3d+xml' DASHBOARD='0' LOADSCREEN='1'/>") );
?>

Thanks a lot!

Benoit

2007/11/25, Patrick R. Michaud <[EMAIL PROTECTED]>:
>
> On Sun, Nov 25, 2007 at 09:49:39PM +0100, Benoit Dutilleul wrote:
> >    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!
>
> The \d+ in the expression will only match digits.  You might want
> to use \S+? (non-space characters, as few as possible) instead.
>
> Pm
>
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to