Revisions for ansel/gallery.php

Location: [ Horde ] / ansel / gallery.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
 
  Revision Date Author Log Message
1.132 (+8 -8 lines) 08/25/2008 08:05 PM Michael Rubinsky mrubinsk

From Duck: Add default gallery pref (Bug: 7016)
From Me: Fix some variable names, add a required.png image before the
gallery name field. Probably should make this a Horde_Form form eventually

1.131 (+3 -2 lines) 08/13/2008 04:50 PM Michael Rubinsky mrubinsk

Allow Ansel::selectGalleries() to take a gallery id that should be ignored
when building the gallery select menu. This prevents the users from trying
to assign a gallery to an inappropriate parent...like one of it's own children.

1.130 (+10 -6 lines) 08/10/2008 09:25 PM Michael Rubinsky mrubinsk

pretty urls wherever possible

1.129 (+5 -2 lines) 08/10/2008 09:21 PM Michael Rubinsky mrubinsk

This is not a function, cannot return

1.128 (+2 -2 lines) 08/08/2008 02:45 PM Michael Rubinsky mrubinsk

fix variable name - fixes creation of sub galleries when navigating to the
gallery creation form from the "New Gallery" menu item.

1.127 (+2 -2 lines) 08/07/2008 12:25 PM Michael Rubinsky mrubinsk

...more language tweaking for gettext strings

1.126 (+3 -3 lines) 08/07/2008 09:43 AM Michael Rubinsky mrubinsk

More gettext string clean up, standardization etc...

1.125 (+5 -9 lines) 07/08/2008 11:58 AM Michael Rubinsky mrubinsk

Missed one...clear out the gallery tree cache, and prune some dead code

1.124 (+4 -4 lines) 05/24/2008 06:06 PM Michael Rubinsky mrubinsk

- Delegate the rendering of gallery views to a Ansel_View_Renderer_* class
and make Ansel_Gallery_View responsible for knowing what Renderer to
instantiate based on the style we are requesting. This helps keep the URLs
clean and pretty as we no longer have to pass around the view in the url
when not using the "default" gallery view. (GalleryLightbox for instance)

- Pass a callback function to the Pager that re-writes the urls to something
like: horde/ansel/gallery/1/page/1 instead of tacking the page onto the URL
as a GET parameter. If not using "pretty" url generation, the callback is
not set, and of course, a callback can also be specified via the api.

1.123 (+3 -1 lines) 05/14/2008 04:46 PM Michael Rubinsky mrubinsk

make sure $old_gallery_id is defined.

1.122 (+3 -1 lines) 05/11/2008 03:19 PM Chuck Hagenbuch chuck

Initialize variable

1.121 (+29 -2 lines) 05/11/2008 11:30 AM Michael Rubinsky mrubinsk

Allow changing the gallery parent from the properties page

1.120 (+14 -17 lines) 05/06/2008 09:39 PM Chuck Hagenbuch chuck

Remove references to deprecated list.php.

1.119 (+18 -6 lines) 04/21/2008 01:59 PM Michael Rubinsky mrubinsk

wrap

1.118 (+2 -2 lines) 04/20/2008 08:55 PM Michael Rubinsky mrubinsk

Move the createGallery() method to the Ansel_Storage class where it really
belongs.

1.117 (+2 -2 lines) 04/16/2008 04:31 PM Michael Rubinsky mrubinsk

ws

1.116 (+3 -3 lines) 04/16/2008 04:21 PM Michael Rubinsky mrubinsk

We might be going back to the List view, in which case we don't
want to execute this bit...

1.115 (+11 -1 lines) 04/15/2008 01:07 AM Michael Rubinsky mrubinsk

If changing the gallery style of an existing gallery, make sure to replace
the 'view' url parameter with the correct view type for the gallery style
before redirecting.

1.114 (+1 -2 lines) 03/26/2008 12:38 AM Michael Rubinsky mrubinsk

No idea what this line was doing here

1.113 (+9 -10 lines) 03/20/2008 10:50 AM Michael Rubinsky mrubinsk

- Fix adding gallery_download attribute to storage
- Some tweaks and improvements merged from Duck's Ansel_Storage overrides

