Topic: Gallery Ext.

Is there going to be a Gallery Extension for PunBB or is there one that exists that works with version 1.3.2?

Thanks
Bingiman

Re: Gallery Ext.

I was going to make one a while ago... but I guess I could make it tomorrow (not 100% sure).

Re: Gallery Ext.

That would be so awesome. It is the only thing keeping me from launching my site. I didn't want to use an external gallery script, so this is why I was looking for one with PunBB. Anyway, I look forward to seeing it if you do decide to make one.

Thanks
Bingiman

Re: Gallery Ext.

lol i,m planning one to :0

i'm currently integrating my whole site into punbb, need to integrate a links section, a gallery and some sort of article syste smile

~Cereal
I've finally learned what "upward compatible" means. It means we get to keep all our old mistakes.
The limits of language are the limits of one's world.

5 (edited by esupergood 2009-01-16 11:33)

Re: Gallery Ext.

Sounds fun.
I might have to upgrade my server for more hard disk space if I install it though!
It would be good if there was a maximum file size or perhaps the system could resize/optimise each uploaded photos. With all the 10MP cameras about these days, file sizes are getting too big for web use

Re: Gallery Ext.

Then, I guess Cereal can make it.

Re: Gallery Ext.

both make it big_smile then we can choose better one ! smile

Re: Gallery Ext.

Nah, that's a waste of time, lol

9 (edited by KeyDog 2009-01-16 13:20)

Re: Gallery Ext.

it also depends; if he's not making one for community or free or fast (i.e. very soon)...
then the one that is public access deserves priority no?
also the one that hits the market first has first-mover advantage smile

edit: some typos as usual big_smile

10

Re: Gallery Ext.

mine will be public accessible smile

but there are a couple of others that are first on my todo list
1- the qq must be finished
2- the links db must be finished

also here is an overview of the features i would like to add (maybe we can add more if others want more)
1- simple gallery with admin page
2- users can post images to this gallery
3- option to allow posting to the gallery without mod approval
4- forum_gallery_random tag for the templates, displays a random (approved) image from teh gallery
5- forum_gallery tag for the templates, displays the latest gallery adition
6- main gallery page where all images can be viewed

anything else?

~Cereal
I've finally learned what "upward compatible" means. It means we get to keep all our old mistakes.
The limits of language are the limits of one's world.

11

Re: Gallery Ext.

esupergood wrote:

Sounds fun.
I might have to upgrade my server for more hard disk space if I install it though!
It would be good if there was a maximum file size or perhaps the system could resize/optimise each uploaded photos. With all the 10MP cameras about these days, file sizes are getting too big for web use

Code from my resizing function:

function image_resize($input, $width, $height, $delete = false)
{
        list($currwidth, $currheight, $type) = @getimagesize($input);

        if (empty($currwidth) || empty($currheight) || $type > '3')
        {
                return false;
        }

        $ratio = $currwidth/$currheight;

        if ($currwidth < $width && $currheight < $height)
        {
                if (file_exists($input))
                {
                        return $input;
                }
                else
                {
                        return false;
                }
        }
        else
        {
                $output = $input.time();

                if ($width/$height > $ratio)
                {
                        $width = $height*$ratio;
                }
                else
                {
                        $height = $width/$ratio;
                }

                $zwidth = $width;
                $zheight = $height;

                $dimg = imagecreatetruecolor($zwidth, $zheight);

                if ($type == '1')
                {
                        $simg = imagecreatefromgif($input);
                        imagecopyresampled($dimg, $simg, 0, 0, 0, 0, $zwidth, $zheight, $currwidth, $currheight);
                        imagegif($dimg, $output);
                }
                else if ($type == '2')
                {
                        $simg = imagecreatefromjpeg($input);
                        imagecopyresampled($dimg, $simg, 0, 0, 0, 0, $zwidth, $zheight, $currwidth, $currheight);
                        imagejpeg($dimg, $output, 85);
                }
                else if ($type == '3')
                {
                        $simg = imagecreatefrompng($input);
                        imagecopyresampled($dimg, $simg, 0, 0, 0, 0, $zwidth, $zheight, $currwidth, $currheight);
                        imagepng($dimg, $output);
                }

                @imagedestroy($dimg);
                @imagedestroy($simg);

                if (file_exists($output))
                {
                        if ($delete)
                        {
                                unlink($input);
                        }
                        return $output;
                }
                else
                {
                        return false;
                }
        }
}

12 (edited by KeyDog 2009-01-16 13:40)

Re: Gallery Ext.

@cereal:  cool.
but don't you just want to publish something with less features and have people test it and give you feedback. of course if you can add all those features and put it all in version 1.0 all the better. but it's hard to get things right from start?
always helps me to see something in action and then by using it notice what else I'd need.

13

Re: Gallery Ext.

KeyDog wrote:

but don't you just want to publish something with less features and have people test it and give you feedback. of course if you can add all those features and put it all in version 1.0 all the better. but it's hard to get things right from start?
always helps me to see something in action and then by using it notice what else I'd need.

i have no use for this extension if it doesn't has all these features ... so why wouldi code something that i can't use?

~Cereal
I've finally learned what "upward compatible" means. It means we get to keep all our old mistakes.
The limits of language are the limits of one's world.

14

Re: Gallery Ext.

fair point. smile good progress then.....

15

Re: Gallery Ext.

I think Cereal and I have different ideas of "gallery". My idea is something like the attachment extension, except it'll show you the pictures' thumbnails. Basically, a per-post gallery.

Re: Gallery Ext.

At this point I will take any one of them. I am just desperate here. All I really am looking for is a gallery that allows members to submit their pics (approved option for admins - optional, or not) and categories. It should also be accessible in the forums as well, and by that I mean a member can submit a pic in a post and they could have the option via a dropdown menu as to which category it should be submitted in. Once posted, then a thumbnail is displayed and you can click for the full size image.

Bingiman a.k.a Shedrock

17

Re: Gallery Ext.

have these ideas been abandoned, or am i just failing to find 'em?

Re: Gallery Ext.

Picture gallery is like record of your happy memories. You must save your pics in the form of galleries, the ideas and suggestions are very helpful.