Page 1 of 1

Gallerimage Plugin syntax

Posted: Wed Oct 05, 2005 9:17 pm
by bbruecker
Hello,

I’ve Gallery2and serendipity 0.8.5 on my hosting account at domainfactory. Both are running fine, but I like to join them together so I installed Markup Gallery Image.

1) Does this plugin insert a link or albums or only a link to albums or link?
Inserts a Gallery album or image using markup text.


2) The configurations page is a little confusing (by my point of view):
2.1) URLs
URL of Gallery
URL of the Gallery album directory

- With or without “http://” at the beginning
- Do I have to write a “/” at the end?
Tests yields to different results.
2.2) Path-particulars:
Absolute gallery-path (Only used for Gallery 2.x versions!)
The absolute server-path to the gallery directory.[/quote]
- Do I have to write a “/” at the end?
Absolute album-path (Only used for Gallery 2.x versions!)
The absolute server-path to the album directory. The ./tmp directory in this album directory has to be writeable for the webserver!
- Do I have to write a “/” at the end.
- I’ve got no tmp directory in my album directory. The only tmp directory at my gallery2 installation is from the root of the base installation directory.

3) It was a little bit tricky to find out, to find the usage of the plugin, until I was looking in the PHP-File of the plugin.
// Basic usage is:
// [GImage]album/image.ext[/GImage] with .ext needed if not the default .jpg
// full syntax is:
// [GImage size=sized|full|thumb; link=image|image_sized|album|page|none; align=left|center|right|none; caption=text string; style=link|fancy|image]album/image.ext[/GImage]
- But I’m only able to write link (if a link is the correct result) with basic syntax.

Btw: Examples are always a helpful and it would be great, to insert a text in the view of serendipity, not only at the plugins source code. Serendipity is great and different from many other blog-software for me because I usually don’t have to edit source code.

I hope that someone can help me by answering my questions. Thanks a
lot!

Benjamin

Re: Gallerimage Plugin syntax

Posted: Wed Oct 05, 2005 10:38 pm
by dma147
bbruecker wrote:Hello,

I've Gallery2and serendipity 0.8.5 on my hosting account at domainfactory. Both are running fine, but I like to join them together so I installed Markup Gallery Image.

1) Does this plugin insert a link or albums or only a link to albums or link?
Inserts a Gallery album or image using markup text.


Hello Benjamin,

the galleryimage plugin "only" inserts images from gallery[2] to your entries and places links on them as you've specified within the tag.
Such a link can redirect you directly to the fullsized picture (link=image), directly to a small-sized image (link=image_sized), directly to the gallery[2]-album page which contains this image (link=album) or directly to the image-page of gallery2 which shows the image (link=page)
2) The configurations page is a little confusing (by my point of view):
2.1) URLs
URL of Gallery
URL of the Gallery album directory

- With or without “http://” at the beginning
- Do I have to write a “/” at the end?
Tests yields to different results.
Well... urls always begins with http://, not? Sure, with http://. ;)
And I really wonder, why garvin and the s9y team added the trailing slash to all path-variables in s9y. It should be normal and usual, that the trailing slash will not be appended.
So, please, without the trailing slash.
2.2) Path-particulars:
Absolute gallery-path (Only used for Gallery 2.x versions!
The absolute server-path to the gallery directory.
- Do I have to write a “/” at the end?
see above.
Absolute album-path (Only used for Gallery 2.x versions!)
The absolute server-path to the album directory. The ./tmp directory in this album directory has to be writeable for the webserver!
- Do I have to write a “/” at the end.
see above.
- I’ve got no tmp directory in my album directory. The only tmp directory at my gallery2 installation is from the root of the base installation directory.
hmm, that's curious... in my new installed gallery2 i have a tmp subfolder in my album directory. If you don't have such a subfolder, please create it and make it writeable to the server (chmod 777).
3) It was a little bit tricky to find out, to find the usage of the plugin, until I was looking in the PHP-File of the plugin.
// Basic usage is:
// [GImage]album/image.ext[/GImage] with .ext needed if not the default .jpg
// full syntax is:
// [GImage size=sized|full|thumb; link=image|image_sized|album|page|none; align=left|center|right|none; caption=text string; style=link|fancy|image]album/image.ext[/GImage]
- But I’m only able to write link (if a link is the correct result) with basic syntax.

Btw: Examples are always a helpful and it would be great, to insert a text in the view of serendipity, not only at the plugins source code. Serendipity is great and different from many other blog-software for me because I usually don’t have to edit source code.
You can find all needed information on how to use this plugin on the main homepage of this plugin:
http://ffaat.pointclark.net/blog/pages/ ... image.html

then all should be clear. ;)