1.112 (+20 -4 lines) 03/19/2008 12:50 PM Michael Rubinsky mrubinsk

Allow control over who can download 'full' images.

Bug: 6406
Submitted by: Duck

1.111 (+7 -1 lines) 03/18/2008 05:18 PM Michael Rubinsky mrubinsk

Ability to limit gallery viewers by age

Bug: 6436
Submitted by: Duck

1.110 (+2 -2 lines) 02/25/2008 03:20 PM Michael Rubinsky mrubinsk

No need for a function call to get the gallery id now that galleries are
seperate from their share object. Remove Ansel_Gallery::getId() and replace
with id instance variable. Saves a bunch of function calls, and is now another
similarity between Ansel_Image and Ansel_Gallery objects.

1.109 (+8 -2 lines) 02/22/2008 11:21 PM Michael Rubinsky mrubinsk

Some refactoring. Move ajax request stuff to Ansel_XRequest classes,
similar to Imples.  Still needs some work with the stuff related to
tags, but I plan on refactoring the various widgets anyway...

1.108 (+16 -1 lines) 02/21/2008 07:02 PM Michael Rubinsky mrubinsk

Add gallery action to reset all of the current gallery's thumbnails to
allow them to be regenerated.

1.107 (+2 -10 lines) 02/21/2008 12:48 PM Michael Rubinsky mrubinsk

Clear gallery stacks when:
A new image is uploaded and becomes the gallery's default image (the new
image becomes the default, and is placed on the top of the stack)...
...and when a new image is uploaded and the gallery count is still < 5
(so the stack is not full yet)

Also, refactor a bit, adding a Ansel_Gallery::clearStacks() method.

1.106 (+6 -4 lines) 02/18/2008 09:50 PM Michael Rubinsky mrubinsk

Don't explode() the tags until we really need to in case there's an error
submitting the form - when the form would be rendered again.

1.105 (+3 -1 lines) 02/18/2008 03:22 PM Michael Rubinsky mrubinsk

Add ajax check for slug uniqueness.  I wanted to enable/disable the
submit button based on the validity of the slug, but I can't seem to
get the submit button to disable...

1.104 (+8 -3 lines) 02/18/2008 12:54 PM Michael Rubinsky mrubinsk

Check for error on gallery save, and provide a meaningful error message
when it fails.

1.103 (+4 -3 lines) 02/17/2008 04:58 PM Michael Rubinsky mrubinsk

Don't attempt to redirect to image upload if $gallery is a PEAR_Error,
plus some wrapping nits

1.102 (+7 -1 lines) 02/14/2008 03:51 PM Michael Rubinsky mrubinsk

Initial slug support. Basic CRUD stuff only for now. Still need uniqueness,
allowed character check etc...

1.101 (+2 -2 lines) 02/14/2008 01:30 PM Michael Rubinsky mrubinsk

ws

1.100 (+2 -2 lines) 02/13/2008 06:02 PM Michael Rubinsky mrubinsk

Fix redirect to last view after gallery properties are saved.

1.99 (+2 -2 lines) 02/09/2008 11:04 PM Michael Rubinsky mrubinsk

Don't decrease the gallery's stored image count when deleting a
gallery 'stack'

1.98 (+2 -2 lines) 02/06/2008 05:22 PM Michael Rubinsky mrubinsk

Statically cache Ansel_Storage::getImage() calls since they can often
be called multiple times per page load and from different scopes. Also
have to add reference operators now to be sure that only a single copy of
the image object is ever operated on per page load in PHP4.

Bug: 6219
Submitted by: Duck

1.97 (+10 -4 lines) 02/03/2008 03:03 PM Michael Rubinsky mrubinsk

Redirect to upload page after successful gallery creation.

Bug: 6196
Submitted by: Duck

1.96 (+45 -48 lines) 01/15/2008 08:30 PM Michael Rubinsky mrubinsk

The mother of all Ansel commits.  This removes all the gallery attributes
from the datatree, leaving only permissions and hierarchical information in
datatree.

