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
Bharat Mediratta
5702556499
Minor style changes.
2009-02-26 01:56:00 +00:00
Bharat Mediratta
90a066a727
Make scaffold into a menu, move translation option into it and shorten
...
it so that it fits on one line.
2009-02-26 01:50:52 +00:00
Bharat Mediratta
515c081f79
Add support MP4 movies also. Flowplayer supports them and can stream
...
them using the h264streaming plugin. Everything else is a fairly
minor change.
2009-02-25 05:27:29 +00:00
Tim Almdal
585ea81957
Fix for ticket #98 .
...
The problem was that item::delete was deleting the parent album
2009-02-24 19:52:01 +00:00
Andy Staudacher
c5964c74cd
Fix i18n create table sql (forgot to change core_install.php)
2009-02-24 06:10:40 +00:00
Andy Staudacher
e031957354
File structure style fixes
2009-02-24 05:54:19 +00:00
Tim Almdal
b40f25cbed
Remove debugging information
2009-02-23 22:37:49 +00:00
Tim Almdal
c0049dce03
1) Optimize the loop in graphics::generate so it uses the $ops as the
...
key and path. This way it won't try to generate a resize for movies.
2) Changed the options on the ffmpeg command in movie::extract_image
so we actually see a frame not the black one that starts the movie.
2009-02-23 17:13:58 +00:00
Andy Staudacher
8bba897a46
Changing from binary(16) to char(32) as translation message key.
...
Although less efficient as a storage / transmission / comparison format, it's friendlier on the eyes and universally supported.
2009-02-23 06:33:10 +00:00
Chad Kieffer
51591c9669
Better yet, rename gallery2.png to just gallery.png. Reference logo from scaffold too.
2009-02-23 05:55:29 +00:00
Chad Kieffer
3bba61b733
Removed hybrid album view link. Not used, probably won't be part of core.
2009-02-23 01:55:40 +00:00
Bharat Mediratta
37d3254d8c
Remove debug code, thanks Andrew Slayman!
2009-02-23 01:36:54 +00:00
Bharat Mediratta
ca5bba0964
Replace the word "item" in display text with photo/album/movie as
...
appropriate. We shouldn't be saying "item" to the user.
2009-02-23 00:25:51 +00:00
Bharat Mediratta
f924cd66ac
Remove the $item from the various graphics functions, that was a bad
...
idea. Instead convert movies to jpeg before doing any
transformations, which keeps the graphics functions clean and abstract
and dealing solely with image types. Lighter/simpler solution.
2009-02-22 23:55:47 +00:00
Bharat Mediratta
ffbab952c6
If the album_cover_item_id points to a missing item (unlikely but possible) just treat it like it was missing and continue
2009-02-22 23:54:48 +00:00
Bharat Mediratta
3a8439d7b5
Hardcode all movie mime types to video/x-flv cause that's all we support now anyway
2009-02-22 23:53:44 +00:00
Tim Almdal
95fc61c9a8
Standardize to uppercase DESC in the order by method calls
2009-02-22 17:36:58 +00:00
Tim Almdal
adf338f2c1
Added t(...) around some display strings that were overlooked.
2009-02-22 16:14:58 +00:00
Bharat Mediratta
baff63b70b
Very basic movie support. You can upload a FLV file, we use ffmpeg to
...
extract a thumbnail out of it and if you click through we show it
using flowplayer.
2009-02-22 05:21:44 +00:00
Bharat Mediratta
e84aa77237
Fix load_themes() to actually look up the right themes to use. Thanks to Blake Turner.
2009-02-22 00:57:54 +00:00
Tim Almdal
8b2c05afc0
1) Rename the module media_rss to rss
...
2) Protect the fullsize image with a permission check
3) Added a content:encoded element to each item which allows the image to show up in the body of the feed.
2009-02-19 15:24:17 +00:00
Andy Staudacher
237656f6c8
Differentiate between available and installed languages. Provide admin UI to install languages.
...
See: https://apps.sourceforge.net/trac/gallery/ticket/75 (first step for this task)
2009-02-19 08:48:14 +00:00
Andy Staudacher
d47e4c9b43
Adding a l10n scanner - scans for t() and t2() calls, inserts the extracted messages into incoming_translations.
...
See: https://apps.sourceforge.net/trac/gallery/ticket/74
2009-02-19 07:20:26 +00:00
Bharat Mediratta
dcc42328b1
Fix indentation.
2009-02-19 01:50:38 +00:00
Bharat Mediratta
d3752437b9
Add a 'finish' button which dismisses the dialog and refreshes the current page
2009-02-18 07:33:38 +00:00
Bharat Mediratta
e24de87096
Urlencode the user agent, else it doesn't get passed through properly.
...
This fixes the uploader on FF/Linux (and probably other platforms).
2009-02-18 07:20:50 +00:00
Bharat Mediratta
82ccbba124
Move private key generation into the installer so that we're not
...
generating it lazily.
2009-02-17 07:03:40 +00:00