Commit graph

1312 commits

Author SHA1 Message Date
rvelices
e693ef60cd feature 2548 multisize - ability to choose displayed size on index page
-added some logs on i.php (configurable) to measure the perf

git-svn-id: http://piwigo.org/svn/trunk@12908 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-17 06:09:32 +00:00
plegall
b18e3c8a80 feature 2548 (multiple size): better delete derivatives in add_uploaded_file
function when performing an update of a photo.


git-svn-id: http://piwigo.org/svn/trunk@12907 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-17 00:17:39 +00:00
plegall
f7421e5789 feature 2548 (multiple sizes): adapt the web API method pwg.images.add (used
by pLoader, Digikam, Lightroom, iPhoto), pwg.images.checkFiles (pLoader only).

The "resize" parameter was removed for pwg.images.add since this behavior
becomes the default behavior in Piwigo 2.4.

Just like pwg.images.addSimple, pwg.images.add now uses the add_uploaded_file
function (next step is to merge pwg.images.add and pwg.images.addSimple)


git-svn-id: http://piwigo.org/svn/trunk@12906 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-17 00:11:14 +00:00
mistic100
e673454e05 feaure:2379 option to display user comments sorted new>old instead of old>new
git-svn-id: http://piwigo.org/svn/trunk@12894 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-15 17:05:30 +00:00
mistic100
c501688dbc feature:2549 Allow to disable comments for everybody
git-svn-id: http://piwigo.org/svn/trunk@12887 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-14 22:29:10 +00:00
rvelices
56452f8711 revert css name change from previous commit
git-svn-id: http://piwigo.org/svn/trunk@12881 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-14 10:21:10 +00:00
rvelices
6a115001ba bug 2553 hide menubar/register on indentification page if gallery is locked or guest_access is false
git-svn-id: http://piwigo.org/svn/trunk@12878 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-12 20:50:46 +00:00
rvelices
b1ebb7c785 bug 2554 php warning PHPWG_URL is not defined in page_tail.inc.php
git-svn-id: http://piwigo.org/svn/trunk@12875 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-11 20:52:17 +00:00
rvelices
511cbb1c98 bug 2544 upgrade css minifier to version 3.0.1 (Embedded cssmin is imcompatible with font-face syntax)
git-svn-id: http://piwigo.org/svn/trunk@12874 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-11 05:34:41 +00:00
patdenice
758f9dd195 feature:2552
Apply trigger render_element_description for thumbnail title (for picture description)

git-svn-id: http://piwigo.org/svn/trunk@12870 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-10 15:26:42 +00:00
rvelices
225b45f2b8 feature 2548 multisize - added a page to build missing derivatives
- browser driven, chained ws calls to retrieve urls, visual feedback of progress through slideshow

git-svn-id: http://piwigo.org/svn/trunk@12865 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-08 19:25:52 +00:00
rvelices
34717c1391 feature 2548 multisize - improved picture.php display (original...) + code cleanup
git-svn-id: http://piwigo.org/svn/trunk@12855 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-05 22:06:21 +00:00
rvelices
e64ab974df feature 2548 multisize - sharpen + watermarks (partially implemented / no test with imagick extension)
git-svn-id: http://piwigo.org/svn/trunk@12851 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-05 21:35:25 +00:00
rvelices
d0b5df605c feature 2548 multisize
- rewrote local site sync + metadata sync

git-svn-id: http://piwigo.org/svn/trunk@12831 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-03 20:21:13 +00:00
rvelices
95a78ca0d3 feature 2541 multisize
- admin GUI for choosing derivative parameters + persistence

git-svn-id: http://piwigo.org/svn/trunk@12820 68402e56-0260-453c-a942-63ccdbb3a9ee
2012-01-01 21:10:43 +00:00
plegall
0184ddb3b9 merge r12809 from branch 2.3 to trunk
bug 2543 fixed: the representative_picture_id was missing in the SQL query for pwg.categories.getList


git-svn-id: http://piwigo.org/svn/trunk@12810 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-30 21:25:32 +00:00
rvelices
1e1b71c6f6 fetaure 2542 replace $conf['local_data_dir'] with $conf['data_location'] and move combined files and image derivatives from local to _data
git-svn-id: http://piwigo.org/svn/trunk@12802 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-29 05:48:16 +00:00
plegall
bf24a3278c feature 2541: fix bug on PHPWG_ROOT_PATH and includes
git-svn-id: http://piwigo.org/svn/trunk@12798 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-27 21:36:39 +00:00
rvelices
e42f791f52 feature 2541 multisize
- nicer presentation on picture.php
- added a maintenance purge derivatives action