To upgrade, first run the 2008_01_07_add_galleries.sql script to create
the gallery table and then run the sql_galleries.php script.  The script
does *NOT* delete any data from the datatree - it only creates the new
structure. Another (upcoming) upgrade script will remove the data from
the datatree once this is more thoroughly tested.

Bug: 6101

1.95 (+6 -6 lines) 01/03/2008 05:17 PM Michael Rubinsky mrubinsk

Make sure we delete all the gallery's default image thumbnails  from the
backend, not just the currently selected style's version of it.

This also fixes an issue that caused the image's entry in the DB to not
be removed.

1.94 (+2 -2 lines) 01/02/2008 06:11 AM Jan Schneider jan

Happy New Year

1.93 (+3 -3 lines) 12/16/2007 10:31 AM Jan Schneider jan

Standardize on using 'photos' instead of 'images'.

1.92 (+10 -2 lines) 11/24/2007 04:32 PM Michael Rubinsky mrubinsk

Fix adding/editing gallery categories

1.91 (+2 -2 lines) 11/15/2007 08:35 PM Michael Rubinsky mrubinsk

Chage "Regenerate" to "Reset"

1.90 (+2 -6 lines) 11/15/2007 05:32 PM Michael Rubinsky mrubinsk

Since we can now (or will shortly) have multiple types of default gallery images
it doesn't make sense to regenerate the stack here, since the gallery's style
doesn't determine what the stack will look like, it's the parent gallery's style
or default style etc... Instead, just clear the default images to force them to
be regenerated on the next view request.  Suggestions as to what to rename the menu action / notification text are welcome.

1.89 (+7 -3 lines) 11/14/2007 09:05 PM Michael Rubinsky mrubinsk

Looks like the url form field is being passed as an empty string, and Util::getFormData()
doesn't revert to the default in that case...jan, not sure if there was another intent
here, but this fixes adding subgalleries at the moment.

1.88 (+9 -31 lines) 11/14/2007 08:24 PM Jan Schneider jan

Move all gallery actions to the actions drop down (regenerate default image,
empty gallery), and let the gallery properties form only do exactly that.
Pass "emtpy gallery" action to gallery/delete.php, including confirmation
screen.
Show message whether stack regeneration succeeded.

1.87 (+15 -17 lines) 11/14/2007 07:43 PM Jan Schneider jan

Return to last view after editing gallery properties.

1.86 (+5 -5 lines) 11/13/2007 11:10 AM Jan Schneider jan

Redirect to index.php.

1.85 (+2 -1 lines) 11/09/2007 01:53 PM Chuck Hagenbuch chuck

Default to parent gallery's style when creating a subgallery

1.84 (+2 -2 lines) 11/08/2007 08:40 PM Jan Schneider jan

Fix variable name.

1.83 (+6 -4 lines) 11/08/2007 03:43 PM Michael Rubinsky mrubinsk

Properly delete any existing photo stack when rebuiding.

1.82 (+6 -1 lines) 11/07/2007 02:00 PM Michael Rubinsky mrubinsk

Add error check here

1.81 (+3 -3 lines) 11/03/2007 12:46 PM Michael Rubinsky mrubinsk

Continue on our quest to add the idea of gallery styles to Ansel.
This commit adds:
- A config/styles.php.dist file to describe each available style. (Nothing other than thumbnail style so far, but will add bg/fg colors etc...)

- api calls default to ansel_default style, but can override this if desired and the ansel Blocks always use ansel_default for consistency.

1.80 (+5 -6 lines) 11/03/2007 10:45 AM Michael Rubinsky mrubinsk

Start slowly moving towards allowing galleries to specify named styles.
This commit doesn't add much functionality...just renaming some variables and methods to better reflect where we are going.

1.79 (+8 -1 lines) 10/30/2007 01:34 PM Michael Rubinsky mrubinsk

Remove any existing default-pretty image if we are regenerating one.

1.78 (+8 -2 lines) 10/28/2007 02:32 PM Michael Rubinsky mrubinsk

Add per-gallery option to select thumbnail style. The option is there, but it's not checked for anywhere in the display code yet...

1.77 (+11 -1 lines) 10/28/2007 01:42 PM Michael Rubinsky mrubinsk

