Page 2 of 4

Posted: Thu Feb 01, 2007 8:44 am
by DavidIQ
Coroner wrote:I pm'd you and account that you can check the acp with.
You did? :?:

Posted: Thu Feb 01, 2007 8:58 am
by Coroner
DavidIQ wrote:
Coroner wrote:I pm'd you and account that you can check the acp with.
You did? :?:
Sent

Posted: Thu Feb 01, 2007 9:16 am
by DavidIQ
Yes I sleep :lol:

One thing that I hate about the attachment mod package from phpBB is that the files directory doesn't have a thumbs directory in it. Most servers will show the error but yours is suppressing the error. Must not be set in php.ini to display the errors. Anyhow create a thumbs directory in the files directory and I'm pretty sure the thumbnails will start getting created.

Posted: Thu Feb 01, 2007 9:39 am
by Coroner
It's now working but it appears that it's kind of reversed? Meaning the pic show's in normal size and once clicked, it turns to a thumbnail?

Your thoughts?

Posted: Thu Feb 01, 2007 9:42 am
by DavidIQ
The original picture is small. Based on the settings you have for thumbnails it's going to create a thumbnail for all pictures you attach (which it seems you have increased the size of the thumbnail as well by editing one of the attachment mod files) be it small or large so it's working as designed.

Posted: Thu Feb 01, 2007 10:02 am
by Coroner
DavidIQ wrote:The original picture is small. Based on the settings you have for thumbnails it's going to create a thumbnail for all pictures you attach (which it seems you have increased the size of the thumbnail as well by editing one of the attachment mod files) be it small or large so it's working as designed.
Another dumb question but how can I lower the size of the thumbnail so the small pic shows first then converts to the larger nomal size on click.

I don't remember editing very many of the attachment mod files other then what was required to install the Edit Attachment Mod?

Please let me know

Posted: Thu Feb 01, 2007 10:20 am
by DavidIQ
Open attach_mod/includes/functions_thumbs.php, find $max_width = 400; and change it to 100 maybe. This might still make the thumbnail bigger than the actual picture so you'll have to play with the value of max_width. The point of thumbnails was to create a clickable thumbnail in the case that the image was too big to fit in the post...

Posted: Thu Feb 01, 2007 11:16 am
by Coroner
I set it to 100 for now.

I really want to thank you for all your efforts helping with this.

A very cool set up :)

Posted: Thu Feb 01, 2007 11:21 am
by DavidIQ
You're welcome :wink:

Posted: Fri Apr 20, 2007 1:28 pm
by Art57mo
DavidIQ wrote:
Coroner wrote:
DavidIQ wrote:Let me guess...you didn't change the Minimum Thumbnail Filesize to something lower than 12000 and you uploaded a file that's probably 5000... ;-)
Hi Dave, This is Art again and I have somewhat of a different problem with the lightbox mod I hope you will help me with. Coroner shows the following in his Special Categories and I do not?

Display Images Inlined = yes
Create Thumbnail = yes
Minimum Thumbnail Filesize = 50
Make use of GD2 Extension = no
Imagick Program (Complete Path) = blank
Maximum Image Dimensions = 0x0
Image Link Dimensions = 0x0

I only have the following in the Special Categories;

Display Images Inlined = yes
Imagick Program (Complete Path) = blank
Maximum Image Dimensions = 0x0
Image Link Dimensions = 0x0

There is no mention to Thumbnails at all? I also edited the following files as per the instructions at beginning of thread.

displaying.php
overall_header.tpl
viewtopic_attach_body.tpl

I then closed down my browser, reopened and linked back to the phpBB2 main page and Admin. page. No mention of Thumbnails at all the the Special Categories?

Please, Help!!!!!!! Again! LOL

Posted: Fri Apr 20, 2007 5:39 pm
by DavidIQ
Far as I know those options only show up for servers that have GD2 or Image Magick installed... if neither is present then the thumbnails cannot be created. :?

Posted: Fri Apr 20, 2007 5:43 pm
by Art57mo
DavidIQ wrote:Far as I know those options only show up for servers that have GD2 or Image Magick installed... if neither is present then the thumbnails cannot be created. :?
Thanks Dave, will contact the IP service and see if they use either.

Art

Posted: Sat Apr 28, 2007 6:53 pm
by Coroner
Hey David, would you mind if I submitted this to phpbbhacks? I made some very few adjustments and put together what looks like a clean zip file with instructions.

Here's what I have put together. Please look it over and tell me what you think. I have uninstalled and reinstalled this several times and tested it with several templates and it has worked each time.

Posted: Sun Apr 29, 2007 12:12 am
by DavidIQ
Seems fine to me though the directory structure is incorrect in the copy command. The actual folder you seem to be including is "Light_phpbb2 setup files" but on the installation instructions you have "lightbox_phpbb2" under the copy command not to mention the command is a bit off. It's just like Windows... copy <source> <destination>

Posted: Sun Apr 29, 2007 1:02 am
by Coroner
Thanks David.

Here's the fix.