Commit Graph

2308 Commits

Author SHA1 Message Date
plegall
685cc00d6a bug fixed: array_intersect preserves keys and it is a problem 2024-09-10 17:22:14 +02:00
Linty
2905623027 fixes #2214 initialize total_count before using it 2024-09-10 14:55:28 +02:00
plegall
5c080bf379 [search] avoid division by zero 2024-09-09 12:13:32 +02:00
plegall
a8a5e515a2 next version is 15.0.0beta3 2024-09-05 11:23:44 +02:00
plegall
d8859f549a move search filters generation in a dedicated file to include 2024-09-05 11:18:49 +02:00
HWFord
b3151e0129 fixes #2211 integrate new redesign for date posted filter
filter on date_posted custom values (specific years, months or days) along side last 7, 30 days, 3 and 6 months
following redesign by alice
2024-09-04 11:30:44 +02:00
plegall
b6789d4de9 fixes #2218 avoid search engines to index search pages 2024-09-03 21:05:57 +02:00
Linty
40ca83d382 fixes #2221 use backticks instead of quotes
...because that's what backticks are for.
2024-09-03 16:19:06 +02:00
Linty
1de27871b3 fixes #2221 encase rank in quotes 2024-09-03 16:02:16 +02:00
Linty
3133552405 fixes #2220 change scope of function get_resize_result
also changed the required php version to 7.1.0
2024-09-02 18:23:52 +02:00
mistic100
ce3214df1d Fix check "activate_comments" config in WS 2024-08-30 21:55:46 +02:00
mistic100
3f07808d7f Fix "total_count" type on some WS methods 2024-08-30 20:24:42 +02:00
plegall
8fc3c9cd0e issue #2114 calculate missing md5sum only once 2024-08-29 10:44:41 +02:00
marsooooo
12ca607727 issue #2164 updated & fixed bugs on batch manager
Added dark mode for unit mode
Templatized filter block for both unit and global mode
Optimized JS functions and added extensibility for unit mode
Modified images.setInfo method so unit mode could save orphan images
Fixed a bug where php would break if filter selection was empty in unit mode
2024-08-26 14:14:57 +02:00
plegall
08ae0304bb (cp 545e81e) Fix for #2114: Check for photos missing md5sum before trying to update md5sums 2024-08-21 15:20:05 +02:00
plegall
3ee277f8e0 fixes #171 ability to filter user list on a specific user 2024-08-21 12:11:27 +02:00
plegall
3bb697c017 [search] bug fixed when a filter intersection is empty 2024-08-20 15:55:00 +02:00
plegall
542910cb6d bug fixed in get_available_tags: do not always use persistent_cache
... also optimize tag name fetching
2024-08-20 15:47:32 +02:00
plegall
0cf2a57357 [search] incoherent search results Vs search filters 2024-08-20 14:38:40 +02:00
plegall
067010db7b issue #2202 optimize filters construction with persistent_cache 2024-08-14 11:32:35 +02:00
plegall
dd6d1a91d7 issue #2202 factorize (and use cache) to build filters 2024-08-07 22:15:13 +02:00
plegall
adf45edb2d compatiblity PHP 7 (array_intersect need at least 2 parameters)x 2024-08-06 17:36:17 +02:00
plegall
81bf18cbdb fixes #2202 smarter filters for gallery search
To be able to compute values of filter "added_by" by only taking into account
results of other filters, we need to distinct results filter by filter. So
instead of generating a single complex SQL query, we use one (or maybe more)
SQL query for each filter in action.

First commit for this new way to perform a regular search. To be improved
(many duplication of codes for now)
2024-08-06 17:04:31 +02:00
plegall
8c4b3fb7db fixes #2198 smarter way to deal with filesize bounds 2024-08-02 17:47:45 +02:00
plegall
e7332a144c next version is 15.0.0beta2 2024-07-31 16:07:27 +02:00
Linty
3826f355ae issue #2132 update ws_categories_getAdminList
add new params: cat_id and recursive
2024-07-31 11:36:43 +02:00
plegall
e5e84e07e6 issue #2194 change data organization 2024-07-30 23:05:03 +02:00
plegall
db08d32d6f fixes #2194 more details about files in send_piwigo_infos
new function to handle unique_exec (can be used in other places as well)
2024-07-29 23:39:40 +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
HWFord
3b376edfb1 related #2147 add sans serif
in some themes we don't have open sans so use a sans serif font
2024-07-09 11:42:34 +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
HWFord
983d943548 issue #2170 update picture tpl to embed pdf reader
Add default config pdf_viewer_filesize_threshold
Add function to get number of PDF pages
Add translations
update picture.php to send pdf filesize threshold and nb page to tpl
update picture.tpl to add number of pages for PDF
picture_content.tpl update for new config name and add translation functions. use embed for pdf if file ext = pdf
2024-06-20 11:56:19 +02:00
plegall
138f23d32f issue #1760 add infos in logger with wrong GPS coordinates 2024-06-19 15:36:04 +02:00
Hardy
235c3644da check longitude/latitude 2024-06-19 15:10:22 +02:00
plegall
03074bae4b issue #2166 typo fixed 2024-06-13 21:55:32 +02:00
plegall
848ac5082a issue #2166 more tests to avoid sending name of private extensions 2024-06-13 11:16:33 +02:00
plegall
df99d37370 next version is 15.0.0beta1 2024-06-13 09:06:45 +02:00
Linty
e6f17efdaa issue #2158 check webmaster_id before load_conf_from_db
In Piwigo 15, configuration setting webmaster_id is moved from config files to database. It may be undefined at some point, with Piwigo 15+ scripts and a Piwigo 14 database schema not upgraded yet. Let's avoid any problem.
2024-06-12 12:45:06 +02:00
plegall
d0143e9259 issue #2166 remove debug code 2024-06-10 22:21:22 +02:00
plegall
71cd92c04d fixes #2166 add feature to send anonymous stats to piwigo.org 2024-06-10 21:32:04 +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
plegall
158e99573b Revert "issue #2155 more PHP functions {end, key} for SmartPocket"
This reverts commit d2941d71c2.

Using end/key in Smarty template (SmartPocket navigation_bar.tpl) actually does not
work. SmartPocket now (14.4.0.2) uses a dedicated template variable to know the total
number of pages.
2024-05-31 11:12:52 +02:00
plegall
7fae203a83 fixes #2161 in search, do not consider dot character alone as a splitter 2024-05-17 12:28:31 +02:00
plegall
d2941d71c2 issue #2155 more PHP functions {end, key} for SmartPocket 2024-04-29 09:48:55 +02:00
plegall
ac98cfdcc2 fixes #2155 register more PHP functions for templates 2024-04-24 16:27:31 +02:00
plegall
e8090d4149 fixes #2150 move function strip_html_in_metadata outside get_exif_data 2024-04-18 14:21:04 +02:00
marsooooo
562fb6c0be Fixes #2147 Add style elements to generated page
Updated generated html code so it fits the design
Added warning triangle icon as svg

Page now hides the login button in case user is already logged in
2024-04-12 15:49:09 +02:00
plegall
16953317d9 fixes #2146 trim search by words before anything else 2024-04-12 09:50:17 +02:00
plegall
49dadcecb3 fixes #2136 search for matching image_ids instead of tag_ids
Introduce an additional SQL query to find image_ids associated to matching tags instead of using directly the list of matching tags.

Same for matching albums.

Also, change the displayed list of matching tags/albums: do not take into account the OR/AND on the search by word. Do as if the search was always OR.
2024-04-10 17:12:25 +02:00