git-svn-id: http://piwigo.org/svn/trunk@12797 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-27 20:26:49 +00:00
rvelices
753f58d6a9 feature 2541 multisize
- core implementation + usage on most public/admin pages
- still to do: sync process, upload, gui/persistence for size parameters, migration script, center of interest ...

git-svn-id: http://piwigo.org/svn/trunk@12796 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-27 05:26:44 +00:00
rvelices
d70a18d521 simplification of 'startup phase' - multisite.inc.php is not required anymore / database.inc.php is included after config.
git-svn-id: http://piwigo.org/svn/trunk@12768 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-19 20:25:42 +00:00
mistic100
4bbd5f6649 feature:2538 transmits messages after comment edition trough SESSION (no more ugly url displayed, avoid some minor bugs)
git-svn-id: http://piwigo.org/svn/trunk@12767 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-19 17:08:49 +00:00
mistic100
ca230a6f53 feature:2538 Make a unified messages management
use only $page['infos'] and $page['errors'] vars and and necessary template to all main pages

git-svn-id: http://piwigo.org/svn/trunk@12764 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-18 21:46:24 +00:00
plegall
b581ba81b7 merge r12760 from branch 2.3 to trunk
bug 2502 fixed: better handling of non-latin tags and multilanguage tags on
tags.php with mode letter.

We can't rely on url_name because it always start with "_" when the tag looks
like "[lang...". Instead we compute a str2url on the name, but once it has been
rendered by Extended Description. To avoid useless computations, I have added a
cache on the tag_alpha_compare function. Tested on a 175 tags set, speed is
good.



git-svn-id: http://piwigo.org/svn/trunk@12761 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-17 22:52:19 +00:00
plegall
1c84017d23 better get_boolean function: able to detect "0" as false, (bool)false as false
and (int)0 as false.


git-svn-id: http://piwigo.org/svn/trunk@12752 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-16 20:57:55 +00:00
patdenice
1ea0155ad7 bug:2535
Image is not cropped and ressized if requested size is bigger than image size.

git-svn-id: http://piwigo.org/svn/trunk@12749 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-16 17:00:06 +00:00
plegall
d827eacab4 merge r12747 from branch 2.3 to trunk
bug 2534 fixed: clean (as clean as possible with MySQL+MyISAM) handle of
concurrency on user cache refresh. No more error when regenerating several
thumbnails at once.



git-svn-id: http://piwigo.org/svn/trunk@12748 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-16 13:53:24 +00:00
plegall
8796a85ab7 merge r12738 from branch 2.3 to trunk
feature 2489 updated: photos added by synchronization can't update their "file" field



git-svn-id: http://piwigo.org/svn/trunk@12739 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-16 09:10:30 +00:00
plegall
5bdba6b0bc merge r12729 from branch 2.3 to trunk
feature 2489 added: ability to update "file" info in pwg.images.setInfo


git-svn-id: http://piwigo.org/svn/trunk@12730 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-13 15:21:36 +00:00
plegall
b129ee5c13 merge r12727 from branch 2.3 to trunk
feature 2532 added: pwg.images.add returns image_id (+url)


git-svn-id: http://piwigo.org/svn/trunk@12728 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-13 15:00:32 +00:00
plegall
5338ef80ef merge r12725 from branch 2.3 to trunk
feature 2533 added: ability to deactivate uniqueness check on pwg.images.add


git-svn-id: http://piwigo.org/svn/trunk@12726 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-13 14:42:54 +00:00
plegall
4bc17c2e40 merge r12722 from branch 2.3 into trunk
merge r12723 from branch 2.3 into trunk

feature 2531 added: pwg.images.add is able to generate web size + thumbnail
(remote client needs to set "resize" option to something else than 0). When
the "resize" is On, only the "file" must be send with pwg.images.addChunk.

Small improvement compared to code implemented in branch 2.3 : use of
single_insert when resize is Off, single algorithm to update $info_colums (resize On/Off)


