Announcement

#1 2023-02-05 20:18:46

druckmachen
Member
2023-02-05
3

[resolved] Search for Author by URL

Dear All,

I know Piwigo can show me all images by a certain author by searching for "author:John" with the Search function.

What i'd like to archive is a link that shows all images by a certain author, something like http://my.piwigo.site/index.php?/authors/John -- similar to the search-URLs for categories or tags.

Greets
Kalle

Environment Details:
    Piwigo 13.5.0
    Betriebssystem: Linux
    PHP: 7.4.33 (Info anzeigen) [2023-02-05 19:15:50]
    MySQL: 5.5.5-10.3.37-MariaDB-0ubuntu0.20.04.1 [2023-02-05 20:15:50]
    Grafikbibliothek: ImageMagick 6.9.10-23
   
Liste der aktivierten Plugins
    Additional Pages
    Admin Tools
    Advanced Menu Manager
    Extended Description
    Grum Plugins Classes.3
    GThumb+
    LocalFiles Editor
    RV Menu Tree
    RV Thumb Scroller
    Show tags block on all pages

https://druckmachen.arranca.de/gallery/piwigo/

Offline

 

#2 2023-05-23 02:28:17

druckmachen
Member
2023-02-05
3

Re: [resolved] Search for Author by URL

Finally found a solution using the quick search of Piwigo. You can form an URL like

https:// your.domain.name/gallery/qsearch.php?q=author:"Jane Smith"

If you want to link to that URL, you have to use outer single quotes and inner double quotes:

<a href='https://your.domain.name/gallery/qsearch.php?q=author:"Jane Smith"'>Click here for all Images by Jane Smith</a>


Edit: The Forum shortens the Link in Question, so i insertet a space after http://. Remove it if you want to use this solution.

Last edited by druckmachen (2023-05-23 02:31:27)

Offline

 

#3 2023-05-23 14:16:32

erAck
Only trying to help
2015-09-06
2026

Re: [resolved] Search for Author by URL

Note that instead of doing a single quote / double quote dance one can use percent-encoded characters in the URL, like
<a href="https://your.domain.name/gallery/qsearch.php?q=author:%22Jane%20Smith%22">...</a>
where %22 is " quotation mark and %20 is space.


Running Piwigo at https://erack.net/gallery/

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact