Bharat Mediratta
894a33d744
Add support for pretty urls. So now instead of urls like:
...
http://example.com/gallery3/index.php/albums/2
http://example.com/gallery3/index.php/photos/9
You'll see urls like:
http://example.com/gallery3/index.php/Family/Weddings
http://example.com/gallery3/index.php/Family/Weddings/Bob.jpg
2009-01-29 03:22:02 +00:00
Bharat Mediratta
b7bfd011cb
Remove extra debug call to install()
2009-01-29 02:19:52 +00:00
Bharat Mediratta
6bfadc14ed
Fully implement the user administration backend with drag/drop to add
...
users to groups.
2009-01-28 22:42:50 +00:00
Bharat Mediratta
2a9d48f8bb
Rename Admin_Themedetails -> Admin_Theme_Details
2009-01-27 07:47:55 +00:00
Bharat Mediratta
47067c72ea
Remove unused theme code left over from before virshu moved theme
...
settings into Admin_Themedetails.
2009-01-27 07:30:28 +00:00
Tim Almdal
a8233ed979
Undo the adding underscores to the id on forge generated forms
2009-01-25 06:28:04 +00:00
Tim Almdal
cbff78daa8
Supply a form id on all forms. This id can be used by modules other
...
than the originating module to provide additional functionality to the form.
2009-01-24 17:26:47 +00:00
Bharat Mediratta
0a025c984d
Minor tweaks
2009-01-23 08:32:00 +00:00
Felix Rabinovich
cd86c4ee77
Theme details. Save values
2009-01-22 02:25:10 +00:00
Felix Rabinovich
90666f7e04
Theme details. Initial release
2009-01-22 01:52:41 +00:00
Bharat Mediratta
37f9845c43
Revert r19765 -- the installer works fine with it the way it is.
2009-01-20 09:10:49 +00:00
Bharat Mediratta
3ba056d714
Add a quick edit pane for albums, too.
2009-01-20 07:11:14 +00:00
Bharat Mediratta
5e94456ce9
Make get_add_block_form() static.
2009-01-19 06:12:49 +00:00
Bharat Mediratta
0448a5b32c
Flush the access_intent cache after ALTER TABLE queries, fixes a
...
problem where the install.sql had the wrong view permissions.
2009-01-19 06:02:53 +00:00
Bharat Mediratta
d97308ffe7
Put the <a> element inside the internationalized text.
2009-01-19 05:24:47 +00:00
Bharat Mediratta
c136a2e84a
Packager now does a clean reinstall of just the packages we want, then
...
rebuilds the install.sql and init_var.php files accordingly.
2009-01-19 05:16:55 +00:00
Bharat Mediratta
8ec0e8471f
Drag and drop in the admin dashboard now saves the location.
...
* Make block_adder a real block
* Suppress the "close" link on block_adder
* Move the drag/drop JS into the core code out of the admin theme
2009-01-18 09:06:46 +00:00
Bharat Mediratta
7b68ca9946
Refactor dashboard -> block_manager since it'll manage blocks site
...
wide, not just in the dashboard.
2009-01-18 06:55:04 +00:00
Bharat Mediratta
3d1ea2904d
Rename theme callback helpers from xxx_block to xxx_theme to make room
...
for us to rename the dashboard helper to be a block helper since
sidebar blocks are not just in the dashboard.
2009-01-18 05:01:00 +00:00
Bharat Mediratta
d568a1e9fd
Implement relevance ranked boolean searching on a full text index of
...
item and comment data. Whew!
It's not pretty yet. And you have to manually update the index
currently in admin/maintenance. But it works.
2009-01-17 00:52:50 +00:00
Bharat Mediratta
622da5f3cd
Rename Task to Task_Definition to avoid confusion with Task_Model.
...
Order the finished tasks by update time in the task list.
2009-01-16 05:01:22 +00:00
Bharat Mediratta
72fa5736ff
Rename Change xxx_task::available() to xxx_task::available_tasks()
...
Fix a bug in admin_maintenance.html.php where we were only showing the first task
2009-01-16 04:49:56 +00:00
Bharat Mediratta
b2e37f20c7
Move graphics::rebuild_dirty_images to core_task::rebuild_dirty_images
2009-01-16 04:35:35 +00:00
Bharat Mediratta
2352dd162a
Break task definitions out into the <module>_task helper and create a
...
Task library class as a data structure to hold task definitions.
2009-01-16 04:31:41 +00:00
Bharat Mediratta
ecf94c74d8
Update event handlers to reflect new item event names
2009-01-16 03:54:24 +00:00
Andy Staudacher
e4a9b19bf9
Changing t() placeholder syntax from {{replace_me}} to %replace_me.
2009-01-15 10:02:41 +00:00
Andy Staudacher
e53916dd06
Simplifying the way t() is called. Refactoring localization function t($message, $options=array()) into 2 separate functions:
...
- the new t($message, $options=array()) is for simple strings, optionally with placeholder interpolation.
- t2($singular, $plural, $count, $options=array()) is for plurals.
2009-01-15 09:30:15 +00:00
Chad Kieffer
0bbde9e059
Added gQuick to album_top, started implementation, but incomplete so far. Need edit album methods added to the quick controller.
2009-01-15 06:19:26 +00:00
Bharat Mediratta
ad4f495e56
Rename events
...
album_created, photo_created -> item_created
album_updated, photo_updated -> item_updated
2009-01-15 02:51:16 +00:00
Bharat Mediratta
f3ba69c1d6
Make sure that helper functions are all static. Add new
...
File_Structure_Test to make sure we don't regress.
According to the PHP docs, the "public" keyword is implied on static
functions, so remove it. Also, require private static functions to
start with an _.
http://php.net/manual/en/language.oop5.visibility.php
2009-01-14 04:12:02 +00:00
Tim Almdal
383ec9c22c
Initialize the model_cache:: as an array and use sub arrays to maintain the cache
2009-01-14 03:22:17 +00:00
Tim Almdal
7305026fd8
make model_cache::get() a static function
2009-01-14 02:34:39 +00:00
Tim Almdal
c9e6b1ef44
Correct the initial value get active blocks
2009-01-14 00:22:17 +00:00
Tim Almdal
7043d17040
Since module_Core is static the methods, get_var, set_var, etc should be static
2009-01-14 00:09:33 +00:00
Bharat Mediratta
35a529cd86
Change admin/themes to show both styles of themes side by side. This
...
eliminates the menu, which is kind of clunky.
While I'm at it, let's call the "regular" themes a "site theme" so we
have "site" and "admin" themes.
2009-01-13 10:53:06 +00:00
Bharat Mediratta
ff6791f576
Models should be named in adjective_noun form to make pluralizatoin
...
more intuitive.
Renamed Translations_Incoming to Incoming_Translation to suit.
2009-01-13 01:05:11 +00:00
Bharat Mediratta
c5f77510a7
Refactor dashboard block handling out into a dashboard helper so that
...
module installers don't have to know the grotty details of how it works.
2009-01-12 08:51:54 +00:00
Bharat Mediratta
bc421a615a
Implement deleting dashboard blocks.
...
* Refactor blocks so that they have a separate id vs css_id. This way
we can have a unique identifier for each visual block.
* Store blocks with a random id as their unique identifier
* Add Admin_Dashboard::remove_block() and modify
themes/admin_default/views/block.html.php to call it when you click the
remove box.
2009-01-12 08:26:38 +00:00
Bharat Mediratta
ae73ef3d57
Updated for new Form_Submit API.
...
OLD:
$form->submit("Foo") --> <input type="submit" value="Foo">
New:
$form->submit("foo_button")->("Foo") --> <input type="submit" name="foo_button" value="Foo">
Mostly we don't care what the button is so we leave the name blank.
2009-01-12 07:50:04 +00:00
Bharat Mediratta
b19729435c
Dashboard blocks are now data driven, and you can add new blocks to
...
both the sidebar and the center content area from a dropdown at the
top of the dashboard sidebar.
2009-01-12 07:39:53 +00:00
Bharat Mediratta
713ef05b0f
Site menu restructure:
...
* Add 'Scaffold' link to make it more obvious what's going on there
* 'Home' link now goes to albums/1
* 'Admin' is now pushed to the far right.
2009-01-11 21:35:17 +00:00
Bharat Mediratta
d387b31d18
Merge the site admin menu in under the regular Admin menu.
2009-01-11 18:58:00 +00:00
Bharat Mediratta
afb90768b4
Remove stray blank line, convert single to double quotes.
2009-01-11 02:06:36 +00:00
Bharat Mediratta
4312563e8b
Reset module_names / modules early in load_modules() so that unit test framework can dump the loaded modules after switching databases even if the modules table doesn't exist yet
2009-01-11 01:57:41 +00:00
Felix Rabinovich
5ee03eb9c8
Save individual theme values
2009-01-10 22:36:06 +00:00
Felix Rabinovich
705c55fb79
Submit theme values
2009-01-10 22:04:49 +00:00
Felix Rabinovich
72e9d20f3c
Display theme details
2009-01-10 19:41:43 +00:00
Bharat Mediratta
a7feeb576f
Big set of changes to comments, with related changes to akismet and
...
user modules.
* Don't delete vars when we delete a module. This makes
reinstalling a module a lot easier.
* Add user::lookup() as the preferred way to load a user, so that
other modules don't delve into the user module (that'd be a
problem when we swap out user modules)
* Notify site admins if Akismet is not fully configured
* Bundle all server variables into the comment so that if/when we
re-check the comment, we are not using the server info from the
site admin's request.
* Update Akismet to grab request context data from the comment
* Pre-seed comment fields if we have a logged in user. Update
comment::create() API to clarify it for this.
* Delete comment::update(), that's a controller function.
* Add url to User_Model
* Add author_name() author_email() and author_url() to
Comment_Model. It'll return the appropriate values depending
on whether the comment was left by a logged in user or a guest.
* Use resetForm() instead of clearForm() when we reload the
comment form after ajax submit, this way we preserve the
pre-seeded values.
* In the user profile page, ignore blank passwords.
2009-01-10 00:34:23 +00:00
Felix Rabinovich
48e73e9081
Theme Administration cleanup initialization
2009-01-09 23:54:40 +00:00
Felix Rabinovich
b647aa0f74
Theme Administration v. 2. Doesn't distinguish between regular and admin themes yet
2009-01-09 23:31:46 +00:00