Icy Phoenix
phpBB 3 MODS And Styles (Not Compatible With phpBB 3.1) - [MOD] - OTF Gallery
Mighty Gorgon [ Sun 12 Aug, 2007 15:58 ]
Post subject: [MOD] - OTF Gallery
MOD Title: OTF Gallery
MOD Description: OTF Gallery is a really simple gallery system which allows admins to quickly upload and create Gallery Pages without using the DB for storing informations. Thumbnails are automatically generated.
MOD Version: 0.5.1
MOD Download:
http://www.icyphoenix.com/dload.php...id=1&file_id=51
Last Stable version: 0.5.1
Demo Board:
http://www.icyphoenix.com/_bb3/otf_gallery.php
Demo Username: demo
Demo Password: demopwd
PHP Author:
Mighty Gorgon
Flash Author:
FlepStudio
Hi All.
Here you will find OTF Gallery for phpBB 3 RC7.
It is the first time I try to integrate Flash into phpBB, and I'm not pretty sure if this will be accepted by mods guidelines... Anyway this beta version has some new features, feel free to test it and report bugs and comments.
Here some details.
DESCRIPTION:
OTF Gallery is a really simple gallery system which allows admins to quickly upload and create Gallery Pages without using the DB for storing informations. It has been designed to create and show thumbnails of images in one folder and provide a nice flash slideshow (coded by FlepStudio). All you have to do is uploading images into a folder and OTF Gallery will do the rest.
REQUIREMENTS:
- phpBB 3
- FTP access to the server
- CHMOD 777 to cache folders for storing thumbnails
- GD Libraries 2.x.x or above (it may works even with GD1 but it is not fully tested)
HOW TO INSTALL IT
- Check the requirements... if you fit in it, then download the package
- Check the requirements... if you fit in it, then download the package
- Unzip the package and upload all files contained in the root folder to your phpBB 3 root folder
- CHMOD 0777 album/cache/
- CHMOD 0777 album/cache/s/
- CHMOD 0777 album/cache/m/
- CHMOD 0777 album/cache/l/
- CHMOD 0777 album/cache/w/
- CHMOD 0777 album/otf/
- CHMOD 0777 album/otf/users_pics/
- CHMOD 0777 album/xml/
- Upload one or more folders with images into album/otf/ folder
- Load otf_gallery.php into your browser
- Choose your gallery from the dropdown and click on GO
KNOWN ISSUES:
- Some hosting doesn't allow to use many CPU charge on GD functions, so if you are having problems with this script, tro to use it on smaller images.
TROUBLESHOOTING:
- If you see only the link of images and not the thumbnails, you may not have the correct permissions set on your folders. Make sure that the folders where thumbnails are going to be stored are writable (CHMOD 777 on some servers).
- If slideshow images stretches it is likely to be related to thumbnails settings on your otf_config.php. Try to review your configuration.
TIPS:
- This gallery has been optimized for JPG and PNG. GIF images will be shown as well, but in thumbs and slideshows they will lose the animation due to GD2 and FLASH compatibility.
- Slideshow works best with no more of 450px height large thumbs (used for images in slideshow), and no more of 30 pictures, otherwise pages may stretches and/or pictures won't fit.
- Small thumbnails for slideshow needs to be forced to the size they are or they won't fit the small frame in the slideshow.
FAQ:
- What is this mod for?
This mod is a quick gallery system to be feeded by admins. It has been created to show images thumbnail in a gallery style by simply uploading folders with images. Since this system doesn't rely on DB, then no special features are available such as rating, commenting, and anything else which should be DB related. It is just an easy way to show images in an automated way. No need to create extra HTML pages with your images. Those who don't have FTP access may upload pictures using otf_upload.php, but pictures will be stored in a standard folder for all users (users_pics).
- Is this a full gallery system?
No it isn't, and no extra special features will be added. It is meant just to give quick gallery pages. If you are looking for a full gallery system this MOD is not for you.
- Does this system use DB to store information in?
No OTF Gallery relies only on physical files, so gallery are created when uploading folders via FTP and are deleted when folders are delted.
- Does this gallery have a thumbnails system?
Yes, this gallery has a thumbnails system based on GD libraries, so you will need GD to be able to use this feature. Thumbnails are stored in cache folders so to be quickly accessible.
- Is this tool configurable?
Only few options are available and must be directly edited into includes/fap/otf_config.php.
- Can users upload pictures into OTF Gallery?
Users with no FTP access may upload pictures only in one predetermined folder called users_pics by using otf_upload.php. This feature lets user upload their pictures and have a thumbnail for it so they can use it in their posts. As already said, this is only a quick gallery system... to have a full gallery system with upload to category and other features you should use another system.
- Is it difficult to be installed?
Only few phpBB 3 files editing are required (no cores editing and you may even omit them). If your server support and run GD libraries properly, you will need just to upload all the files in the package, apply a couple of small modifications to phpBB 3 files and use OTF Gallery.
- What can I customize?
Some settings are customizable by editing the first otf_config.php (you can change for example some thumbnails size or the path where thumbnails are stored... and more!). ACP form will be provided after phpBB 3 official release.
- Can I have Flash file source?
For any help reagarding FLASH customization please visit: http://www.flepstudio.org
Since I would like this mod to remain a simple one, I won't add many features into it. I'm in the process of coding a more complex gallery system with extra features, but it is another mod and it is still in the coding phase.
I'll repeat again:
If you are looking for a full gallery system this MOD is not for you.
Feedbacks and comments are really welcome. Please use this topic for bugs reporting as well.
_____________________
UPDATE
• 2007/11/29 Version raised to 0.5.1
• 2007/11/28 Version raised to 0.5.0
_____________________
Here are few suggestions from another user:
Really nice mod icy, thanks
I have just change some smalls modifications
Open
styles/prosilver/template/overall_header.html
Find :
<a href="{U_INDEX}" accesskey="h">{L_INDEX}</a>
Before add :
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN --><a href="{U_OTF_GALLERY}">{L_OTF_GALLERY}</a> • <!-- ENDIF -->
Open
otf_gallery.php
Find :
After add :
if ($user->data['user_id'] == ANONYMOUS)
{
login_box('', $user->lang['LOGIN']);
}
Open
language/en/common.php
Find :
After add :
'OTF_GALLERY' => 'OTF Gallery',
Open
includes/functions.php
Find :
'U_FAQ' => append_sid("{$phpbb_root_path}faq.$phpEx"),
After add :
'U_OTF_GALLERY' => append_sid("{$phpbb_root_path}otf_gallery.$phpEx"),
Tom [ Sun 12 Aug, 2007 20:15 ]
Post subject: Re: [MOD] - OTF Gallery
All images return an internal server error...

