Tim Almdal
e1f2a5d4e6
1) Begins the creation of the local import module by adding the administation component to the scaffolding Actions tab. The importing functionality will follow shortly.
...
2) Defines a routining pattern for module administration controllers. URI's of the form admin/module/method/parameters gets remapped into module_admin/method/parameters. This will result in the lookup of the the controller Module_Admin_Controller
2008-12-11 17:20:55 +00:00
Bharat Mediratta
18a6614a11
Change all access API methods to take ORMs instead of ids. This will
...
minimize reloading objects from the database.
2008-12-10 07:05:49 +00:00
Bharat Mediratta
4a0e4b798e
Check view permissions before allowing view access to albums/photos.
2008-12-09 10:14:09 +00:00
Bharat Mediratta
e62103b8d9
Move code to delete users and add/remove users from groups into the
...
model.
2008-12-09 08:47:30 +00:00
Bharat Mediratta
f69f3967ea
move user::delete() to User_Model::delete()
2008-12-09 00:07:26 +00:00
Bharat Mediratta
f0a1950597
Fix a bug in the redirect after adding photos.
2008-12-07 04:56:39 +00:00
Bharat Mediratta
2aa84796f3
* Don't call _getadd_photo_html() when we don't have an items table.
...
* Guard against errors when uninstalling modules that don't have any code left (eg: carousel)
* Create the var/uploads dir automatically.
2008-12-07 01:24:44 +00:00
Tim Almdal
fb6e22e145
Implemented photo::_get_photo_add(). You need to create the var/uploads directory and make it writable by the server. The location of the temporary upload directory is specified in config/upload.php
2008-12-06 21:14:36 +00:00
Tim Almdal
64c380a60d
Correct @todo's in Item_Controller
2008-12-06 20:27:55 +00:00
Bharat Mediratta
bda84d71eb
Fix a bug where any uninstall removed the entire database.
2008-12-05 06:27:02 +00:00
Tim Almdal
0f103b1c06
Moving albums around with a drag and drop interface seems to work and preserve the left right pointers.
...
* changed _lock and _unlock to protected methods lock and lock respectively
* added a moveTo method on the Item_Model
* Corrected the hole closure on delete.
* added moveTo on the ORM_MTPP class
* Changed the rearrange javascript to do moves with ajax
2008-12-04 20:05:58 +00:00
Bharat Mediratta
9ba9f7bf27
Change the startup code to only put installed modules on the autoload
...
path. This breaks a bunch of places where we had hardcoded
dependencies, so guard all of those cases. Restructure
module::available() a bit and the way that we do install/uninstall in
the scaffolding.
2008-12-04 07:44:28 +00:00
Tim Almdal
1ae3ed7e3b
Get rid of the rearrange helper as the code could be inlined
2008-12-04 06:36:14 +00:00
Bharat Mediratta
ccee9854c2
Rename file::unlink() to dir::unlink(). This creates an API that is
...
clearer about its actions, otherwise we may accidentally blow away an
entire hierarchy when we think we're deleting a single file (there's a
reason why rm won't let you delete dirs that aren't empty!)
Name it "dir" instead of "directory" because apparently "directory" is
already reserved.
Move the delete call out of Items_Controller and into the model. The
model is responsible for keeping state integrity, not the controller.
2008-12-03 23:31:10 +00:00
Tim Almdal
7bb4b6029d
Add a MY_file class that extends the file helper by creating an unlink method that deletes a file or an album directory.
...
Modify Items_Controller::_delete to call this new helper method when deleting an item
2008-12-03 22:39:57 +00:00
Bharat Mediratta
39499cdf2e
Add /welcome/form/add/photos to give you the add photo form.
2008-12-03 05:40:59 +00:00
Tim Almdal
3953dde2c6
The rearrange module will now add an album if you drag the "new album" onto the album tree. I haven't had a chance to figure out why the form does get any styling or why a textarea is no included as a list item.
2008-12-02 21:25:15 +00:00
Bharat Mediratta
ed2cb2a86d
Fix profiler settings in the scaffolding
2008-12-01 10:40:40 +00:00
Bharat Mediratta
5c303aa07b
Add access::reset() so that you can specify your intent to use the
...
parent's permissions.
Update scaffolding to demonstrate that it works.
2008-12-01 09:57:03 +00:00
Bharat Mediratta
91c4bda1ec
Prototype access control model. There's much left to do, but it's a
...
working implementation.
2008-12-01 08:50:00 +00:00
Bharat Mediratta
6b03b798f3
Move rearrange HTML generation into welcome.php so that we gracefully
...
handle the case where the DB is not installed yet.
2008-11-30 21:39:23 +00:00
Bharat Mediratta
4271f7702a
Add access model (not fully baked yet).
...
Update scaffolding to allow addition of just albums (helpful for testing permissions)
2008-11-29 22:47:15 +00:00
Tim Almdal
70de32ebb4
Insure that the page and offset refere to valid items
2008-11-29 17:08:42 +00:00
Tim Almdal
6a76d6f747
Dynamically create the list of available modules. This permits new modules to be added without having to update the config.php file
2008-11-28 21:22:34 +00:00
Bharat Mediratta
8b6ed6c477
Create module::event() which runs Gallery events. It works by
...
convention. To respond to the "photo_created" event in the gmaps
module, you create modules/gmaps/helpers/gmaps_event.php containing
class gmaps_event which has function photo_created.
Renamed all events from gallery.foo.bar to foo_bar
Updated tag module to use new convention.
2008-11-28 19:37:01 +00:00
Bharat Mediratta
2c86723942
Add an easy way to add a bunch of servers from the server side
2008-11-28 05:45:35 +00:00
Tim Almdal
828f23896f
Rename item events and create events for comment create, login, logout, user creation. I probably forgot some, but its a start.
2008-11-28 00:51:38 +00:00
Tim Almdal
bac4ff2046
1) Create a Theme_View class that combines the functionality of the Theme class with the View class.
...
2) Only define the form.html.php::DrawForm method once if there are multiple forms on the page (i.e. comments and add tags)
2008-11-27 16:19:07 +00:00
Bharat Mediratta
d909fc1070
Make tags look a little better.
2008-11-27 10:25:50 +00:00
Bharat Mediratta
c95c17b133
Centralize logging around installing/uninstalling modules.
2008-11-27 09:45:26 +00:00
Bharat Mediratta
7e5f59bcb7
Add children_count to album/photo controllers for consistency with tags
2008-11-27 05:59:37 +00:00
Bharat Mediratta
691faa0e83
Draw an album tree in the access -> permissions tab.
2008-11-26 23:07:37 +00:00
Bharat Mediratta
974f9f7788
Add a new "tag" page type.
...
Create the concept of "page types" which let us specify the kind of
page that we're rendering in high level terms. Currently there are
three page types: album, photo and tag.
The tag page type uses slightly different variables. It has a $tag
but no $item. Adjust all sidebar_block() functions to avoid printing
stuff that's dependent on the item if there is no item.
Simplify the tag code to stop trying to fake an item.
Update the theme slightly to use $item and $tag where appropriate
(notably, for making the <title> element).
2008-11-26 21:50:45 +00:00
Bharat Mediratta
9c60566197
Add support for marking users as "admin"
2008-11-26 04:54:43 +00:00
Bharat Mediratta
226df2a8f8
Add support in the scaffolding for adding users to groups, adding and
...
removing users and groups.
2008-11-26 04:45:43 +00:00
Bharat Mediratta
242b3a1403
Use lorem2 words as inputs to generateTags. Limiting the number of
...
tags results in a better distribution of the tags (so the cloud looks
nicer).
2008-11-26 03:48:42 +00:00
Bharat Mediratta
5fce343ca4
Create user/group create/delete functions and have the scaffolding use them.
2008-11-26 03:34:39 +00:00
Tim Almdal
d554adc484
1) Changed how the test tags are generated to be able to create a better distribution
...
2) Added a new helper function "load_buckets" assign the class suffix to each tag
3) Created a unit test to test the load_buckets function
2008-11-25 18:14:52 +00:00
Bharat Mediratta
565f1a260c
The scaffolding can now add and delete users and groups. Yippee!
2008-11-25 09:39:45 +00:00
Bharat Mediratta
9bdf825a94
Add a "Access" tab to the scaffolding and list users and groups.
...
Refactor welcome.php a little bit to make index() more readable.
2008-11-25 09:15:45 +00:00
Bharat Mediratta
fe602433a8
tag::add_tag() -> tag::add
2008-11-25 04:36:31 +00:00
Bharat Mediratta
dcf3693b3e
Add theme debugging. Activate it in the [info] tab in the
...
scaffolding, then browse around your Gallery3 to see where you can add
visible elements via modules.
2008-11-25 02:17:53 +00:00
Tim Almdal
f81a9879be
Moved the creation of tags into the tag helper library. Added a count field to the tags table. Bharat, I know you said not to worry about caching, but I want to explore what are some of the issues with keeping track of the counts as we go. (i.e. is it a pain in the a__)
2008-11-24 23:18:32 +00:00
Bharat Mediratta
983a893e86
Show a link to the item with the most tags.
2008-11-24 08:57:04 +00:00
Bharat Mediratta
226dc45203
Fix a typo in _show() that broke proper redirection
2008-11-24 08:54:03 +00:00
Bharat Mediratta
b60e3e13a4
Show the tag count, too.
...
Try using array_rand to simplify tag creation logic. Is it better? Maybe.
2008-11-24 08:27:52 +00:00
Tim Almdal
d7288d33e6
Remove the has_many_and_belongs_to_many relations from the item model
2008-11-24 05:55:29 +00:00
Tim Almdal
39f00707ac
Add the creation of tags to the scaffolding code
2008-11-24 05:03:52 +00:00
Bharat Mediratta
02486f2401
Show the # of comments
2008-11-23 20:31:43 +00:00
Bharat Mediratta
f39cf6ed2f
Add a button to install all plugins at once, now that we have so many.
...
Improve the style a bit, sort the plugins, put core first and make it
stand out so that you don't accidentally uninstall it.
2008-11-23 07:46:50 +00:00