Hej folks.
I have a idea and I was searching around for a long time for a really good gallery. First of all I found a very good german lightweight picture gallery, but really lightweight. Only one php-file, no sub galleries, no db, no comments and no polling.
That would be ok, if you want it small, light and easy.
But I want more, I want comments and polling and - the important thing - I want a full php class structure so that I (more or less) can easy integrate the gallery into my website.
That´s my theme now!
I have a website programmed with the lightweight php framework codeigniter (http://codeigniter.com/).
I have my own templates, my ohnw MVC hierarchy (CI provide this) and I have a full DB connection where my content comes from.
The most gallerys - ZP so, too - has a full closed system, with templates and database connection.
My Question is now:
how can I fully integrate zenphoto in my website?
This means to me:
maybe I call http://mydomain.de/index.php/pictures/xyz
and this loads my website, my design and my selfprogrammed dynamic menu, but in my content-area I load ZP.
So how can I get instances from ZP and load into my website what I need (without reprogramming it): - galleries (and gallery navigation - paging)
- full pictures with
- comments and polling ...
- automatically ZP testing if the gallery is public or not ...
Provides ZP functions, modules and classes to get an instance of maybe a gallery or a picture back (as return statement or as an full object) instead of just publishing on the website (echo the whole content)??
Would be great if someone can give me some answers / ideas. Maybe someone has done this already and can help me??
If ZP provides the functions (or some) I need, I will write a wrapper (a library or plugin) for CI so that you can have a single ZP instance installed fully indepent from your CI core (website).
This is important to make a new version just simple available over a normal upgrade mechanism without hacking around in self modified and crapped-up code.
That´s all ... I´m agog of your answers.
Greetz
/Ulf
[edit]
I testing around the whole day to get a single picture from ZP to integrate it in my website. There are so many posts and questions ... and it´s easier as I thought.
I just wrote a function in my controller (CodeIgniter provided a full ModelViewController pattern) which access the DB and executes the SQL from the zenshow plugin to get the relevant information.
And then I can call: http://yourdomain.de/zen/myalbum/image/666/picture.jpg
where 666 is the size of the picture and I get a full sized picture. Very good!
If the rest is just that easy to integrate it is what I´ve dreamed from.