- Don't assume we always want a prettythumb just because we're capable of them. (In particular for rss feeds we always return a 'normal' thumb).

- Use a Polaroid stack effect for default gallery images if we are capable of using prettythumbs...provide ability for user to regenerate the gallery default image from the gallery property page.

Probably still some tweaking to do to image sizes and things, plus I want to add per-gallery settings for prettythumb vs thumb but I wanted to get this into CVS before I went too much further :)

1.76 (+2 -1 lines) 05/01/2007 07:10 PM Michael Rubinsky mrubinsk

Another missing $gallery_tags <sigh>

1.75 (+2 -1 lines) 05/01/2007 06:09 PM Michael Rubinsky mrubinsk

Fix typo and make sure that $gallery_tags is always defined.

1.74 (+6 -3 lines) 05/01/2007 11:14 AM Michael Rubinsky mrubinsk

Allow adding tags to galleries as well.
Some minor variable/parameter renaming to reflect the fact that a tagged resource can be a gallery or an image.

1.73 (+1 -1 lines) 01/02/2007 07:46 AM Jan Schneider jan

Happy New Year

1.72 (+4 -2 lines) 01/01/2007 07:40 PM Jan Schneider jan

Assign copyright to The Horde Project for those copyright holders that already agreed to it.

1.71 (+2 -4 lines) 12/24/2006 06:48 PM Ben Chavet ben

revert & fix it right.

1.70 (+3 -1 lines) 12/24/2006 06:42 PM Ben Chavet ben

Add error check when downloading zip

1.69 (+2 -2 lines) 12/02/2006 02:22 AM Chuck Hagenbuch chuck

A few more fixes as I find them.

1.68 (+2 -84 lines) 12/02/2006 02:13 AM Chuck Hagenbuch chuck

Well, here goes. Images are now stored in a set of SQL tables instead
of in the DataTree. See prior commit message for upgrade instructions,
and let me know what you run in to. I'm sure I'll be tweaking things
myself as I upgrade my other galleries and use it more, but for now,
things seem to work.

1.67 (+2 -3 lines) 05/17/2006 03:09 PM Chuck Hagenbuch chuck

actually we know we have a gallery object here.

1.66 (+2 -1 lines) 05/17/2006 03:08 PM Chuck Hagenbuch chuck

define $name in this error message.

1.65 (+9 -26 lines) 04/12/2006 01:52 AM Chuck Hagenbuch chuck

- Give gallery deletion a seperate page, not just a js popup
- gallery deletion requires POST
- all gallery-level actions are protected a bit in a <select>

1.64 (+1 -1 lines) 01/01/2006 04:09 PM Jan Schneider jan

Happy new year\!

1.63 (+9 -9 lines) 12/25/2005 01:59 PM Chuck Hagenbuch chuck

We have to delete images before deleting the gallery; otherwise
deleting the images will fail.

1.62 (+3 -3 lines) 12/25/2005 01:31 PM Chuck Hagenbuch chuck

Fix form field to focus on

1.61 (+29 -39 lines) 11/12/2005 07:47 PM Chuck Hagenbuch chuck

Remove the autoname preference; since we use gallery ids in URLs now
instead of names, there's no point in picking the gallery datatree
name.

1.60 (+2 -2 lines) 08/16/2005 05:15 PM Matt Selsky selsky

Fix quote style.

1.59 (+2 -1 lines) 05/08/2005 04:03 PM Chuck Hagenbuch chuck

- Don't highlight New Gallery when editing an existing gallery
- Don't show Empty Gallery when creating a new gallery
- HTML cleanups, tweaks.

1.58 (+2 -3 lines) 03/13/2005 02:55 PM Ben Chavet ben

use countByAttributes to determine the number of images in a gallery

1.57 (+1 -1 lines) 01/03/2005 09:34 AM Jan Schneider jan

Happy New Year

1.56 (+2 -2 lines) 11/14/2004 11:42 AM Chuck Hagenbuch chuck