pepi [ Sun 12 Aug, 2007 21:19 ]
Post subject: Re: [MOD] - OTF Gallery
Hi
great work Luca thanks
All images return an internal server error...

del or rename .htaccess in root/files/
Pepi
will_hough [ Wed 15 Aug, 2007 17:42 ]
Post subject: Re: [MOD] - OTF Gallery
Hi
great work Luca thanks
All images return an internal server error...

del or rename .htaccess in root/files/
Pepi
There should be an alternative to removing the htaccess protection on your file folder.
pepi [ Thu 16 Aug, 2007 01:23 ]
Post subject: Re: [MOD] - OTF Gallery
Hi
great work Luca thanks
All images return an internal server error...

del or rename .htaccess in root/files/
Pepi
There should be an alternative to removing the htaccess protection on your file folder.
Yes and why not ???
but in IE wow looks fine
http://cool-lighter.at/portal/otf_gallery.php?
Pepi
will_hough [ Thu 16 Aug, 2007 16:53 ]
Post subject: Re: [MOD] - OTF Gallery
I'm not sure what you are trying to say Pepi, but that .htaccess file in root/files/ is there to stop people from accessing the file attachments. Not everyone wants to remove it.
lefty74 [ Fri 17 Aug, 2007 18:19 ]
Post subject: Re: [MOD] - OTF Gallery
if the htaccess files dont work, why not just put an index.html file in the folder and redirect to e.g. the home page?
btw, looks great mighty

