Commit Graph
837 Commits
Author SHA1 Message Date
Bharat Mediratta f32f1697c9 Get rid of Task_Definition types: they're not necessary. This
incidentally fixes the the problem that admin/maintenance tasks have
been broken.
2009-03-09 07:02:09 +00:00
Bharat Mediratta 4fed34873a Don't let graphics::resize() upscale images.
Fixes ticket #117.
2009-03-09 06:59:05 +00:00
Bharat Mediratta b8cf195be8 Don't forget to clean up temp files after uploading.
Fixes ticket #120.
2009-03-09 04:11:15 +00:00
Bharat Mediratta 2aaf263b9e On second thought, make the description column varchar(2048) instead.
If I understand correctly, this is better for performance.  I could be
wrong here, though.
2009-03-09 03:33:49 +00:00
Bharat Mediratta 1ad7ca639d Make the description a text column so that we can handle much larger
descriptions.
2009-03-09 03:29:22 +00:00
Bharat Mediratta 445f18fb51 Tweak abs_file() and abs_site() to generate https urls as appropriate.
Fixes ticket #125
2009-03-09 02:07:58 +00:00
Bharat Mediratta 198297e0d4 Instead of putting after_install in the url, put it in the session.
This helps us to make sure that we only see the welcome message once.
2009-03-09 00:03:04 +00:00
Bharat Mediratta 72c7fed975 Log the user in as admin after running the web installer, and give
them a nice "Welcome to Gallery 3" dialog.  The text in there needs a
little work but it's a start.

In the process, re-build the install.sql using the scaffolding code.
2009-03-08 21:21:09 +00:00
Bharat Mediratta 7cbc904be7 Post process the sql generation code to support prefixes 2009-03-08 21:11:01 +00:00
Tim Almdal 8f1e90d837 Update sort order processing per Bharat's feedback
* Remove mime type and type as sortable fields
* Change the internal representation to serialized array
* Shorten the database field to varchar(64)
2009-03-08 19:10:08 +00:00
Tim Almdal 39954ad0b7 Implement Sortable albums. Current sort fields include (Creation
Date, Update Date, Random Key, Title, Mime Type, Item Type & Number of views)
2009-03-08 16:29:01 +00:00
Tim Almdal bf6c814e81 Undo... pass any additional parameters to the _edit_form method 2009-03-08 07:55:37 +00:00
Tim Almdal 186eeb8e20 Pass any additional parameters to the _edit_form method 2009-03-08 07:42:06 +00:00
Bharat Mediratta 3c672bd865 Don't show the pager if there're no photos on the page. 2009-03-08 03:57:02 +00:00
Bharat Mediratta 3356091b65 Add in-request caching of vars that we've already looked up. We're
still doing too many database queries, but this cuts down some dupes.
2009-03-07 04:44:16 +00:00
Chris Kelly 3ad7827786 oops. fix accidental style change that slipped into last commit 2009-03-06 02:36:04 +00:00
Chris Kelly 0678037687 Added json and filter as requirements 2009-03-06 02:22:51 +00:00
Tim Almdal f371c663c5 Fix for ticket #114 Permissions seem to be ignored 2009-03-05 17:16:38 +00:00
Bharat Mediratta 23937ff135 Avoid using default task types. Require task::get_definitions() to
specify a single type and ask for it appropriately in
admin_maintenance.  Specify a type for every existing task.
2009-03-05 06:38:11 +00:00
Bharat Mediratta 898ac3ac35 A little task restructuring 2009-03-05 06:28:23 +00:00
Chad Kieffer 33eb05ef9a Applied jQuery UI buttons to quick edit pane. Not tested, but icons should display iin IE6 now. Rotate icons will need to be updated later. 2009-03-05 06:03:04 +00:00
Tim Almdal 7786bb09d3 Implement a Maintenance mode as per ticket: #15 2009-03-05 00:32:33 +00:00
Bharat Mediratta 234aa2b31d Implement batch support in a simple fashion to avoid having to change the swf file for now 2009-03-04 08:56:16 +00:00
Bharat Mediratta bc13659d37 Remove cruft from API 2009-03-04 08:55:41 +00:00
Bharat Mediratta 23b0abb974 Redefine the batch API to be very very simple. You call
batch::start() before starting a series of events, and batch::stop()
when you're done.

In batch mode, the notification module will store up pending
notifications.  When the batch job is complete, it'll send a single
digested email to each user for all of her notifications.

