> 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.

Yes, it's easy:
http://es2.php.net/manual/en/function.getimagesize.php

I have used that before with JPEG images. I don't know if it works
with all
image formats. I think this transparent feature is worth to be
included in BW.

> 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

I'm not a security expert too [neither?? My English fails here :-) ].
But the
path is relative to the files directory:

{{animals/dogs/toby.jpg}} loads field/files/animals/dogs/toby.jpg

{{/animals/dogs/toby.jpg}} or {{../animals/dogs/toby.jpg}} or whatever
could
be cleaned by the function (or produce an error message).

> > {{dir/image_file|alt_text|parameters}}
> It looks nice!

I think it's better the sintax to be as consistent as possible. Easier
for the
users. Images and files are very similar to links, so they can share
the
syntax. The most used parameters in both cases are the link text and
the alt
text, that's why they are specified wiki style, by position. Alt texts
are very
important for usability. It's easier and more "wikily" to type
{{photo.jpg|Alien}} than {{photo.jpg alt=Alien}}, and also it's easier
{{films/photo.jpg|Alien}} than {{photo.jpg dir=films alt=Alien}}...

I use {{ }} instead of [^ ^] because I'm trying to get BW as much
WikiCreole
compliant as possible, but also because the ^ requires three
keystrokes in my
Spanish Dvorak keyboard layout :-) Anyway I kept the original [^ ^]
markup
untouched and added the new one to experiment.

> I think you can do images in links now like this:
> [[page|img:file.gif]] or [[page|[^file.gif^]]]

Right!, I didn't try before, sorry. I thought that it wouldn't work
because of
the image parameters. I had tried to use {vars} in links and it didn't
work:

$BOLTvar['$en'] = '<span lang="en" xml:lang="en">';
$BOLTvar['$en_end'] = '</span>';

[[anypage|some words in other language and {en}these words in
English{en_end}]]

I get the <span> rendered as text :-( I have not searched why yet.
That's why I
thought an image with parameters wouldn't work inside a link.

> 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

I didn't think about that! Oops. I'll see what can be done. Perhaps
just to
ignore "variables" whose name inside the outer {} is {something}. By
the way,
there's more { and } in another WikiCreole markup:

{{{ text not rendered by the wiki engine }}}

:-)

Marcos

--
http://alinome.net



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to