Use new menu, remove view/* files that weren't being maintained.

1.55 (+7 -2 lines) 11/06/2004 03:53 PM Ben Chavet ben

fix subgallery creation

1.54 (+10 -4 lines) 10/20/2004 10:37 PM Chuck Hagenbuch chuck

This set of patches brings a basic link to CategoryManager in Ansel.
So we can set and list/group galleries by their content.
For example Sport, 3D, Clipart...

Submitted by: Duck <duck@obala.net>

1.53 (+4 -3 lines) 10/20/2004 09:03 PM Ben Chavet ben

More name -> ID changes.  I think that's everything.

1.52 (+2 -2 lines) 10/20/2004 08:40 PM Ben Chavet ben

More name -> ID changes

1.51 (+4 -4 lines) 10/19/2004 10:50 PM Ben Chavet ben

Start modifications to require referrencing galleries & images by ID.

At this point, viewing & creating images & galleries works with no errors.
I'm sure there are other features that are broke now, but they should be
fairly straight-forward to fix.  I'm out of time tonight, but this is a
good start.  I should have more time tomorrow night if nobody beats me
to it.

1.50 (+2 -2 lines) 10/18/2004 08:45 PM Chuck Hagenbuch chuck

Registry::getParam() -> Registry::get().

1.49 (+10 -1 lines) 09/21/2004 08:10 AM Jan Schneider jan

Use application permissions to restrict creating of galleries.
Bug: 612

1.48 (+8 -8 lines) 06/06/2004 11:07 PM Ben Chavet ben

use getGallery() instead of getShare()

1.47 (+17 -33 lines) 05/26/2004 05:22 PM Chuck Hagenbuch chuck

Start consolidating some duplicate code with Ansel::createGallery() and
Ansel::getImageFromFile().

(Vijay Mahrra <webmaster@stain.net>).

1.46 (+3 -2 lines) 05/13/2004 01:23 AM Ben Chavet ben

Fix logic error

1.45 (+2 -2 lines) 04/07/2004 10:43 AM Chuck Hagenbuch chuck

No more HORDE_LIBS.

1.44 (+7 -5 lines) 02/27/2004 10:44 PM Ben Chavet ben

Update some API function calls.

1.43 (+8 -1 lines) 02/22/2004 11:36 PM jon

Display an error message if we aren't able to retrieve the gallery object
in the 'empty' action case.

1.42 (+2 -2 lines) 02/22/2004 11:15 PM jon

We want to pull the error message out of $id, not $galleryId (which we
just set to null).

1.41 (+17 -17 lines) 01/20/2004 03:32 PM Chuck Hagenbuch chuck

Add a $conf option for what kind of images to generate.

1.40 (+2 -1 lines) 01/19/2004 11:57 AM Chuck Hagenbuch chuck

explicitly set counter to 0 after emptying a gallery.

1.39 (+2 -2 lines) 01/19/2004 01:19 AM Chuck Hagenbuch chuck

minor CS and whitespace.

1.38 (+2 -2 lines) 01/18/2004 11:53 PM Chuck Hagenbuch chuck

actually delete images when a gallery is deleted

1.37 (+22 -1 lines) 01/18/2004 09:31 PM Ben Chavet ben

Add 'empty gallery' functionallity.

1.36 (+3 -3 lines) 01/18/2004 12:48 PM Jan Schneider jan

Use javascript notification instead of $js_onLoad.

1.35 (+2 -2 lines) 01/17/2004 05:57 PM Jan Schneider jan

All footers look the same, so why not use only one.

1.34 (+4 -3 lines) 01/15/2004 11:35 PM Ben Chavet ben

More unnessecary counting

1.33 (+4 -5 lines) 01/15/2004 07:31 PM Ben Chavet ben

New backend for storing images.  They are no longer stored as part of a
gallery, but are now individual datatree objects.  This structure should
allow for better performance.

1.32 (+5 -5 lines) 01/14/2004 06:49 AM Jan Schneider jan

Fix Share:: method names.

1.31 (+2 -2 lines) 01/13/2004 11:10 PM Chuck Hagenbuch chuck

Try to ditch a bunch of duplicative Horde_Share:: methods.

Only showing the 100 latest revisions. Show all revisions? (may take a while).