summaryrefslogtreecommitdiff
path: root/modules/user/helpers
AgeCommit message (Collapse)Author
2009-05-13Variety of changes to the way we do user editing:Bharat Mediratta
1) Allow admins to edit the admin bit of other admins 2) Don't allow admins to delete themselves (partial fix for ticket #213) 3) Inline user::update(). Don't do form processing in helper methods! 4) Inline user::_get_edit_form() so that we can treat edit forms differently. Trying to hard to make common functions makes for weird edge cases.
2009-05-12Add group::lookup_by_name()Bharat Mediratta
2009-05-12Fix a comment.Bharat Mediratta
2009-04-18Add user::lookup_by_name()Bharat Mediratta
2009-04-09Fix the spelling of "appearance_menu" and update user_menu so that theBharat Mediratta
user/groups admin menu option appears again.
2009-04-03Fix for ticket #201. Tim Almdal
1) create common update function so processing consistent between the user edit and admin edit. 2) created common private helper function to build the user edit form the same way. So a user can now change their user name if the new one doesn't exist.
2009-03-25Fix for ticket #181. Valiant take note of the change toTim Almdal
admin_users.php. I had to remove the check for the locale as it hasn't been added to the form.
2009-03-16Switch the locale::$locales data structure to be an array instead of aBharat Mediratta
stdClass because we're not allowed to asort() stdClass objects in PHP 5.2.6.
2009-03-16Get rid of the extra robust code we had in here to make theBharat Mediratta
scaffolding work when the Gallery wasn't installed yet. Now we force users through the installer.
2009-03-16Clean up the login, maintenance login and required-top-level-login code.Bharat Mediratta
We now have two clear and separate login approaches: login/ajax login/html Choose the one that's appropriate. Totally simplified the maintenance page to be separate from the theme and dead simple, and use login/html approach there. Totally simplified the top level login (login_page.html.php) to just be a login page, not the rest of the chrome on the page and use the login/ajax approach there. Don't use access::required in albums and then catch the exception, instead use access::can and check the return code. Improve the text for maintenance mode.
2009-03-16Stop loading jeditable-- we don't use it anymoreBharat Mediratta
2009-03-10access::allow/deny/reset functions will now throw an exception if youBharat Mediratta
don't pass in a Group_Model as the argument. This prevents us from setting permissions on the wrong group by accidentally passing in a User_Model.
2009-03-08Log the user in as admin after running the web installer, and giveBharat Mediratta
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-02-28Change the pattern to identify tables that need prefix substitution toTim Almdal
mirror the drupal pattern of using braces {}.
2009-02-27This implements table prefix for all the queries in core, user, exif,Tim Almdal
tag, search, comment and notification modules (Ticket #68)
2009-02-27Remove commented codeTim Almdal
Correct unbalanced brackets
2009-02-27Continue the journey of replacing raw sql with ORM or Database methodTim Almdal
calls (Ticket #68)
2009-02-19Differentiate between available and installed languages. Provide admin UI to ↵Andy Staudacher
install languages. See: https://apps.sourceforge.net/trac/gallery/ticket/75 (first step for this task)
2009-02-10Simplification pass that preserves almost all functionality (exceptBharat Mediratta
default_country) but removes a lot of the code.
2009-02-10style fixes (style for method names, style for vars in locale.php)Andy Staudacher
2009-02-10Adding UI for site language selection and user language preference.Andy Staudacher
2009-02-10Move site default_locale into DB (vars) and add a per user locale preference.Andy Staudacher
There's no UI to select the locale yet.
2009-02-04Use the matches validation rule in order to perform cross fieldTim Almdal
validation between the password and password2 fields
2009-02-04Complete the Recover Password functionality (Ticket #5).Tim Almdal
This change requires a reinstall in order to pick up the new hash field in the user table.
2009-02-03Add a confirmation password input field that must match the primaryTim Almdal
password field in order for the update to succeed. If there is no data entered in the primary password field, the confirmation field is ignored. Addresses Trac Ticket #4
2009-01-28Fully implement the user administration backend with drag/drop to addBharat Mediratta
users to groups.
2009-01-28Add drag and drop support to the admin_users interface. This is stillBharat Mediratta
a work in progress but it actually works mostly.
2009-01-25Undo the adding underscores to the id on forge generated formsTim Almdal
2009-01-24Supply a form id on all forms. This id can be used by modules otherTim Almdal
than the originating module to provide additional functionality to the form.
2009-01-18Rename theme callback helpers from xxx_block to xxx_theme to make roomBharat Mediratta
for us to rename the dashboard helper to be a block helper since sidebar blocks are not just in the dashboard.
2009-01-15Changing t() placeholder syntax from {{replace_me}} to %replace_me.Andy Staudacher
2009-01-14Make sure that helper functions are all static. Add newBharat Mediratta
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-12Updated for new Form_Submit API.Bharat Mediratta
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-10Big set of changes to comments, with related changes to akismet andBharat Mediratta
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-08i18n refactoring: Rename all _() (reserved by gettext) calls to t().Andy Staudacher
- And refactor printf to our string interpolation / pluralization syntax - Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-06Put up an error if you rename a user to an already existing name.Bharat Mediratta
2009-01-06Fix up all the various little forms to have submit buttons, fieldset ↵Bharat Mediratta
legends, etc etc.
2008-12-31Fully implement the view_full permission.Bharat Mediratta
2008-12-30Make some columns smaller so that multi-column keys don't exceed 1024Bharat Mediratta
bytes on some systems.
2008-12-28Add title back to non-DHTML form to maintain consistencyFelix Rabinovich
2008-12-26Added title to user/group administration dialogsFelix Rabinovich
2008-12-26User/Group administration cleanupFelix Rabinovich
2008-12-26Group AdministrationFelix Rabinovich
2008-12-26User Administration. Add users. Take 3Felix Rabinovich
2008-12-26User Administration. Delete users. Take 3Felix Rabinovich
2008-12-26User Administration. Edit users. Take 3Felix Rabinovich
2008-12-25Ajaxify 'add users'Felix Rabinovich
2008-12-25fixes in user edit and deleteFelix Rabinovich
2008-12-25Big round of normalization of the way that our controllersBharat Mediratta
communicate. Almost all controllers now use JSON to speak to the theme when we're dealing with form processing. This means tht we only send the form back and forth, but we use a JSON protocol to tell the browser success/error status as well as the location of any newly created resources, or where the browser should redirect the user. Lots of small changes: 1) Admin -> Edit Profile is gone. Instead I fixed the "Modify Profile" link in the top right corner to be a modal dialog 2) We use json_encode everywhere. No more Atom/XML for now. We can bring those back later, though. For now there's a lot of code duplication but that'll be easy to clean up. 3) REST_Controller is no longer abstract. All methods its subclasses should create throw exceptions, which means that subclasses don't have to implement stubs for those methods. 4) New pattern: helper method get_add_form calls take an Item_Model, not an id since we have to load the Item_Model in the controller anyway to check permissions. 5) User/Groups REST resources are separate from User/Group in the site admin. They do different things, we should avoid confusing overlap.
2008-12-25added sprintf to strings for tranlation supportFelix Rabinovich