PDA

View Full Version : Photo album


Steggy
05-07-2001, 04:51 PM
Hi,

I have a great idea! I have a site where a lot of people would like to post their photos. But not in a forum, no..in a photo album.

I found a script called phpGraphy.. but I've adapted it a little, because with the original script you couldn't delete and rename directories and delete photos. Also I changed the function to add a comment to photos.

Ok, what I want it to be able to do is the following:

Members of my vB forum can upload pictures, but can't rename, make or delete directories. Only the administrator of the forum can do that.
Members can only edit the description and delete the pictures that they have uploaded.
When you click the picture the name of the member who uploaded the picture must be shown.
Members login on the photo album using the cookie from vB, so they won't have to login.
The photo album directory where the scripts are is not within the vB directory. http://domain.com/pictures and http://domain.com/webboard .. I don't know if this is going to be a problem.


Because I don't have enough experience with php it's hard for me to build this... So I would appreciate if someone could help me make this very cool addon for vB.

I've included the script I've adapted... so you can take a look at it..

Overgrow
05-07-2001, 05:14 PM
Hi there.. go to my site and see if my VB hacks will suit your purpose. Here is the main forum page:

http://www.overgrow.com/edge

Select Image Gallery down below on the list (yes I know you said not in a forum, but see it first...)

Choose a post. Below each person's name where you would see the Edit/Delete icons, you will see a little camera that says Gallery.

This is my photoalbum application. It shows all of the photos that the registered user has uploaded and allows other users to scroll through them. It keeps track of the most popular galleries and shows those at the bottom. It allows the user to edit their own gallery-- change the image name or add a description.

If you have imagemagick or the right GD library you could mod it so it shows thumbnails instead of the full size image scrunched. This photoalbum works in concert with the Image Gallery hack by Herb that is available here on these forums. If you want the photoalbum, let me know.

Steggy
05-07-2001, 06:02 PM
Thanks for your reply Overgrow! :cool:

This is a nice image gallery, but not really what I'm looking for. I am very satisfied with the system I'm using now. The only thing that needs to be changed is what I said in my first post.

The system I use works with directories and ImageMagick creates the thumbnails from the images in the directories.. it works great. I have several directories for different types of photos and everyone can add comments to the pictures. It has to be a standalone script and only using the information from vB to login so people can upload pictures to the directory (categorie) where the picture belongs.

So, if there is still someone who wants to take a look at the script.. don't hesitate to do so..

BradC
05-09-2001, 05:01 PM
What I would do... is figure out how you can take out their member's stuff.. and implement the vbb member's database... and just do alot of editing...

this is also something I would like to see on one of my sites :)

Phoenix2k
05-14-2001, 11:40 AM
Overgrow, have you released that picture modification of yours?
It'd be at least a start to what I'm proposing here (http://www.vbulletin.com/forum/showthread.php?s=&postid=106089).

Steggy
05-14-2001, 12:27 PM
I think your screenshots are awesome Phoenix! The system you are describing would be one I also would like to have. It's close to the thing I want!

But who would like to make this hack?

Btw.. I use ImageMagick on my system.. it works great! My hoster installed it for me.

Phoenix2k
05-14-2001, 02:10 PM
That's just the thing, there's no one to make the hack :(
At least I don't know how to do it, I just made the screenshots by editing the html ;) heh

Where could I get ImageMagick to try it out?

Overgrow
05-14-2001, 03:07 PM
OK I'm willing to write a better gallery hack eventually.. Here is the main issue:

For a really good Gallery you must have some sort of graphic conversion software installed on your server-- ImageMagick or an updated GD Library. I've never written a good gallery application because my host does not have either of these installed and will not install a new package.

So when we finally move to our own box we can use something to size things down to thumbnails. This creates a huge problem when you try and release a hack publically... I will get 100 replies about how NewImageSize() doesn't work or something like that because they don't have the proper libraries installed.

I don't even know how to install these things off hand so I am not qualified to tell people how. I'm gonna stumble through it on my own box.

Should the hack:

1) Use the updated GD?
2) Imagemagick?
3) A different processor?

Should the hack:

1) Ignore pitiful requests for help with the libraries in order to get it out faster
2) Build an install routine that tries to put the libraries in their place (won't work with 90% of the vb's who can't root in packages)
3) Give detailed instructions on where to get these things and let people flail about

Thanks...........

