Thanks for the info.

I just took a look and it's not quite the way I want to go, but is an
option

That plugin replaces a single <!-- jambo --> with the form. No options
as far as I can see. I want to be able to pass in attributes that
don't fall within the default parameters.

Maybe I can set it up where I store the media in a database table
(passed in through a form in the admin section), and create tags for
each one, like <!-- mediaspace_1 --> and it will replace that tag with
id=1 info. I would prefer to not have to do that if possible, but it
is one method of doing it.

What's your thoughts on parameters vs db info?

Thanks


On Jan 23, 2:07 pm, Michael Bishop <[email protected]> wrote:
> Probably not much help, but the jambo plugin I think uses a "short tag" to
> insert the contact form, might get some direction from there.
>
> ~miklb
>
>
>
>
>
>
>
> On Sun, Jan 23, 2011 at 1:27 PM, theprodigy <[email protected]> wrote:
> > forgot to add src to the list of attributes I would like to accept.
> > Here is the updated list:
>
> > width:500,
> > height:400,
> > src:whatever.flv (or myimage.jpg, etc),
> > autoplay: false,
> > fit:false,
> > title:false,
> > closetitle:false,
> > firstitem:true
>
> > I think I have a good start on it. Here is what I have.
> > (\[mediaspace)(\s+(width|height|src|autoplay|fit|title|closetitle|
> > firstitem)=(\d|\w|\.)+)+\]
>
> > That has a few problems I would like to avoid if possible. It allows
> > multiple of the same attribute being set:
> > [mediaspace width=200 width=375]
>
> > And it also allows the attributes to be set with either numbers,
> > letters, or . (the period - I added due to src attribute needing file
> > extension)
>
> > If possible, I would like each attribute being able to be set only
> > once (or not at all - defaults will be used), and the following
> > settings:
>
> > width (numeric)
> > height (numeric)
> > src (normal file settings with extension)
> > autoplay (boolean)
> > fit (boolean)
> > title (boolean)
> > closetitle (boolean)
> > firstitem (boolean)
>
> > The following regex restricts what each can be set to, and allows to
> > put them in any order, but doesn't restrict one per.
>
> > (\[mediaspace)(\s+(width=(\d)+|height=(\d)+|src=(\d|\w|\.)+|
> > autoplay=(true|false)|fit=(true|false)|title=(true|false)|
> > closetitle=(true|false)|firstitem=(true|false))?)*\]
>
> > I thought the ? would restrict 0 or 1, but I guess not in this case.
>
> > I would appreciate any help you can offer.
>
> > Thanks
>
> > --
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/habari-dev

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev

Reply via email to