Commit Graph
2082 Commits
Author SHA1 Message Date
Bharat Mediratta e31456af47 Remove stray 'filter' instances 2008-11-26 05:20:47 +00:00
Tim Almdal 03bf3a6af2 Remove the more or less links 2008-11-26 05:08:43 +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 5ccb050413 group::create() and group::delete() now manage the view_## columns in
the items table.

Convert installer over to using new creation API.
2008-11-26 04:13:57 +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 1ea0382f53 Moving right along on tags. Now the threshold for which tags can be changed. The default is to show all the tags (i.e. count >= the minimum frequency) by clicking on the "See Less" link, the tag cloud will not show the minimum frequency, so the number of tags shown is smaller.
The "See More" link works the opposite way.
2008-11-25 22:38:11 +00:00
Tim Almdal e9e589e5eb Display tag block using data from the database 2008-11-25 18:54:04 +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
Tim Almdal 53f45b3079 Correct call to undefined uninstall_modules method. Should have been _uninstall_modules 2008-11-25 18:00:33 +00:00
Tim Almdal 38a260b1d7 Rename get_absolute_url to abs_current 2008-11-25 16:50:29 +00:00
Tim Almdal 102f0f566b Normalize atom url generation 2008-11-25 15:54:45 +00:00
Tim Almdal 2c20fed373 Dynamically locate modules to install for test 2008-11-25 15:01:17 +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
Tim Almdal b2af9ed470 Modify the test controller to call tag_installer::install and uninstall
Created the first tag unit test
2008-11-25 07:05:03 +00:00
Tim Almdal 52206148a8 Fix tests 2008-11-25 06:41:11 +00:00
Bharat Mediratta 7eded67708 Make the album_top and header_bottom annotated theme blocks look a little bit nicer (but not perfect) 2008-11-25 05:24:54 +00:00
Bharat Mediratta 458d588dd6 Move album_top back inside gAlbumHeader so that the slideshow link appears on the same line as the title/description. 2008-11-25 05:15:07 +00:00
Bharat Mediratta 229e531ab9 Change url() to use url::file() since it's more concise. 2008-11-25 04:41:14 +00:00
Bharat Mediratta 8b84b188bf Remove module() since it's now unused. We can add it back if we decide that we want it again. 2008-11-25 04:40:07 +00:00
Bharat Mediratta b22494a4ea Move the in-place-edit JS into the page_footer callback and out of
Theme.php.
2008-11-25 04:37:21 +00:00
Bharat Mediratta fe602433a8 tag::add_tag() -> tag::add 2008-11-25 04:36:31 +00:00
Bharat Mediratta 389cf77e5a Make the annotated block titles 10% larger. 2008-11-25 04:35:50 +00:00
Bharat Mediratta 7ec579cede Simplify the API. We don't have a need to add multiple tags to
multiple items, so don't create a confusing API where we don't need
one.  The caller can just as easily loop over items and tags.

Use ORM::has() instead of manually looping over items, which would be
wildly inefficient on large installs.  Document that we're calling
ORM::has() a second time just so that we can update the count
correctly.
2008-11-25 04:23:45 +00:00
Bharat Mediratta 7be23c269c Remove a stray comma that was making IE sad. 2008-11-25 03:24:31 +00:00
Bharat Mediratta 6935cfef40 Add gClearFix to the annotated theme elements, which makes the box surround its contents better (thanks thumb!) 2008-11-25 02:27:00 +00:00
Bharat Mediratta aedcba0ed2 Round the corners on the annotated titles, gently. 2008-11-25 02:24:59 +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
Bharat Mediratta 85bdb606bf Escape CDATA blocks to avoid JS errors 2008-11-25 02:16:00 +00:00
Bharat Mediratta 26f5baba94 Reposition album_top and album_bottom slightly 2008-11-25 02:14:36 +00:00
Bharat Mediratta c725a0f16e Move comment listing into the comment module 2008-11-25 02:14:04 +00:00
Bharat Mediratta 1ad1846774 Oops, fix a typo causing us to treat an array like a string. 2008-11-25 01:58:19 +00:00
Bharat Mediratta 8e6eff096b Don't add in-place-edit CSS unless there's a logged-in user. 2008-11-25 01:39:20 +00:00
Bharat Mediratta 2c7893b48e Fix a bug in thumbnail_info where we were printing out the data instead of returning it 2008-11-25 01:35:42 +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
Tim Almdal 75d9a829d7 Add @todo to look at normalizing the url functions to the ones already in MY_url.php 2008-11-24 22:20:22 +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
Bharat Mediratta b79ce414de Detect browsers that prefer XHTML (Chrome!) and normalize it to HTML
so that we don't ship XML down to Chrome.
2008-11-24 07:50:20 +00:00
Chad Kieffer c812d2a931 Changed comment sort order asc. Changed ajax comment add to append comment li to comment thread ul. Added fadeIn for user login. 2008-11-24 07:12:45 +00:00
Tim Almdal dd200ce5ff Don't bother trying to check if the class file exists, just use method_exists, which will use the php auto loader to find the class. 2008-11-24 06:02:38 +00:00
Tim Almdal 8b52d9cde4 Revert the site_title change 2008-11-24 05:58:38 +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
Chad Kieffer e85282b709 Make login form JS unobtrusive. Needs work. 2008-11-24 00:27:45 +00:00
Bharat Mediratta 45128b2322 Prefer variable interpolation to sprintf where possible (less code, more readable)
Prefer url::abs_site() to atom::get_base_url()
2008-11-23 21:47:04 +00:00
Jozef Selesi 55fc5993f0 Fix double-escaping in the item comments feed. 2008-11-23 20:43:47 +00:00