Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

Page: 1 2
# Locutus 3/5/2007 4:02 AM (edited 3/5/2007 6:36 AM)
As mentioned in other posts, I have been working on a simple gallery module.

I really wanted to use Cuyahoga on that site, and there's no gallery module included with it, so I decided to have a go at making my own. The result is pretty much what I had in mind, and while I'm sure it's far from perfect it might be useful to others too.

I'm posting the code hoping for feedback, improvements and suggestions. Bear in mind that this is my first attempt at making something for Cuyahoga, and pretty much my first attempt at anything ASP.NET in general.

This is a simple Gallery module for Cuyahoga 1.5 and should compile and install without any extra dependencies. The database install file is only MS-SQL as I have no other database to test it on but it should be trivial to adapt to other databases. Gallery uses the pager from Cuyahoga.ServerControls.

The Gallery itself consists of a page to list albums, a page to list all photos for an album and a page to view a photo and the administration pages for this.

Here's a couple of screenshots in the site I made it for:





Please try it, comment and give me improvements, fixes and suggestions.

Edit: re-uploaded the source code. There was a tiny problem in the code to create a new album.
# martijnb 3/6/2007 2:27 AM
Thanks!

I'll give it a look tonight.
# jchompff 3/6/2007 1:16 PM (edited 3/6/2007 1:26 PM)
I am creating the same thing (h).

But I'm persisting the images in the database.
# Locutus 3/8/2007 1:57 AM
I was hoping for a little feedback, but that wasn't meant to be it seems.

Hopefully there's a lot of silent people that have looked at it and have nothing to complain about :)

@jchompff

I considered putting the images in the db itself, but I have an unreasonably big aversion against binary data in databases. I did wonder about differences in memory use and the impact on Cuyahoga's caching, but I have no good reasons to not use the db for this as well.
# martijnb 3/9/2007 6:04 AM
Sorry for the little delay, but here's some feedback.

First of all: I like this module!!!

Installation from source went flawlessly. Started with the fresh Cuyahoga 1.5.0 sources, copied the module to Cuyahoga.Modules.Gallery, changed the post-build steps and hit F5. The gallery was included in the list of additional modules and installed perfectly.

Sources look good too.

Only found some little typo's in the UI (hight instead of height).

In its current state, it has everything a basic gallery needs, without becoming too complex.

Are you interested to put this module in CuyahogaContrib? Just drop your SourceForge login name and I'd be glad to add you to the project.

Thanks!
# martijnb 3/9/2007 7:24 AM
Some extra remarks :)


- The images and css directories are not included in the project file.

- Albums.ascx has build output set to content and 'Copy Always'. This copies the ascx to the bin directory.
# Locutus 3/19/2007 8:02 AM
hey,

sorry for the late reply. this project has lost its priority and work made me do other stuff.

i don't have a sourceforge account, so i can't give you one.

you're right about the little issues. i have some more details i want to change as soon as possible.

thanks for taking a look, and thanks for cuyahoga.

-l.
# robert-mischke 3/23/2007 7:59 PM
Hey Locutus,

I checked out the Gallery Module - and I like it a lot:

I like to do some further work on the module.

- preserve the original Image (for download)
- onChange of the gallery properties, recalculate the images sizes

I am allowed to put the project in your behalf to CuyahogaContrib. What about the licence?

Thanks for your great work!
# Locutus 3/26/2007 9:17 AM
Go ahead. The same license as Cuyahoga itself seems appropriate.

Attached is my current version.

Besides some typos Martijn found, I have also changed the code so it stores images as their ID, instead of the original filename. Reason for this is that my users used the craziest filenames (spaces, apostrophes etc).

I like your suggested additions.
# halu 3/26/2007 2:15 PM
Hello!

I agree. I tried it and I like it! :-)

I definitly think this should become part of the project. Contrib or core doesn't matter as long as it comes a long.

I made a minor change already and would like to help improving this module, if I can.

Contrib, contrib, contrib...

Regards,
HÅkan
# martijnb 3/27/2007 3:03 AM
I'll add it to contrib. Who can I assign as developer?
# halu 3/27/2007 3:57 AM
Me. halu.
Do you need any extra information ?

Regards,
HÅkan
# martijnb 3/27/2007 6:10 AM
Just need your sourceforge login name.

Can you guys (HÅkan, Robert, Locutus?) coordinate who does what?
# zapotek 1/14/2008 7:14 PM
Thanks for your really cool module!

I've installed successfuly and it worked, but i've little problem about opening full image.

When i click on album it shows thumbs. However it does not show big image and shows
The system cannot find the file specified. error. Although spesified file is exist on file system. What's wrong with it, i could not understand.

Thanks in advance
# mamodeni 4/14/2008 11:52 AM
Hello everyone.
I made some little modifications on Gallery Module that could be useful.
For example I've add the mySql scripts, make the module Mono supported and add the .build file to compile with Nant.
Is it possible commit the modification on SVN?
If yes, how can i do?
You're doing a great job.

Thanks
# mvanhelmont 5/6/2008 10:44 AM
mamodeni

can you share you mysql install script on the forum. I can't find him.

thanks,

Marcel
# Efie 5/6/2008 11:09 AM
Mamodeni, I also updated the gallery module to work with 1.5.2 (sorry I didn't reply earlier, didn't see this post), you can ask SVN-access to Martijn, so you can commit you MySql scripts. I already added build-files to the contrib-project.
# mvanhelmont 5/6/2008 4:00 PM (edited 5/6/2008 5:17 PM)
I can't get this module to work. I have now a mysql script and succes full installed de module. But when i insert a image then i get the message:

An error occured: Error saving the file: Er is een generieke fout opgetreden in GDI+. (there is a generic error occured on GDI+

Can sombody help me?

## I have solved the problem. Stuppid me premissions problem ##

thanks,

Marcel
# zapotek 5/7/2008 8:26 AM
EfieMamodeni, I also updated the gallery module to work with 1.5.2 (sorry I didn't reply earlier, didn't see this post), you can ask SVN-access to Martijn, so you can commit you MySql scripts. I already added build-files to the contrib-project.

Efie, could you please provide the bin files that you've updated to work 1.5.2 if it's possible,
thanx in advance
# mvanhelmont 5/14/2008 2:14 PM
Hello there again :)

I think i have found a problem but i can't find de solution maby somebody can help me?

When i have created a album and later on i will update it the nothing happens.

Do i something worg?

thanks,

greetzz

Marcel van Helmont
Page: 1 2