Updated the scaffold and local_import to use this.  Haven't modified
SimpleUploader yet.
2009-03-04 08:51:49 +00:00
Bharat Mediratta 83e12961b1 Allow url() to return absolute urls 2009-03-04 06:25:25 +00:00
Bharat Mediratta 69cb19aad2 Delete test(), it should never have been checked in. 2009-03-04 06:25:04 +00:00
Tim Almdal 6596682c90 Use the gallery root directory on the batch::operation call when
generating random albums and images
2009-03-03 21:48:13 +00:00
Tim Almdal acf28e47cb Create a proxy event (gallery_event) which is called when the request
is completing.
2009-03-03 18:57:16 +00:00
Tim Almdal 9b68fd46b2 Add the ability for modules to define hooks. The challenge is that
when the hooks are run, we haven't added all the installed modules to
the path, So if a module defines a hook it will never be run.

This change runs any module defined hooks as part of the gallery initialization.
2009-03-03 16:09:23 +00:00
Tim Almdal b7a72825af Remove the === false and === true checks
I really mean it this time
2009-03-03 06:26:12 +00:00
Tim Almdal 7cadb4b21b Refactored the batch Api: 1) created a small batch helper class:
Starting a batch call batch::operation(name, item). In the case of
adding photos name = add and item is the parent of the new items.
When the operation is finished the batch::end_operation(name) is
called.
operation and end_operation events are called.  Handlers
(i.e. item_created) can call batch::in_progress(name) to determine if
a batch is being processed.
2009-03-03 05:59:38 +00:00
Tim Almdal 1d5cca34ef If backticks (`) are used to delimit the name of the table in
database, Kohana gets confused an appends the prefix outside of the
back ticks
2009-03-03 04:17:55 +00:00
Tim Almdal 512a532650 Simplify the batch api by having the core event handlers for
start_batch and end_batch add and remove the batch id from the
session.  Modules wishing to do batch processing, just need to fire
the start_batch and end_batch events.  Other modules that need to be
aware of batches (i.e. notifications) just check the session for "batch_id".
2009-03-01 19:11:01 +00:00
Tim Almdal bed1bb48f3 The scaffolding, simple_uploader and local_import now call two new
events: start_add_batch and end_add_batch.  The parameter is a batch
id which is generated on the first add request.  The protocol is call
the add_photo as many times as required and then call finish when
done.
Also renamed the add method in local_import to add_photo so it is
consistent with simple_uploader
2009-02-28 20:12:54 +00:00
Tim Almdal c04ff8e02f Change the pattern to identify tables that need prefix substitution to
mirror the drupal pattern of using braces {}.
2009-02-28 06:37:28 +00:00
Tim Almdal bd15853708 This implements table prefix for all the queries in core, user, exif,
tag, search, comment and notification modules (Ticket #68)
2009-02-27 21:07:18 +00:00
Tim Almdal dc4f784558 * Refactor task management methods from admin_maintenance.php to
task.php
* Added a owner_id field to the task database
* Modified the admin maintenace to show the owner of the task
<<**** Requires a reinstallation of core ****>>
2009-02-27 16:28:20 +00:00
Tim Almdal ab973bd871 Replace the string [table_name] with {$prefix}table_name. Slowly
working through setting up the database access to support table
prefixes. (Ticket#68)

Before going ahead, just wanted to check this approach... whatcha think?
2009-02-27 03:25:29 +00:00
Tim Almdal 0b055835fd Remove commented code
Correct unbalanced brackets
2009-02-27 02:50:07 +00:00
Tim Almdal d097b4fc02 Update to image_block based on bharat's feedback
1) move the rand_key column into core
2) don't do a max rand, just try to a get a random number less than
the current random number if that doesn't successd look the other way
2009-02-26 23:38:17 +00:00
Tim Almdal 8d59f5b5fb Removed raw update sql and replaced it with Database::update(...)
calls. (ticket #68)
2009-02-26 20:43:56 +00:00
Tim Almdal 95a1842034 Remove the commented line $parent->$movie->parent() as the $parent
object was passed in as a parameter.
2009-02-26 20:23:40 +00:00
Tim Almdal 60c85384b4 Use the Database::update function instead of a raw SQL query 2009-02-26 19:49:28 +00:00
Tim Almdal c3fcd3a79b Fix thumbnail and resize generation for photos. the variable $type had
never been set, so it was never equal to "photo" so no thumbnails were generated.
2009-02-26 16:12:09 +00:00
Tim Almdal 0929d41305 Added a check to insure that the resize or thumbs image files do not
exists. As per ticket #109
2009-02-26 14:53:01 +00:00
Bharat Mediratta 4f77e7bdce Support adding custom header/footer text to themes via admin/theme_details 2009-02-26 02:47:38 +00:00
Bharat Mediratta 30fdedfb50 Make theme details its own page so that we can wrap it in a div and
give it a title.
2009-02-26 02:38:32 +00:00
Bharat Mediratta 021b50178e Change quote style. 2009-02-26 02:00:49 +00:00
Bharat Mediratta 1cb250ecc0 Minor cleanups. 2009-02-26 01:59:02 +00:00