Commit Graph

56 Commits

Author SHA1 Message Date
Jozef Selesi
a1ca946a89 Make comment post time display more user-friendly by displaying 'today', 'yesterday', 'x days ago' etc. 2008-11-12 12:00:13 +00:00
Bharat Mediratta
ed8f1d4152 gBlockContent lives on the outer div, so remove it from the inner form. 2008-11-12 10:54:01 +00:00
Jozef Selesi
31bea40e2e Set svn:eol-style LF on a new file and add the standard preamble to some files. 2008-11-12 07:07:13 +00:00
Tim Almdal
1da2428183 More updates for user management. The controllers don't work yet. But the login link in the header wil open up a login box like the mockup 2008-11-12 03:40:49 +00:00
Bharat Mediratta
ba348181f7 Rename tag_cloud.html.php to tags_block.html.php for consistency 2008-11-11 23:12:16 +00:00
Bharat Mediratta
b0a3308740 Minor cleanup; localization, indentation, etc. 2008-11-11 22:46:25 +00:00
Jozef Selesi
752459c64c Display comments from the database. 2008-11-11 20:54:12 +00:00
Tim Almdal
dd9058ada4 Added some functionality to the user helper class (to check if the user is logged in) and changed the header to use the helper class 2008-11-11 20:16:58 +00:00
Tim Almdal
f5d092b484 Correct some missing properties and change the user_model to have a set function so the password is hashed as part of the model 2008-11-11 20:02:43 +00:00
Jozef Selesi
1651b3fe85 Move scaffolding code out of the comments controller to welcome.php. 2008-11-11 12:20:20 +00:00
Tim Almdal
bba5289035 Change Album and Photo controllers to set the user object as a global variable; change the header so it links to the user controllers; and add the user controllers which don't do anything. 2008-11-11 07:39:20 +00:00
Tim Almdal
9f261213a5 Reset PasswordHash.php to its original state and exclude it from the file_structure_test 2008-11-11 06:21:21 +00:00
Tim Almdal
62bb63a70d New user module with password support. This supports the same password mechanism as g1 and g2 to facilitate a migration. 2008-11-11 04:57:49 +00:00
Bharat Mediratta
db6917b58b Use select_list() to allow for a single assert_equal in our tests. 2008-11-10 22:08:02 +00:00
Bharat Mediratta
253ae3e003 Use alternate form of ORM::factory to reduce code. 2008-11-10 21:56:46 +00:00
Tim Almdal
7bcf7efc09 Remove the complexity of a interface driven user management module 2008-11-10 21:29:30 +00:00
Tim Almdal
0a8d5edbdc Early look at the User/Auth module refactoring. It will look for a driver based on the contents of the user/config/user.php file. And load that driver based on the User_Driver interface. There is a default User_Gallery_Driver class that will provide the actual interface implementation. Replacing this driver will allow a completely different user and authentication implementation to be used... hopefully will reduce issues with embedding and other user management systems. Removed from unit tests so they will still run. 2008-11-10 20:17:09 +00:00
Jozef Selesi
ddf0a51900 Comment creation controller, helper and test. Add comments from the scaffold. 2008-11-10 17:32:04 +00:00
Tim Almdal
359e28a50f Remove Auth module 2008-11-10 16:45:06 +00:00
Jozef Selesi
d8c2399b96 Prevent direct script access. 2008-11-10 11:40:48 +00:00
Tim Almdal
8858b957b0 The start of the login functionality. It shows the login popup but doesn't do anything else. Just got tire of my changes being clobbered :-) 2008-11-10 03:17:56 +00:00
Bharat Mediratta
b006b1922c uninstall and reinstall the comment module, too 2008-11-10 00:26:52 +00:00
Bharat Mediratta
1ba012db0e Chain away temporary variables 2008-11-09 23:45:47 +00:00
Jozef Selesi
aa437293e6 Fix line endings. 2008-11-09 23:34:03 +00:00
Jozef Selesi
434e56351e Install/uninstall support for the comment module. Missing from the previous commit. 2008-11-09 23:06:31 +00:00
Bharat Mediratta
a8713a7695 Allow in-place editing in the info block. 2008-11-08 19:11:12 +00:00
Bharat Mediratta
418c0aab69 Create permanent owner_id column in the item table, and use a soft
relationship to bind the two.  To do this, I overrode __get in
Item_Model so that $item->owner returns the appropriate User_Model.
2008-11-08 07:48:36 +00:00
Felix Rabinovich
28b739a210 Adding user (owner) to items; info module 2008-11-08 07:18:56 +00:00
Tim Almdal
3bb9b9185c Standardize on a format for exceptions messages new Exception("@todo ERROR_MESSAGE"); 2008-11-08 05:30:41 +00:00
Bharat Mediratta
36d1be4717 44 --> E_DATABASE_ERROR 2008-11-08 05:12:37 +00:00
Bharat Mediratta
73488d5ee9 Remove inappropriate comments 2008-11-08 05:11:58 +00:00
Tim Almdal
d025155314 The start of an authentication module. This provides the installation and a basic install test. There is no interface at the moment to do authentication. It is dependent on the install of the user module. 2008-11-08 01:56:59 +00:00
Tim Almdal
57683d5b70 Change how the modules table doesn't exist is caught. In running unit test, sometimes i would get the message "There was an SQL error: Table 'gallery3_unittest.modules' doesn't exist - ...." and sometimes I would get the message "Table modules does not exist in your database." In both cases the error code was 44. 2008-11-08 01:19:03 +00:00
Bharat Mediratta
ef4b125796 Uninstall/reinstall modules in the right order and catch exceptions (fixes test failures) 2008-11-06 03:51:30 +00:00
Tim Almdal
134bac46d0 add installation unit tests and corrected a problem where the groups_users pivot table was not populated. 2008-11-05 22:10:35 +00:00
Chris Kelly
dbf0fda99b better instructions/error handling 2008-11-05 21:52:22 +00:00
Tim Almdal
74cefadb19 actually delete the same tables as we createad 2008-11-05 20:42:15 +00:00
Tim Almdal
772239206b Rename logon_name to name, name to display_name and remove the external id field 2008-11-05 06:16:47 +00:00
Bharat Mediratta
fd3e21e2fd Move Google Maps block off into its own gmaps module. 2008-11-05 05:41:19 +00:00
Bharat Mediratta
8e880b4c41 Item Info block is now off into the info module. Yay! 2008-11-05 05:35:47 +00:00
Tim Almdal
3c65b68e1c The start of the user module. At this point, it shows up on the scaffolding screen and you can install and uninstall it. Which creates the tables, defines 2 groups (adminstrator, registered) and one user (admin). 2008-11-05 05:32:47 +00:00
Bharat Mediratta
a60944e07d Tags are now off in their own module, hooray! 2008-11-05 05:28:20 +00:00
Bharat Mediratta
b82332192a The carousel block is now off into its own module. The
sidebar.html.php file loops over $theme->blocks() which in turn calls
carousel::block() which uses the Block object to create a standard
block UI.  Hooray!
2008-11-05 05:20:20 +00:00
Bharat Mediratta
605d2de336 Lots of new stuff!
Replace theme HTML with *almost* the latest stuff from the
mockups.  (it doesn't include r18467 yet).

Our theme format is now modelled after WordPress / Habari's style
where you have one entry point per type (eg: album.php) which can
load up whatever parts it needs (eg: $theme->display("header"))

Created album and photo helpers which have create() functions
that form the base of our new API, along with tests for them.

Created our own version of the ORM_MPTT since the existing
versions were too buggy and unsupported to depend upon.  Only has
a minimal implementation so far, and the tests are not yet
committed.

Added path(), thumbnail_path() and resize_path() to Item_Model

Extended the scaffolding to allow you to add lots of
photos/albums into your hierarchy.

Deleted modules/mptt -- we're not going to use this anymore.
2008-11-04 21:24:42 +00:00
Bharat Mediratta
ade1650846 Add a test to detect tabs in our code, and convert all tabs to spaces
so that the test passes.
2008-11-04 05:22:06 +00:00
Tim Almdal
8709c1965f White space correction 2008-11-04 02:19:46 +00:00
Bharat Mediratta
33e9cdad15 Uninstall/reinstall core on every test run (for now). 2008-11-03 02:05:59 +00:00
Bharat Mediratta
df36d28b8a Make the unit_test database config the default so that our test runs don't
mess up the real database.
2008-11-03 00:07:38 +00:00
Bharat Mediratta
e173f36bcb Create some basic infrastructure:
* item model (contains basic item info, similar to the gx version)
  * module model (has info about each module and which version of it is installed)
  * added a very basic unit test to verify that we can create an instance of item
  * Updated our test controller to require a unit_test db config and
    call core::install if it hasn't been done already.

New pattern:
  * core/helpers/core_installer.php creates core_installer helper.
    When we install a new module you call xxx_installer::install(),
    and when you want it to go away, you do xxx_installer::uninstall()

Create
2008-11-02 23:55:09 +00:00
Tim Almdal
a38752607e replace a tab with the appropriate number of spaces 2008-11-02 21:39:10 +00:00