Revisions for ansel/xrequest.php

Location: [ Horde ] / ansel / xrequest.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.35 (+9 -2 lines) 06/15/2008 07:41 PM Michael Rubinsky mrubinsk

let xrequests pass urls around so various pages can know where to return
to when finished.

1.34 (+2 -2 lines) 02/25/2008 01:12 PM Michael Rubinsky mrubinsk

Rename AnselXRequest.php and to XRequest.php to be in line with the rest of
Ansel's libraries.

1.33 (+20 -104 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.32 (+7 -2 lines) 02/18/2008 10:18 PM Michael Rubinsky mrubinsk

Enforce naming convention for slugs and add explanatory text.

1.31 (+16 -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.30 (+9 -1 lines) 02/11/2008 02:20 PM Michael Rubinsky mrubinsk

Another go at Ticket: 4350, still needs tweaks but wanted to get the previous
attempt out asap :)

1.29 (+1 -136 lines) 02/09/2008 03:15 PM Michael Rubinsky mrubinsk

prune some uneccessary code now that we don't do Ajax requests for
these things anymore.

1.28 (+3 -2 lines) 02/09/2008 02:08 PM Michael Rubinsky mrubinsk

Be more diligent about passing the available style information around
so we can check the existence of a particular view without having to
read image data from the database and instantiate an Ansel_Image object
each time

Bug: 6222
Submitted by: Duck

1.27 (+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.26 (+23 -20 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.25 (+2 -2 lines) 01/02/2008 06:11 AM Jan Schneider jan

Happy New Year

1.24 (+2 -2 lines) 12/16/2007 10:33 AM Jan Schneider jan

Fix singular.

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

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

1.22 (+29 -16 lines) 12/11/2007 12:56 PM Michael Rubinsky mrubinsk

Try the best we can to get at least 5 related images. First try to match
all the same tags, then keep removing one tag from the search until we
get to either 5 images, or no tags.

1.21 (+5 -2 lines) 12/05/2007 12:28 PM Michael Rubinsky mrubinsk

Add a useful title to the image links

1.20 (+10 -4 lines) 12/05/2007 11:57 AM Michael Rubinsky mrubinsk

Add links to the "Similar Images" widget.

1.19 (+34 -6 lines) 11/25/2007 04:29 PM Michael Rubinsky mrubinsk

Initial attempt at a "similar images" widget for the image view.
This is bare-bones, currently just showing up to 5 mini-thumbs
of images containging the same tags as the current image.  Still
need to extend it to show both cuurent user and all users, add links
to the images, pretty up the layout etc...

1.18 (+18 -1 lines) 11/23/2007 04:25 PM Michael Rubinsky mrubinsk

Some more sanity checking, just in case.

1.17 (+2 -2 lines) 06/26/2007 01:14 PM Michael Rubinsky mrubinsk

- Show the number of images tagged with each tag in the list (for image view only right now, the rest to come)
- Add comment in Ansel_View_Image since I always forget we get some content from xrequest.php when we have js.

1.16 (+1 -2 lines) 06/19/2007 12:21 AM Chuck Hagenbuch chuck

stray newline

1.15 (+10 -11 lines) 06/12/2007 07:04 PM Michael Rubinsky mrubinsk

Check for permissions from within Ansel_*::getTags() and Ansel_*::setTags()

1.14 (+44 -45 lines) 05/24/2007 01:56 PM Michael Rubinsky mrubinsk

Consolidate some logic, better permission checking

1.13 (+12 -3 lines) 05/24/2007 01:38 PM Michael Rubinsky mrubinsk

On second thought, only call Ansel_Tags::listTagInfo() where we need it, the rest of the time, just return the tag_id

1.12 (+18 -1 lines) 05/15/2007 08:52 PM Michael Rubinsky mrubinsk

Update exif data during image/slideshow view.
Probably needs some cleaning up, but this gets it working.
Bug: 5353

1.11 (+11 -9 lines) 05/11/2007 07:54 PM Michael Rubinsky mrubinsk

- Don't send an AJAX request if the tag field is empty
- Fix problem that caused images to be linked to a non-existant tag_id
- Protect against empty arrays being passed to Ansel_Galleries::getImages()

1.10 (+2 -2 lines) 05/11/2007 04:02 PM Michael Rubinsky mrubinsk

else if -> elseif

1.9 (+15 -8 lines) 05/10/2007 06:41 PM Michael Rubinsky mrubinsk

Guess we should also check perms here again in case someone tries to pass info directly to the xrequest.php script.

1.8 (+6 -6 lines) 05/10/2007 06:37 PM Michael Rubinsky mrubinsk

Make sure the current user has PERMS_EDIT before showing the add tags/remove tags links on the image and gallery views.

1.7 (+65 -6 lines) 05/10/2007 02:12 PM Michael Rubinsky mrubinsk

- Allow adding and removing tags directly from the tag display on the image and gallery views.
- use an <ul> for the tag list, since that's what it is...
- tweak css a bit

1.6 (+5 -2 lines) 05/08/2007 12:31 PM Michael Rubinsky mrubinsk

- Initially view only resources owned by the same owner as the image that the initial tag was choosen from.  Include a link to view all results.
- Put back the pager on the bottom of the page as well...can't remember why I commented that one out...hmmm.

1.5 (+2 -2 lines) 05/07/2007 06:21 PM Michael Rubinsky mrubinsk

- Add a title attribute to the remove tag link
- Tweak title text

1.4 (+1 -9 lines) 05/07/2007 11:46 AM Michael Rubinsky mrubinsk

This wasn't supposed to make it into the source tree.  I (along with my wife, who is a usability person) found the idea of 'related tags' confusing when viewing single images...

1.3 (+2 -1 lines) 05/06/2007 05:15 PM Michael Rubinsky mrubinsk

Add stub-file for the browse/search page and some phpdoc

1.2 (+11 -7 lines) 05/06/2007 05:04 PM Michael Rubinsky mrubinsk

- Add a "tag-trail" to the results page with ability to remove individual tags to widen the search...and add a "Related Tags" element to the results page to allow narrowing down of the images.

- Don't get the tags for the image in Ansel_Image since it is displayed again by the slideshow code in Ansel_View_Image

- Various code cleanup and tweaks

The UI elements probably still need to be tweaked, but this gets the general idea into HEAD.

1.1 05/04/2007 04:29 PM Michael Rubinsky mrubinsk

Start fleshing out the UI for navigating tags.
This commit adds:
1) A tag display to the image view with clickable tags that will open in a..
2) Results view that displays all matching galleries and images similar to a gallery view.
3) Choosing an image to view from this page, and then clicking on one of it's tags will further narrow the search to include that tag
For now, the 'tag cache' is automatically cleared when navigating to either an image or gallery view from anywhere other than a tag link.

Still to come -

1) Display of 'related tags' for both single resources and the results view
2) Display of tags for galleries - the support for it is present, just need the UI elements
3) Breadcrumb-style navigation for tag search/browsing
4) Dedicated search (browse?) page to allow text searching and possibly a tag-cloud.

Also - renamed the comments.php file that served AJAX requests to xrequest.php since it also now serves tag requests...