Mighty Gorgon [ Tue 21 Aug, 2007 15:02 ]
Post subject: Re: [MOD] - OTF Gallery
There should be an alternative to removing the htaccess protection on your file folder.
.htaccess file in root/files/ is there to stop people from accessing the file attachments. Not everyone wants to remove it.
Will is right... htaccess shouldn't be removed to protect attachments (even if attachments names are encrypted...)... I usually remove htaccess because I don't care of that kind of protection (there is a really small probability that someone will be able to retrieve attachments!), but the correct way should be another one.
I have just coded OTF in a different way for the next version, but I still have to test it properly.
Another way would be to move the album/otf folder out of the files folder, where you don't have any problem related to htaccess... if you want to do that, just move the folder and change the setup in otf_config.php.
I'm currently testing version 0.3.0 which has upload feature.
BlinkyBill01 [ Sat 10 Nov, 2007 15:12 ]
Post subject: Re: [MOD] - OTF Gallery
I had a question about this. From what I understand, the only people allowed to upload into the folder that the OTF Gallery are people that have access to the FTP, correct?
Would there be any "issues" if someone (me) created an image uploader that when a user uploaded images via this uploader that the files would go into the specific folder that the OTF Gallery would read? Meaning, if I made an image uploader that uploaded into the folder that OTF reads, would there be any internal problems that would force inoperability with the Mod? Like, would the OTF not read the folder if something else was using it (uploader)?
I confuse myself more than I don't
Thanks,
Bill
Mighty Gorgon [ Sat 10 Nov, 2007 20:20 ]
Post subject: Re: [MOD] - OTF Gallery
I had a question about this. From what I understand, the only people allowed to upload into the folder that the OTF Gallery are people that have access to the FTP, correct?
Would there be any "issues" if someone (me) created an image uploader that when a user uploaded images via this uploader that the files would go into the specific folder that the OTF Gallery would read? Meaning, if I made an image uploader that uploaded into the folder that OTF reads, would there be any internal problems that would force inoperability with the Mod? Like, would the OTF not read the folder if something else was using it (uploader)?
I confuse myself more than I don't
Thanks,
Bill
Yes it would do the trick.
Anyway I have already coded an upload feature, you will have it in next version... when I'll find the time to pack it and create installation instructions... would you help me in doing this?
WappyRS [ Fri 23 Nov, 2007 23:56 ]
Post subject: Re: [MOD] - OTF Gallery
This is just what i needed thanks
Mighty Gorgon [ Sat 24 Nov, 2007 13:48 ]
Post subject: Re: [MOD] - OTF Gallery
You are welcome... I need to find the time to release an updated version... but no luck yet.

Mighty Gorgon [ Wed 28 Nov, 2007 16:06 ]
Post subject: Re: [MOD] - OTF Gallery
Version updated with a slideshow and some extra features... needs some beta testing now!

Mighty Gorgon [ Thu 29 Nov, 2007 12:36 ]
Post subject: Re: [MOD] - OTF Gallery
Version updated to 0.5.1!
BzTown [ Mon 17 Dec, 2007 22:12 ]
Post subject: Re: [MOD] - OTF Gallery
Ciao Luca, volevo sapere se c'era la possibilità di non perdere tutte le foto presenti in un album di un forum phpbb2 per passare alla versione 3.
Grazie e ottimo lavoro...

Mighty Gorgon [ Thu 20 Dec, 2007 01:12 ]
Post subject: Re: [MOD] - OTF Gallery
Ciao Luca, volevo sapere se c'era la possibilità di non perdere tutte le foto presenti in un album di un forum phpbb2 per passare alla versione 3.
Grazie e ottimo lavoro...

Please speak in English here...
Currently I have only started to convert FAP... but that is not enough... I have to recode it.
I hopefully start in a couple of months, but I guess that it won't be out before June 2008.
If you need a gallery you should better start to search for another mod. There are a couple of good ones @ phpbb.com.
P.S.: al momento niente album, perché va riprogrammato da zero... o aspetti qualche mese o cerchi alternative su phpbb.com.
krisbfunk [ Thu 27 Dec, 2007 19:13 ]
Post subject: Re: [MOD] - OTF Gallery
Ciao Luca, volevo sapere se c'era la possibilità di non perdere tutte le foto presenti in un album di un forum phpbb2 per passare alla versione 3.
Grazie e ottimo lavoro...

