summaryrefslogtreecommitdiff
path: root/modules/image_block
AgeCommit message (Collapse)Author
2013-01-22gallery.menalto.com -> galleryproject.orgBharat Mediratta
codex.gallery2.org -> codex.galleryproject.org Fixes #1957.
2013-01-21Update copyright to 2013. Fixes #1953.Bharat Mediratta
2012-06-11Added access check - not really necesssary because we're only doing aBharat Mediratta
redirect, but it's nice to be consistent. Follow-on for #1837.
2012-05-07Oops, add in a file missed in 11ee6d50acf8849347c2c37dc15697830ff854d0Bharat Mediratta
2012-05-07Fix a database error caused by trying to view a non-search-result in aBharat Mediratta
search context. Patch thanks to sermoro. Fixes #1837.
2012-02-27Update copyright to 2012. #1822Bharat Mediratta
2011-04-23Oops, fix broken codex urls. For #1698.Bharat Mediratta
2011-04-23Oops, this is the rest of the modules and themes for #1696 and #1698.Bharat Mediratta
2011-01-21Update copyright to 2011.Bharat Mediratta
2010-12-26Fix capitalization to be sentence case.Bharat Mediratta
2010-12-25Correct image block plurality, fixes 1506dmolavi
2010-12-02Ok, do a real fix for #1499 by creating version 3 of the image_blockBharat Mediratta
module and creating the image_count variable if it wasn't already set.
2010-12-02Duh, set the image_block.image_count variable in the installer! ThisBharat Mediratta
issue was introduced in cdf0f7f765a5bd5e0d5619d345bdc6aba069c555 which was a follow-on for 3c523bcac6e902973c5891c02842254eaecd33a4 which fixes #1499.
2010-11-29In 3c523bcac6e902973c5891c02842254eaecd33a4 (fix for #1499) I left outBharat Mediratta
the install() function which should set the image_block module to version 2. Fix that here.
2010-11-21Create a module setting for the number of random images to show in theBharat Mediratta
sidebar. Fixes #1499.
2010-06-05item::random_query() doesn't need to take a "where" clause becauseBharat Mediratta
it's returning a query, so the caller can add the where clause himself. This makes for a cleaner API.
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-02-07Improve likelihood that image block shows up for small photo collections by ↵Andy Staudacher
retrying the random query a few times.
2010-01-19Do a better job of guarding against missing images.Bharat Mediratta
2010-01-08Move the random image functionality into the gallery REST helper sinceBharat Mediratta
choosing a random image is essentially a function on an item collection. Also implemented a bunch of other query filters for item collections. Created item::random_query() as a way of generating a reasonable starting point for random queries.
2010-01-08use item::random() to get the random item.Bharat Mediratta
2010-01-03Simplify the REST API code. Here's what I did:Bharat Mediratta
1) Simplify gallery_rest to return flat models, no children and do no validation for now. 2) Flatten the REST replies and use HTTP codes to indicate success/failure instead of additional status messages. 3) Use the message and error code support in the base Exception class, instead of brewing our own in Rest_Exception. 4) Get rid of rest::success() and rest::fail() -- we only need rest::reply() since all failures are covered by throwing an exception. 5) Get rid of /rest/access_key and just use /rest for authentication. 6) Inline and simplify rest::normalize_request since we only use it once 7) Change rest::set_active_user to succeed or throw an exception 8) Extract Rest_Exception::sendHeaders into rest::send_headers() Here's what's currently broken: 1) Data validation. There currently is none 2) Logging. That's gone too 3) image block and tag code is broken 4) Tests are broken 5) No movie support
2009-12-27Clean up validation the check for duplicate names or slugs, finish ↵Tim Almdal
converting the rest API to Kohana 2.4
2009-12-26Merge branch 'master' into talmdal_devTim Almdal
Conflicts: modules/gallery/controllers/albums.php modules/gallery/controllers/movies.php modules/gallery/controllers/photos.php
2009-12-24Change the image block rest handler to expect the type (i.e. random) as a ↵Tim Almdal
parameter not part of the path.
2009-12-23When normalizing the rest request don't assume that the additional arguments ↵Tim Almdal
are acutall a path. Leave it up to the handler to determine.
2009-12-22Add a restful get random image blockTim Almdal
2009-11-25ORM::orderby -> ORM::order_byBharat Mediratta
2009-11-18Remove the image_block_installer class as it does nothing, except erroneous ↵Tim Almdal
set the version number to 2.
2009-11-18Revert "Simplify the maintenance of the xss golden file by having each ↵Tim Almdal
module contibute its own golden file to a consolidated one. This will make it easier for -contrib modules or themes to be included in the xss security test w/o having to keep modifying a central golden file." This reverts commit 4fe5801c885088e5e6c11b8a20a561415941b864.
2009-11-18Simplify the maintenance of the xss golden file by having each module ↵Tim Almdal
contibute its own golden file to a consolidated one. This will make it easier for -contrib modules or themes to be included in the xss security test w/o having to keep modifying a central golden file.
2009-11-09Since the activate_sidebar_blocks mentod is called from the module::install, ↵Tim Almdal
we don't need to add the block in the image_block_installer::install method as well> Fixes ticket 874.
2009-10-28Normalize capitalization ticket #596Tim Almdal
2009-10-04Renamed most, if not all css selectors from gName to g-name. Moved a few ↵Chad Kieffer
shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features.
2009-09-30Correct version numbers for image_block and info modules, they inadvertently ↵Tim Almdal
got set to 2, they should be 1
2009-09-30Merge branch 'talmdal_dev' of git@github.com:gallery/gallery3 into talmdal_devTim Almdal
Conflicts: modules/gallery/helpers/block_manager.php modules/gallery/libraries/Theme_View.php modules/image_block/helpers/image_block_block.php modules/image_block/helpers/image_block_theme.php modules/info/helpers/info_block.php modules/info/helpers/info_installer.php
2009-09-30Use the block_manager to manage site sidebar panels. Fixes ticket #110.Tim Almdal
* Extend block_manager to handle sidebar blocks. get_available has become get_available_admin_blocks, get_list becomes get_admin_list. * Create new functions get_available_site_blocks which will look for gallery_block get_available_site_blocks. * Refactor sidebar_blocks into a separate function and then call block_manager::get_html(site.sidebar). Convert image_block to use block management instead of theme::sidebar_blocks * Change the block_manager api so that the theme is passed into the get method. convert info to the new sidebar block approach * Convert the user module to use the new sidebar block structure. remove the installers for info and image_block modules. * Convert tag and rss modules to the new sidebar framework. reset the version number to 1 for info and image_block modules. * Change the get_html method to ignore empty blocks and change the individual handlers to return an empty string if no block is generated * Add a warning message if no sidebar blocks are active and provide a link to the admin page that configures the sidebar.
2009-09-29change the block_manager api so that the theme is passed into the get ↵Tim Almdal
method. convert info to the new sidebar block approach
2009-09-29Refactor sidebar_blocks into a separate function and then call ↵Tim Almdal
block_manager::get_html(site.sidebar). Convert image_block to use block management instead of theme::sidebar_blocks
2009-09-05Change the module installer so that you don't need to provide your ownBharat Mediratta
install() function if all you're going to do is to set the version of the module from module.info into the database. This means that for some simple modules, you don't need an install.php file at all.
2009-07-13Add quotes around all values that contain spaces in them, and add aBharat Mediratta
test to make sure that we continue to do so. This makes sure that we don't have problems with 5.3 which treats the literal "on" as a boolean.
2009-06-23Refactor the install/upgrade code to be more flexible.Bharat Mediratta
Add xxx_installer::upgrade($version) method so that upgrade stanzas are separate from install stanzas. In the old code, to do an upgrade meant that you had to re-evolve everything from the initial install because we'd step through each version's changes. But what we really want is for the initial install to start off in the perfect initial state, and the upgrades to do the work behind the scenes. So now the install() function gets things set up properly the first time, and the upgrade() function does any work to catch you up to the latest code. See gallery_installer.php for a good example.
2009-06-06corrected misprintunostar
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
2009-06-02Fix for ticket #320Tim Almdal
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-02-271) Change the image block so it has the correct url in the anchor tag.Tim Almdal
2) Change the wrapping class to gImageBlock instead of gImage so the quick kinks aren't enabled
2009-02-27Remove unneeded code.Bharat Mediratta
2009-02-27Optimize the code by ditching the count query; we don't need it.Bharat Mediratta
2009-02-26Update to image_block based on bharat's feedbackTim Almdal
1) move the rand_key column into core 2) don't do a max rand, just try to a get a random number less than the current random number if that doesn't successd look the other way