Commit graph

215 commits

Author SHA1 Message Date
Linty
3826f355ae issue #2132 update ws_categories_getAdminList
add new params: cat_id and recursive
2024-07-31 11:36:43 +02:00
HWFord
6fe1d7db65 fixes #2193 [search] add 5 new widgets
add ratings, ratios, filesize, width and height widgets
- in functions_search add clauses according to each new filter
- in ws_functions add new api parameters
- in index.php add queries to get data for filters
- in admin.lang add missing translations for filters
- in css add basic style to work for modus newspaper
- in js add script for new filters
- in tpl combine script + CSS for double slider & jquery Ui. Add slider conf, template for new widgets

TODO
- adapt css to different themes and skins
2024-07-25 16:11:07 +02:00
plegall
6e6a74c348 fixes #2173 allow comma separated list for image_id in pwg.images.syncMetadata 2024-07-09 15:42:31 +02:00
Linty
c8d7503d4e related to #2165 new add user popin
- add field for add user
- in the `pwg.users.add` method, the params `send_password_by_mail` does nothing anymore. Because we no longer want to send passwords in clear text.
- in the `pwg.users.add` add a new `auto_password` parameter to generate a random password when a user is created
- use this parameter (`auto_password`) in user_list.js
- change mail content et password page on first login
2024-06-28 18:56:28 +02:00
Linty
27cd5cde9e related to #2158 update user and guest pop in
- Implementation of a new modal for modifying a user or guest
- Addition of a function to allow plugins to add a tab to the new user modal
- Fix bug: "badger-number" is updated when a user is added or deleted
- Fix bug: When the user who is editing has permissions to delete the user he is modifying, the delete icon is now displayed correctly
- Added a new api method for modifying the main user and generating a link to reset a password
- Passed $conf[‘webmaster_id’] in database configuration
2024-05-31 18:12:52 +02:00
Linty
4d26c62470 issue #2132 album selector hierarchy added to search page 2024-03-08 15:55:43 +01:00
Linty
4adf36f2e5 fixes #2120 add new return value to 'pwg.categories.move' method API
Added a new return value for API method 'pwg.categories.move': updated_cats . This value returns an array of albums whose values have been modified after an album has been moved (for the moment, the data is the id and the number of photos in its sub-albums).
2024-02-19 17:06:59 +01:00
Linty
1629cd9386 issue #2106 added details to search history
API method modification `ws_history_search`: Added a new property in API return `SEARCH_DETAILS` only for searches.
These details are displayed on the `History` page in the `Search` section.
2024-02-02 11:50:56 +01:00
plegall
08124d10f7 fixes #2100 do not send save_visits to PiwigoRemoteSync 2024-01-31 11:14:27 +01:00
Willy "Linty
fbae0b735c fixes #2071 sorts users by date and username 2023-12-18 18:05:09 +01:00
plegall
09d30129cd fixes #2050 provide a default user_name for pwg.history.search 2023-11-27 16:02:01 +01:00
plegall
eb0759ef12 fixes #2046 avoid strip_tags if pwg_token is provided
* pwg.categories.setInfo
* pwg.categories.add
* pwg.images.setInfo
2023-11-23 19:46:46 +01:00
Willy "Linty
a267cc022b Issue #2035 Declare new parameters
We change min and max format date, now we expect `YYYY` or `YYYY-mm`or `YYYY-mm-dd`
2023-11-10 14:40:08 +01:00
plegall
4c734bedd8 issue #1991 make sure requested albums exist on pwg.categories.getImages 2023-10-29 14:48:37 +01:00
Damien Sorel
85db5eb9d1 Fix warning in pwg.categories.php
"Undefined variable: total_images" message when request category does not exist
2023-10-29 14:25:43 +01:00
plegall
c904d536a5 fixes #2025 add author field in search by words filter 2023-10-18 18:19:30 +02:00
plegall
14e8ba664b fixes #1735 new API method pwg.images.setCategory to associate/dissociate/move a list of images 2023-10-11 16:58:14 +02:00
plegall
b5c9ca4819 issue #2016 save search in history 2023-10-02 12:31:33 +02:00
plegall
fdd2177e78 fixes #2007 no longer possible to update a filteredSearch
* Piwigo will create a new search for any modification in the filters
* we keep the "origin" of the new search with piwigo_search.forked_from field
2023-09-27 16:30:05 +02:00
plegall
e0a82909fa fixes #1968 new values for date_posted filter
* add 24h, 3m and yNNNN (year 2023 or 2022...)
* remove 1y
* provide labels from backend instead of managing it in javascript
2023-08-26 12:55:12 +02:00
plegall
ab111cdbe2 fixes #1967 POST/GET input are already escaped 2023-08-23 18:56:08 +02:00
plegall
b787dfd291 issue #1953 improved privacy on searches and associate each search to its creator
* remove temporary functions ws_gallery_getSearch and ws_gallery_updateSearch
* split get_search_array into sub-functions to use them in web API
* use search_uuid as search_id instead of the numeric search.id : better privacy
* only the creator of the search can update it
* if a visitors tries to open the search of another user, it (the search) gets forked into a new search
2023-08-09 19:18:30 +02:00
plegall
d92986a13d fixes #1920 new output parameter save_visits for pwg.session.getStatus 2023-08-03 11:19:44 +02:00
plegall
7d73935323 issue #1917 add parameter is_download to pwg.history.log 2023-08-03 10:52:20 +02:00
MatthieuLP
b5dc413b40 related to #1931 & #1946 Added Posted date filter 2023-07-25 16:47:25 +02:00
plegall
87c4fad23e issue #1946 implement backend for search by date_posted 2023-07-24 16:49:53 +02:00
plegall
2d46924bf6 issue #1941 search, implement filter by file type 2023-07-10 15:17:46 +02:00
plegall
382884836a issue #916 and issue #1917 increment images.hit when calling pwg.history.log 2023-07-10 14:49:36 +02:00
Teatek
639c9d96fa
Issue #917 album photo sort order (#955)
* returns an image_order for API methods pwg.categories.getList and pwg.categories.getAdminList
2023-07-05 11:06:31 +02:00
plegall
c469f5142c fixes #1937 quick search redirects to normal search 2023-07-03 15:22:52 +02:00
plegall
fdabd4a988 fixes #1929 add parameter search on pwg.categories.getList (and use it) 2023-06-27 14:41:28 +02:00
Pierrick Le Gall
60363ecd42
Issue #1869 multi-criteria search (#1927)
* First implementation of the new multi-criteria search. It replaces the old search.php form.
* Displays live search criteria above search results. Each change reloads the list of results (displayed as thumbnails).
* New API method pwg.images.filteredSearch.update called in AJAX to live change the filters.
* New kind of filter: added_by
2023-06-21 16:11:08 +02:00
plegall
0649ad3245 fixes #1924 protect API user input from SQL injections 2023-05-29 12:25:03 +02:00
plegall
b9ddcf17f1 fixes #1871 move the retrieve of the number of queried rows
The FOUND_ROWS() must be performed right after the SQL_CALC_FOUND_ROWS but commit 4d81d28eca had added some new SQL queries in between.
2023-02-21 15:17:24 +01:00
sjsjsjsjsjsjsjsjsj
29b83b1cae fixes #1786 export to piwigo broken with php 8.1 2023-02-11 18:09:47 +01:00
plegall
0b9e177782 issue #1852 also forbid extension deletion 2023-01-25 15:18:45 +01:00
plegall
f4de473db8 issue #1852 ability to disable core/extensions updates 2023-01-21 11:54:51 +01:00
MatthieuLP
9bccc8588f related to #1704 Better 'visible' attribute implementation in API
* fixed SQL error
* Use correct function to save 'visible' attribute
* Underlined the 'Unlock it' button on the orange alert
2023-01-09 14:49:07 +01:00
MatthieuLP
4e899b5eae related to #1704 Added alert is album is locked
* Corrected french sentences spelled wrong
* Added max length for album names in breadcrumbs
* Added attribute 'visible' in categories.setInfos
* Can now unlock an album by clicking on the alert
* Switch used to lock an album works properly now
2023-01-04 18:06:10 +01:00
Matthieu Leproux
f4a4473f37 Issue #1704 New album edition page
* Front end development according to the mockup
* Save changes in ajax
* Implement the delete album behaviour with Jconfirm in ajax
* Adding a new Css component : infos (factorized in the tag page)
* Add a new general admin template variable : ADMIN_PAGE_OBJECT_ID (adding the id of an object on the page)
* Modify the pwg.categories.setInfo api method to fit the need of the album edition pages
* Slightly change the method time_since, add a parameter to display only the greates time unit
* Popin to change parent album, and changed it as a re-usable component
* Dropdown to replace the checkbox for comments
2023-01-02 16:24:41 +01:00
plegall
bb69269239 fixes #1841 register system activities 2022-12-24 17:36:35 +01:00
plegall
b08fd91edc fixes #1839 forget no usernames, not only performed_by 2022-12-21 19:02:52 +01:00
plegall
3b36ff0a91 fixes #1838 ability to hide connections from activities with a config setting 2022-12-21 17:18:43 +01:00
Matthieu Leproux
099f4c566d related to #1802 removed useless line 2022-11-23 11:48:11 +01:00
Matthieu Leproux
32ea1aef53 fixed #1802 fixed double escape for user creation, album creation and comments 2022-11-22 16:01:43 +01:00
Thibautg16
555133294d fix syntax error
syntax error, unexpected ')' in include/ws_functions/pwg.php
2022-10-17 12:56:36 +02:00
Matthieu Leproux
f63e6a5c32 related to #1743 better detail section with tiptip and icons and link to cat in gallery 2022-10-10 15:46:26 +02:00
Matthieu Leproux
a3b5f26ea0 related to #1703 Added the list of params for history search API method. 2022-10-04 16:57:38 +02:00
Matthieu Leproux
38105aff23 fix #1740 better UI for edit btn when the image is deleted 2022-10-03 14:43:31 +02:00
Matthieu Leproux
f4bb3894da fixed #1711 removing start date gives coherent results now 2022-09-28 12:52:39 +02:00