Please speak in English here...
Currently I have only started to convert FAP... but that is not enough... I have to recode it.
I hopefully start in a couple of months, but I guess that it won't be out before June 2008.
If you need a gallery you should better start to search for another mod. There are a couple of good ones @ phpbb.com.
P.S.: al momento niente album, perché va riprogrammato da zero... o aspetti qualche mese o cerchi alternative su phpbb.com.
I have a couple questions:
1. do you have any quick solutions in mind for users moving to phpbb3 that have hundreds of photos tied up in FAP, and albumimg tags scattered over the forum?
2. and, if ever you do get the FAP mod coded, will it support users upgrading from old forums.. such as a database query to move album images over to the new FAP?
I think that might be the deciding point for me on whether to wait, or go ahead and look for another solution.. which will require going through the painstaking process of moving hundreds of images and replacing albumimg tags manually.
i bet if you started a donation pot for a new FAP, you'd get paid well

Mighty Gorgon [ Mon 31 Dec, 2007 14:13 ]
Post subject: Re: [MOD] - OTF Gallery
When final IP will be released I will look into FAP issues.
At the moment there is no easy way to access pictures... I have it working locally, but as read only because I've not coded upload features for bb3 yet.
As I said FAP needs to be totally recoded to adhere phpBB 3 requirements, otherwise it won't work properly.
Of course if I ever manage to work on it, that will be compatible with FAP for phpBB 2.
I could even start a donation pot for coding FAP... that will help of course FAP to scale up my To Do and Priority lists...
In any case I can't start working on FAP 3 before mid February, because I have real life priorities.

krisbfunk [ Mon 31 Dec, 2007 15:22 ]
Post subject: Re: [MOD] - OTF Gallery
cool, good to hear some positive things about FAP. might as well get a donation button on the go

ALTUN [ Mon 12 May, 2008 12:25 ]
Post subject: Re: [MOD] - OTF Gallery
OTF Gallery for style milky_way?
Mighty Gorgon [ Sun 18 May, 2008 01:07 ]
Post subject: Re: [MOD] - OTF Gallery
Here you are.
ALTUN [ Sun 18 May, 2008 17:03 ]
Post subject: Re: [MOD] - OTF Gallery
Thank you very much Mighty Gorgon

kael [ Sat 18 Jul, 2009 04:28 ]
Post subject: Re: [MOD] - OTF Gallery
Great gallery, I've installed one of the sites that I run... However, I also use PHPGrr! as the portal for that site, and perhaps this is a silly question, would any of you know if it is possible to integrate this gallery into PHPGrr?
IHF
Thanks.
Mighty Gorgon [ Sat 18 Jul, 2009 12:08 ]
Post subject: Re: [MOD] - OTF Gallery
Sorry, I know nothing about PHPGrr, I cannot help.

Ale [ Sun 18 Oct, 2009 10:05 ]
Post subject: Re: [MOD] - OTF Gallery
Hello everyone,
I congratulate the author for this excellent work (OTF Gallery). I run a forum where many photos are posted in the topic. I wanted to know if you could do a script for OTF GALLERY to allow you to upload photos multiupload. Thanks
Mighty Gorgon [ Wed 21 Oct, 2009 00:11 ]
Post subject: Re: [MOD] - OTF Gallery
OTF Gallery only works with FTP upload and you can upload as many pics as you wish per time...
If you want something which allows you to upload pictures via HTTP form, currently I have no time to code it... sorry.
eakinasila [ Wed 25 Nov, 2009 07:53 ]
Post subject: Re: [MOD] - OTF Gallery
Why can I only connect to my website's FTP with passive mode? I am only able to view files on my website's FTP by using passive (PASV) mode. When I disable passive mode it will connect, but will not show any files. Once I enable passive mode it shows all files and I am able to work. Any idea why this is happening? Could it be something on my end?
Mighty Gorgon [ Wed 25 Nov, 2009 13:35 ]
Post subject: Re: [MOD] - OTF Gallery
Why can't you use Passive mode?
Joshua203 [ Wed 20 Oct, 2010 19:41 ]
Post subject: Re: [MOD] - OTF Gallery
Hi,
I'm thinking of giving this OTF a test run but I can t help wondering if it would be a wise thing to do

any thoughts or advice?
Mighty Gorgon [ Sat 23 Oct, 2010 12:16 ]
Post subject: Re: [MOD] - OTF Gallery
Why?
What is your fear?

