On Mon, Sep 8, 2008 at 3:15 PM, alinome.net <[EMAIL PROTECTED]> wrote:
>
>> > * Improve theimagetag to add the width and height. That's important
>> > for web usability. I think this is quite easy to implement. I was
>> > going to do it myself.
>>
>> It should already be there.. [^img.gif height=100 width-100^] Does
>> it not work for you?
>
> I meant those attributes to be added automatically by the system. They
> help the browser to render faster.
> I'm tinkering with that, It's not difficult.
How does BoltWire know the height and width if they are not provided?
Does PHP have a way to scan the graphic file and generate these
numbers or something? It might be nice to fix this. I like pages that
load this way better.
> I also had the idea to put the dir in its "natural" place, saving the
> dir parameter:
>
> {{dir/subdir/image_file}}
>
> That is a good idea for considering. That is the sintax of the links
> -- we don't say [[external_page.html dir=http://domain.com/
> folder/]] :-) I see no advantage in making the user to separate the
> file and the directory. BoltWire can easily separate them.
I think for security purposes you need to be able to make sure you
don't allow any ../../ stuff in the path to make sure files can't be
included from other places on the server. Probably not a critical
issue, but it's good to take every precaution possible. I'm a bit
paranoid on the security issue. Well, at least that's the historical
reason behind this. Also, remember, some individuals might have php
files for download (uses same markups). If you are not careful you
might thus open BoltWire for someone to download a config file with
secure information in it or something. Just a caution. Though
admittedly I'm not a security expert.
> Also additional parameters will be allowed, the same way as the link
> markup:
>
> {{dir/image_file|alt_text|parameters}}
It looks nice!
> One problem I see is that WikiCreole allows to use images in links:
>
> [[page|{{image}}]]
>
> I think it would be hard to implement now in BW, but it's not urgent.
I think you can do images in links now like this:
[[page|img:file.gif]] or [[page|[^file.gif^]]]
The problem with the wiki-creole syntax is BoltWire's extensive use of
variables like this {id}. As these are processed before links
{{image}} would turn into {} after the {image} markup failed to find a
corresponding variable. In other words you will have to somehow work
around the existing variables markup in BoltWire. Not impossible, just
things to consider
Keep up the experimentation. Let me know what you come up with.
Cheers,
Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
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/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---