[pmwiki-users] Recipe to embed WRL 3D models

Benoit Dutilleul benoit.dutilleul at googlemail.com
Thu Dec 20 12:27:40 CST 2007


Hi there,

I made a small recipe to embed WRL objects in pmwiki:
http://www.pmwiki.org/wiki/Cookbook/DisplayWRL

Cheers,

Benoit

2007/11/25, Matt Strauser <syntereo at gmail.com >:
>
> Hello Benoit,
>
> Take a look at
> http://www.pmwiki.org/wiki/PmWiki/Installation
>
> It may involve setting file  permissions back to 755, but I'm not sure.
> I know that browsers will read the index.html or .php file first instead
> of showing the folder contents.
>
> I hope that helps,
> Matt
>
>
>
> On Nov 25, 2007 2:12 PM, Benoit Dutilleul <
> benoit.dutilleul at googlemail.com> wrote:
>
> > Thanks Matt,
> >
> > I have added an index.php to that folder. This seems to be a normal
> > behavior of pmwiki not to protect the uploads folders, at least on my
> > installation. Do you know how this can be solved?
> >
> > Thanks a lot for your help.
> > Benoit
> >
> >
> >
> > 2007/11/25, Matt Strauser <syntereo at gmail.com>:
> > >
> > > Bonjour Benoit,
> > > FYI: I found this directory to be viewable:
> > > *http://www.web-farm.org/wiki/fields/WiCo/uploads/ItemPages/*<http://www.web-farm.org/wiki/fields/WiCo/uploads/ItemPages/>
> > >
> > >
> > > I think if you put an index.html or index.php file in the folder it
> > > will prevent others from viewing your documents.
> > >
> > > Merci,
> > > Matt
> > >
> > >
> > >
> > > On Nov 25, 2007 1:45 PM, Benoit Dutilleul <
> > > benoit.dutilleul at googlemail.com> wrote:
> > >
> > > > 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 < pmichaud at pobox.com>:
> > > > >
> > > > > 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
> > > > pmwiki-users at pmichaud.com
> > > > http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> > > >
> > > >
> > >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20071220/09d9e738/attachment.html 


More information about the pmwiki-users mailing list