Commit Graph

36 Commits

Author SHA1 Message Date
Bharat Mediratta
c682ba86bd Make sure that $item exists in site_menu(). 2010-05-16 22:37:10 -07:00
ckieffer
fcc446bf00 Move print with digibug to the site menu. 2010-05-08 13:54:27 -06:00
Bharat Mediratta
c3c2b45280 Update the copyright to 2010. It's only 3 months into the year :-) 2010-03-03 10:15:34 -08:00
Chad Kieffer
3e6ba7acc3 Renamed most, if not all css selectors from gName to g-name. Moved a few shared images from wind to lib. Deleted unused images in the admin_wind. This will likely break a few ajax features. 2009-10-04 00:27:22 -06:00
Bharat Mediratta
4828db003f Remove 'ENGINE=InnoDB' specification from tables that we create. Use
the system's default table specification.  Fixes ticket #597.
2009-08-27 15:47:54 -07:00
Bharat Mediratta
f7a23e0a9c Fix up context menus a bit.
- Update digibug_event::context_menu() to take the actual item
- Change gallery::context_menu() to not require the page_type as an argument
2009-08-09 23:08:35 -07:00
Chad Kieffer
85afa537df Add jquery ui print icon class to menu 2009-08-09 13:56:39 -06:00
Bharat Mediratta
1c4e1344c6 Update photo_menu() and context_menu() to work with recent menu changes. 2009-08-09 12:14:17 -07:00
Chad Kieffer
6357f3332b Added basic context menu affects and styles. Simplified some of the action labels in the menu. 2009-08-08 01:14:22 -06:00
Bharat Mediratta
52147cf6f8 Combine the quick menu and the thumb menu into a single menu called
the "context" menu.

This new context menu is generated using the typical event processing
system, like our other menus.  The specialized quick CSS and JS is now
gone, replaced by our generic menu handling code.  It's all rolled
together currently using the thumb_menu UI for easy packaging.  All
the CSS and JS is updated.

NOTE: the non-dialog links (rotate, album_cover) have a broken UI
because they return JSON which the quick.js code handled specially,
but we don't handle properly now.  I need to fix this.
2009-08-03 21:45:54 -07:00
Bharat Mediratta
1e90e40d3a Use events to generate menus, instead of having xxx_menu helpers.
This is the first step towards having a simple, lightweight and
unified API for module interaction.
2009-07-28 13:47:22 -07:00
Tim Almdal
7c2cea01a5 Fix for ticket #502
This patch allows users with only view permission to request fullsize
prints using Digibug.  There is now a Digibug config file that contains
the IP ranges of the Digibug servers.  Any request for the full size
image via the print proxy must come from within the ranges in the config
file.

The reason for the "if (!Test_Mode) {..." is that the print proxy makes a
call to Kohana::close_buffers, which closes all the output buffers and then
we see the image download on the console which messes up the test output.
2009-07-23 07:02:10 -07:00
Bharat Mediratta
dbeadc1407 Use the Kohana cascading filesystem to locate resources loaded by the
theme.  Because the theme comes first, this means that themes can
override any module resources, at the cost that we no longer have
namespacing for JS and CSS files.

The only file getting used outside of this model is
themes/default/screen.css which is used in the admin theme.  I fixed
that by copying screen.css into admin_default and renaming its
screen.css to admin_screen.css.  I also copied over all the images
that it was referencing.

Fixes tickets #48 and #539.

Theme API changes:
- theme_script(), theme_url() and theme_css() are no longer needed
- script(), url() and css() now refer to the first matching asset in
  the module load path, where gallery3/lib is at the end of the path
2009-07-22 14:27:57 -07:00
Bharat Mediratta
12796ec2ca Create a new [options] submenu under the thumb menu, and move the
Digibug print button into it.  Right now, it doesn't display properly.
2009-07-10 08:20:00 -07:00
Tim Almdal
200b78ee59 Revert the change that removed adding the click handler for the digibug print
functionality.  Just return false when using javascript:digibug_popup was not
enough from having the browser switch pages and show a page with the word false.
Using an event handler allows us to call event.preventDefault which cancels the
page switch.
2009-06-30 20:32:59 -07:00
Tim Almdal
5e83ebd6d0 Use $theme->script() method to render module javascript files 2009-06-28 16:50:55 -07:00
Bharat Mediratta
aad0dd357f Create a new thumb_menu() and convert Digibug over to use it.
1) Eliminate digibug_album.html