Joshua203 [ Sat 23 Oct, 2010 12:21 ]
Post subject: Re: [MOD] - OTF Gallery
Hi MG,
No real fear but i ask because it not the newest thread

Mighty Gorgon [ Sat 23 Oct, 2010 12:24 ]
Post subject: Re: [MOD] - OTF Gallery
This MOD is almost stand alone, if you don't install the "Upload Image" part you can just use the Gallery with no files edits (if I remember correct). There should be no risk.
Joshua203 [ Sat 23 Oct, 2010 13:16 ]
Post subject: Re: [MOD] - OTF Gallery
OK thank you .. ill probably give it a go then
Thanks and have a nice weekend MG

Joshua203 [ Mon 22 Nov, 2010 16:48 ]
Post subject: Re: [MOD] - OTF Gallery
hiya,
There a small language error in otf_upload.php:
if($file_size > $maxsize)
{
trigger_error($user->lang['UPLOAD_FAILURE'] . '<br /><br />' . $user->lang['UPLOAD_FAILURE_TOO_BIG'] . '<br /><br />' . $user->lang['MAX_ALLOWED_SIZE'] . floor($maxsize / 1024) . 'SIZE_KB');
}
the fix would be to replace the above with:
if($file_size > $maxsize)
{
trigger_error($user->lang['UPLOAD_FAILURE'] . '<br /><br />' . $user->lang['UPLOAD_FAILURE_TOO_BIG'] . '<br /><br />' . $user->lang['MAX_ALLOWED_SIZE'] . floor($maxsize / 1024) . $user->lang['SIZE_KB']);
}
-----------------------------------------------
There's also a bug where the file redirects to the page containig this same text, i'm still looking for the reason why and where this goes wrong, this window has the size of the popup but has the normal overall header included, making it bigger than the window it is shown in)
------------------------------------------------
also in otf_copyright.html the flep.com link is dead... it should be flepstudio.org
------------------------------------------------
finally ... i think the version number is not updated ...in otf_config.php it says 1.5.0 where i think it should say 1.5.1
No hurry and unimportant but i just thought i should mention it before i forget
Greetings,
..Joshua103
Mighty Gorgon [ Sun 05 Dec, 2010 10:52 ]
Post subject: Re: [MOD] - OTF Gallery
Thanks for reporting.
I will fix in my local copy even though I doubt I will update this mod, since so few people are interested in it.

Joshua203 [ Wed 03 Aug, 2011 14:44 ]
Post subject: Re: [MOD] - OTF Gallery
I've never been able to find the fix where "Upload fail pages" open up with the wrong header ("overall" instead of "simple") described above.
Any hint on where to look anyone?
Joshua203 [ Sun 24 Jun, 2012 23:16 ]
Post subject: Re: [MOD] - OTF Gallery
I've never been able to find the fix where "Upload fail pages" open up with the wrong header ("overall" instead of "simple") described above.
Any hint on where to look anyone?
I think this is a reasonable period to start bumping

FranckTH [ Sun 01 Jun, 2014 12:33 ]
Post subject: Re: [MOD] - OTF Gallery
Really nice mod icy, thanks
I have just change some smalls modifications
Open
styles/prosilver/template/overall_header.html
Find :
<a href="{U_INDEX}" accesskey="h">{L_INDEX}</a>
Before add :
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN --><a href="{U_OTF_GALLERY}">{L_OTF_GALLERY}</a> • <!-- ENDIF -->
Open
otf_gallery.php
Find :
After add :
if ($user->data['user_id'] == ANONYMOUS)
{
login_box('', $user->lang['LOGIN']);
}
Open
language/en/common.php
Find :
After add :
'OTF_GALLERY' => 'OTF Gallery',
Open
includes/functions.php
Find :
'U_FAQ' => append_sid("{$phpbb_root_path}faq.$phpEx"),
After add :
'U_OTF_GALLERY' => append_sid("{$phpbb_root_path}otf_gallery.$phpEx"),
Mighty Gorgon [ Mon 23 Jun, 2014 21:58 ]
Post subject: Re: [MOD] - OTF Gallery
Thank you very much for these suggestions. I'll add them on the first post.