Gallery is finally up on the site

Finally got the gallery up on this site. You may have guessed, it's Gallery 2 integrated with Drupal.

I was a bit weary about using an integration as i always believe it's better to run something that is native to the system in use. However, it seems a good clean integration and was faster than having to use Views and CCK with imagecache which is possible to build up a gallery. Maybe some day when i have more time i'll use the modules instead. For now, it will do.

Anyhow, as you can see it is not complete. It stills needs to be styled and more photos uploaded. But it's coming up for 2am and i'm knackered. So will leave this until tomorrow.

As i mentioned previously, will try and get a tutorial up on Integrating Drupal with Gallery2. One problem, the gallery works fine so far but one thing i couldn't get working is the friendly URLs. I've had to disable it in Gallery2 and i think this may have affected administering Gallery from my Drupal install. Will debug more tomorrow. If i still can't resolve the issue, i'll probably just document up to this point as it is working and try and find a fix somehow.

Not to forget, the gallery block to be display at the bottom page will be added as well.

UPDATE (11th March 2008):
Finally got the friendly URLs to work with Gallery2, thanks to lvthunder for his wonderful help. What happen was that a bit of the code needed for the Drupal .htaccess file was missing which should have been added by Gallery2 embed module. Here it is:

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . - [L]

RewriteCond %{THE_REQUEST} /d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . /gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=
%1&g2_serialNumber=%2&g2_fileName=%3
[QSA,L]
RewriteCond %{THE_REQUEST} /key/([^?/]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . /index.php?q=gallery&g2_view=keyalbum.KeywordAlbum&g2_keyword=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule . /index.php?q=gallery&g2_path=%1 [QSA,L]

Place that at the top of your Drupal .htaccess file and hey presto!