2) Get rid of the $(document).ready() in digibug.js and rename popUp() to
   digibug_popup() then just make direct calls to digibug_popup() in the
   menu urls.
2009-06-27 16:29:09 -07:00
Bharat Mediratta
2fbc03437a Digibug simplification cleanup. Upgrade digibug module to version 2.
1) Simplify the admin settings page to what most of our users
   want. Eliminate basic_ and default_ ids.  We just have company_id
   and default_id.  Advanced users can use advanced settings for now.

2) Fix security in print_photos (didn't get it right in my last commit)

3) Use the regular thumb and full urls if the images are publicly
   available to reduce load on the proxy.

4) Simplify proxy expiration code.

5) Eliminate all specialized styles from the admin theme.
2009-06-27 15:55:47 -07:00
Bharat Mediratta
f98b7dc631 Require view_full to print photos. 2009-06-27 14:43:40 -07:00
Bharat Mediratta
6a8dc91f9f Remove empty upgrade(). 2009-06-27 14:35:53 -07:00
Bharat Mediratta
3ab6f2ed4b Remove unnecessary curly braces. 2009-06-27 14:35:16 -07:00
Tim Almdal
eee8dbe511 No longer need to set the digibug mode in the installer. 2009-06-25 21:53:47 -07:00
Tim Almdal
e2e1aa0683 1) Rename the basic_company_id and basic_event_id to default_*_id
2) Removed the tabs on the digibug admin page word count is now at 35.
3) Added a default link which resets the event and company id's to gallery's ids
2009-06-25 21:41:54 -07:00
Tim Almdal
5d4d87e957 Remove the digibug maintenance task. Expired imges will be removed when the
print_proxy is run.
2009-06-25 19:58:14 -07:00
Tim Almdal
4d191b5e92 Refactor the digibug installer to the new structure of install and upgrade methods 2009-06-25 18:35:02 -07:00
Tim Almdal
4502a13a5b 1) rename the model proxy to digibug proxy
2) corresponding table name change to digibug_proxies
3) change the generate of a unique id to md5(rand())
3) Remove the helper function as digibug::uuid is no longer required.
2009-06-25 08:47:16 -07:00
Tim Almdal
d9e4ad79bb 1) Move the digibug css in the default and admin_default themes
2) Remove most of the marketing cruft on the admin pages
3) Change the name of the admin settings to just Digibug
4) Remove the "switch on mouseover" approach
2009-06-25 08:14:34 -07:00
Tim Almdal
292d216f7c Implement printing support on the photo page. I've used an icon that doesn't
quite match the theme temporarily.  I'm hoping to have a matching icon soon.
2009-06-24 18:02:36 -07:00
Tim Almdal
40e27e128e Create a maintenance task that allows the administrator to remove any proxy requests
that are still active after 10 days.  Digibug requires that the image be available
for 5 days, so we'll give them an extra 5 days.

Also correct a few issues with the protocol.
2009-06-24 13:11:53 -07:00
Tim Almdal
0062f8a24a Add a timestamp column to the proxies table. 2009-06-24 05:47:58 -07:00
Tim Almdal
231ad4f329 This implements the Digibug printing. When a a print request is made the digibug shopping cart is opened in a new
window.  When the cart is emptied, the window is closed. Users can close the window by pressing the continue shopping
button
2009-06-23 22:13:28 -07:00
Tim Almdal
8f443cef3e This change implements the print_proxy method. This method allows a 1 time
security bypass for the remote print processor to retrieve the fullsize image.
2009-06-23 06:06:33 -07:00
Tim Almdal
58d5624e40 This commit moves a little further along the path:
1) moves the print button from the quick pane to thumb_bottom
2) Creates an entry into the proxy table
2009-06-22 21:51:22 -07:00
Tim Almdal
05f8659a7f Fix preamble so tests pass 2009-06-22 06:03:55 -07:00
Tim Almdal
f981484a80 Add a digibug printing button to the quick pane 2009-06-22 05:52:47 -07:00
Tim Almdal
39cf3c2b04 The start of the digibug printing module. The first cut at the administration
panels.  <Caution:> This is still a work in progress.
2009-06-21 08:52:26 -07:00