git-svn-id: http://piwigo.org/svn/trunk@12724 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-12-13 14:01:10 +00:00
rvelices
8ce9bc9d39 removed unused css rules
git-svn-id: http://piwigo.org/svn/trunk@12670 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-29 04:44:13 +00:00
rvelices
45dcf686ee bug 2516: compiled_template_cache_language option does not work properly (again)
git-svn-id: http://piwigo.org/svn/trunk@12656 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-22 21:18:15 +00:00
plegall
f6a6701fb7 merge r12629 from branch 2.3 to trunk
bug 2506 fixed: Batch Manager does not take permissions into account when
filtering on tags

feature 2507 added: Batch Manager can filter on "all tags" or "any tag"



git-svn-id: http://piwigo.org/svn/trunk@12630 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-15 11:58:10 +00:00
rvelices
2f87684e09 feature 2486: Add an admin view for rates by user
git-svn-id: http://piwigo.org/svn/trunk@12624 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-14 20:10:37 +00:00
mistic100
2650003a54 feature 2500: make 'validate_user_comment' and 'delete_user_comment' working with array
git-svn-id: http://piwigo.org/svn/trunk@12596 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-11 10:19:44 +00:00
mistic100
5e8423c38b feature:2495 add triggers for comment validation and deletion
git-svn-id: http://piwigo.org/svn/trunk@12556 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-05 22:56:13 +00:00
patdenice
e859d5ac6d feature:2322
feature:2493
Add a trigger for multi language tags in quick search and url

git-svn-id: http://piwigo.org/svn/trunk@12553 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-05 16:15:58 +00:00
plegall
a808d23130 merge r12545 from branch 2.3 to trunk
feature 2397 added: add details about the album thumbnail for extra templates.

Algorithm changed for FILE_HAS_HD : we don't care about the $user['enabled_high']

Fields added in category_default : high_filesize, high_width, high_height, rating_score

We send the same fields on category_cats but for album thumbnail only.



git-svn-id: http://piwigo.org/svn/trunk@12546 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-04 23:54:12 +00:00
plegall
ee79c8516a merge r12539 from branch 2.3 to trunk
feature 2352: a bug had been introduced by r12537, the piwigo_user_cache_categories.count_categories
was missing (the list of albums was not refreshing correctly on the upload form)



git-svn-id: http://piwigo.org/svn/trunk@12544 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-04 21:27:18 +00:00
plegall
7b1964c511 merge r12537 from branch 2.3 to trunk
feature 2352 added: pwg.categories.getList now returns a tn_url parameter.
This is the album thumbnail.

Warning: if the API method is called with $params['public'], the album
thumbnail may be not accurate. The thumbnail can be viewed by the connected
user, but maybe not by the guest. Changing the filtering method would be too
complicated for now. We will simply avoid to persist the
user_representative_picture_id in the database if $params['public']



git-svn-id: http://piwigo.org/svn/trunk@12543 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-04 21:22:55 +00:00
plegall
2c33148c60 merge r12540 from branch 2.3 to trunk
bug 2492 fixed: no need to transmit ['hit'] to get_thumbnail_title, this parameter becomes optional to avoid errors in plugins


git-svn-id: http://piwigo.org/svn/trunk@12541 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-11-04 10:13:00 +00:00
rvelices
ef9766a291 feature 2477: Remove unused CSS / html elements from version 2.3
git-svn-id: http://piwigo.org/svn/trunk@12479 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-17 20:51:49 +00:00
patdenice
c6406762f0 feature:2473
Apply trigger render_element_description for thumbnail title

git-svn-id: http://piwigo.org/svn/trunk@12451 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-15 15:27:33 +00:00
rvelices
1cd0cda111 bug 2469 compiled_template_cache_language option does not work properly on some language keys because of double escaping
git-svn-id: http://piwigo.org/svn/trunk@12429 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-13 18:18:05 +00:00
rvelices
143637d30e bug 2469 compiled_template_cache_language option does not work properly on some language keys because of double escaping
git-svn-id: http://piwigo.org/svn/trunk@12427 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-13 18:00:53 +00:00
rvelices
0320e1f874 avoid division by 0 warning when there are no rates in the database
git-svn-id: http://piwigo.org/svn/trunk@12412 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-11 20:09:08 +00:00
rvelices
2967d4d11b moved up one line of code added in 2.3 (plugin compatibility)
git-svn-id: http://piwigo.org/svn/trunk@12391 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-08 20:01:20 +00:00
plegall
7ad0971cf7 next release on trunk is 2.4.0beta1
git-svn-id: http://piwigo.org/svn/trunk@12346 68402e56-0260-453c-a942-63ccdbb3a9ee
2011-10-04 13:46:45 +00:00