ROK Gallery working...almost

15 views
Skip to first unread message

Zachary

unread,
Jan 4, 2010, 12:54:37 PM1/4/10
to Pixie
I have ROK gallery up and running.
The only thing I can't figure out is
how to configure the htaccess file.

Could someone please tell me
how to configure the directories.
mine are: mysite.com/files/photos

I found the photos.zip package here:
http://groups.google.com/group/pixie-cms/msg/32a25dcabd1246e7

regards

Scott

unread,
Jan 5, 2010, 10:32:14 AM1/5/10
to Pixie
Hi Zachary
Glad to hear you are getting close to having it working. Once you
do... make sure you post back any tips you have.

The required .htaccess file can be found in the zip file:
http://beta.robert-kummer.de/files/packages/photos.zip ... it looks
like this:

RewriteEngine on

# folder/tn_image.jpg
RewriteCond %{REQUEST_URI} ([a-zA-Z0-9_\-]*)/tn_([a-zA-Z0-9_\-]*)\.
(jpe?g|png|gif|bmp)$
RewriteRule ([a-zA-Z0-9_\-]*)/tn_([a-zA-Z0-9_\-]*)\.(jpe?g|png|gif|bmp)
$ .script/exif_thumbnail.php?file=$1/$2.$3

# folder/thumb_image.jpg
RewriteCond %{REQUEST_URI} ([a-zA-Z0-9_\-]*)/thumb_([a-zA-Z0-9_\-]*)\.
(jpe?g|png|gif|bmp)$
RewriteRule ([a-zA-Z0-9_\-]*)/thumb_([a-zA-Z0-9_\-]*)\.(jpe?g|png|gif|
bmp)$ .script/sepia_thumbnail.php?file=$1/$2.$3

# folder/thumbnail_image.jpg
RewriteCond %{REQUEST_URI} ([a-zA-Z0-9_\-]*)/thumbnail_([a-zA-Z0-9_\-]
*)\.(jpe?g|png|gif|bmp)$
RewriteRule ([a-zA-Z0-9_\-]*)/thumbnail_([a-zA-Z0-9_\-]*)\.(jpe?g|png|
gif|bmp)$ .script/bw_thumbnail.php?file=$1/$2.$3

# folder/photo_image.jpg
RewriteCond %{REQUEST_URI} ([a-zA-Z0-9_\-]*)/photo_([a-zA-Z0-9_\-]*)\.
(jpe?g|png|gif|bmp)$
RewriteRule ([a-zA-Z0-9_\-]*)/photo_([a-zA-Z0-9_\-]*)\.(jpe?g|png|gif|
bmp)$ .script/photo.php?img=$1/$2.$3

# folder/folder/image.jpg
#RewriteCond %{REQUEST_URI} folder/([a-zA-Z0-9_\-]*)\.(jpe?g|png|gif|
bmp)$
#RewriteRule folder/([a-zA-Z0-9_\-]*)\.(jpe?g|png|gif|bmp)$ .script/
folder.php?folder=$1

# thumbnail/folder/image.jpg
#RewriteCond %{REQUEST_URI} thumbnail/([a-zA-Z0-9_\-]*)/([a-zA-Z0-9_\-]
*)\.(jpe?g|png|gif|bmp)$
#RewriteRule thumbnail/([a-zA-Z0-9_\-]*)/([a-zA-Z0-9_\-]*)\.(jpe?g|png|
gif|bmp)$ .script/exif_thumbnail.php?file=$1/$2.$3

# photo/folder/image.jpg
#RewriteCond %{REQUEST_URI} photo/([a-zA-Z0-9_\-]*)/([a-zA-Z0-9_\-]*)\.
(jpe?g|png|gif|bmp)$
#RewriteRule photo/([a-zA-Z0-9_\-]*)/([a-zA-Z0-9_\-]*)\.(jpe?g|png|gif|
bmp)$ .script/photo.php?img=$1/$2.$3

#RewriteCond %{REQUEST_URI} view_([0-9]{3,4})_([0-9]{2,3})/([a-zA-Z0-9_
\-]*)/([a-zA-Z0-9_\-]*)\.(jpe?g|png|gif|bmp|JPE?G|PNG|GIF|BMP)$
#RewriteRule view_([0-9]{3,4})_([0-9]{2,3})/([a-zA-Z0-9_\-]*)/([a-zA-
Z0-9_\-]*)\.(jpe?g|png|gif|bmp|JPE?G|PNG|GIF|BMP)$ .script/view.php?
img=$3/$4.$5&size=$1&qual=$2

Hope that helps.

Scott

Zachary

unread,
Jan 6, 2010, 8:52:33 AM1/6/10
to Pixie
Hi Scott,
Thanks for your reply.
My post probably wasn't worded right.
What I was trying to do is setup the .htaccess file.
I want to know that if the file you posted above
references correctly my photos directory: mysite.com/files/photos/
[individual folder]/[individual file].jpg
And that if I upload that file exactly as shown, if it will work or
not.

I mean, why is it "folder/folder/image.jpg" when what I want (I think)
is /folder/image.jpg
I am not sure if it takes the root as /files or if I have to put that
before each address.

Zachary

On Jan 5, 3:32 pm, Scott <scotts...@gmail.com> wrote:
> Hi Zachary
> Glad to hear you are getting close to having it working. Once you
> do... make sure you post back any tips you have.
>

> The required .htaccess file can be found in the zip file:http://beta.robert-kummer.de/files/packages/photos.zip... it looks

Scott

unread,
Jan 8, 2010, 5:41:17 AM1/8/10
to Pixie
Hi Zachary
To be honest I am not overly sure what all of the rules in
the .htaccess do. Some look to be commented out. I think you have a
choice as to which ones you use depending on if you want thumbnails to
be black & white, sepia etc.

I would imagine that adding all those to your .htaccess will not do
any harm. I think you need to have clean URLs enabled in Pixie for
this to work properly as well. So make sure you do that.

I think I might remove the download from the Pixie site as it seems to
cause more trouble that is worth - it was developed by a third party
developer who no longer maintains it. Have you tried this gallery:

http://pixie-cms.googlegroups.com/web/gallery_restricted_host.zip

Scott

Reply all
Reply to author
Forward
0 new messages