Freddie Bingham
05-14-2001, 03:26 PM
GD can create some aweful looking thumbnails.

NetPBM is a viable alternative to use and valid reasons for using it are listed for this Gallery (http://www.menalto.com/projects/gallery/requirements.php)

Overgrow
05-14-2001, 03:52 PM
Glad to have you chime in, freddie. A client pointed out your gallery.php as something he would like to have. Any reason you haven't released it?

Phoenix2k
05-14-2001, 04:13 PM
Any chance in trying to integrate this feature into vbportals?

Freddie Bingham
05-14-2001, 04:29 PM
Overgrow - because I need to convert it to use NetPBM or ImageMajick and also have is store the thumbnails in the filesystem.

Right now it is creating them on the fly as I didn't have time to go all the way with it.

Phoenix2k
05-14-2001, 05:09 PM
Damn, just lost a long reply because my browser crashed :(

The reason why I mentionned vbportals is simply because it already comes with a category system that could also be used to classify the images uploaded via the board.

It'd be great to have a search engine that would be able to search for these images according to artist, category, popularity, size and resolution.

I definitely think you've got something good cooking over there Overgrow, that image hack of yours is a good step towards making this hack reality.

I realize this thumbnail business is getting in the way. I've been searching the web for any type of script that would do the job without having to install anything complicated on the server, but I don't think it's not possible to bypass that requirement :(
Most scripts i've run into require either GD or some other app pre-installed for the thumbnail generator to work.

And you were definitely right about one thing, if this hack would require users to install an external application on the server, it'd most certainly cause a lot of problems and confusion, if not make it impossible for a lot of them to install it in the first place. In case something went wrong in the installation and no support was to be provided, people would be left with a mess and in this case it'd be pretty damn difficult to help them out in the first place since it's not only a question of a few lines of code...

In the other thread (http://www.vbulletin.com/forum/showthread.php?s=&threadid=16413) discussing this same idea, floleb7 suggested that people would send their own thumbnails. I don't think that's such a good idea, but it'd definitely solve the problem. I just don't know how many people are honestly willing to go through the trouble of making a screenshot of an image, when the server could be doing all the work for them?

I've been contacting the webmasters of all major digital art sites asking them what script they use to generate their thumbnails, so I'll let you know as soon as I hear from them.

This hack would be awesome if it could be made and I know it'd pull a lot of people towards vBulletin since it would be the first discussion software to have this type of feature :D

Anyways, all the luck in developing this! I'll post as soon as I get some answers concerning the thumbnail generators...

Pe<|ce.

PS. Overgrow, your site is amazing. :) Nice design, good work man. I imagine this hack would be perfect for it too :)

Phoenix2k
05-14-2001, 09:37 PM
I think you should definitely go with Imagemagic.
You can take a look at it here : http://www.imagemagick.org/

SilverBoy
05-15-2001, 10:49 PM
how I can add a GD library to my server, and where can I get it???

Sarge
05-17-2001, 03:45 PM
Imagemagic.
IS the way to go

Phoenix2k
05-17-2001, 06:31 PM
I just got this as a reply to my inquiry on the installation of ImageMagick on a shared Apache server :

Ross> We cannot install that program as it disrupts te apache server.

Phoenix> In what way? I take your word for it don't worry, I'd just like to know how it disrupts the server... seems to work fine on other sites also using apache...

Ross> It breaks SSL for some reason.

------------

I don't know what to gather from that, except that if this hack is designed using ImageMagick, many people won't be able to use it as a large number of sites are hosted on shared Apache servers just like ours :(

What about GD?

ScottW
11-05-2001, 01:34 AM
Check out PhotoPost, released on 11/4/01 -- it integrates with the VBulletin user DB:
http://www.techimo.com/photopost/index.html

It uses ImageMagick and we're running it on FreeBSD/Apache with no problems whatsoever.

deepdark
04-21-2003, 08:50 PM
SQL-query :

CREATE TABLE descr(

id int( 11 ) DEFAULT '0' NOT NULL auto_increment,
name varchar( 255 ) NOT NULL ,
descr text NOT NULL ,
seclevel int( 11 ) DEFAULT '0' NOT NULL ,
PRIMARY KEY ( name )
)

MySQL said:

Incorrect table definition; There can only be one auto column and it must be defined as a key
Back

why any help?why any help?
why any help?why any help?