Search…

X3 Photo Gallery Support Forums

Search…
 
Her sungho
Topic Author
Posts: 1
Joined: 04 Apr 2025, 10:14

integrated search, full gallery view, and detailed photo search features.

04 Apr 2025, 13:05

I have implemented a system that collects

page.json files and registers photo information into MariaDB or MySQL, making it searchable. The system allows searching for settings such as Title, Menu Label, Description, Date, SEO information, as well as individual attached photos’ Title, Description, and Filename.
After organizing the collection module and search module code, I plan to make them publicly available. Though there's not much to see, you can check it out at ltab.co.kr.

I have implemented integrated search, full gallery view, and detailed photo search features.

https://ltab.co.kr



add 
----

I have uploaded the search code to GitHub. Users who need it can install and use it. Please note that I am not a professional developer, so there may be errors or performance issues. I have worked diligently on this for two weeks and, in order to focus on my main job, I have no plans for further updates or modifications.

The GitHub repository is located at: https://github.com/gohher/x3search/

To use the code, please follow these steps:
  1. Set up the database by creating the necessary database and tables.
  2. Create a folder and copy the PHP code from the GitHub repository into it.
  3. In the
    Code
    admin/db_config.php
    file, enter your database information.
  4. In the
    Code
    admin/update.php
    file, specify the folder to be searched.

add
---
I have corrected and supplemented some missing code on GitHub. (250406)
page.json collection module
Image

Search main page
Image

Search result page
Image
Image
Last edited by Her sungho on 06 Apr 2025, 10:22, edited 4 times in total.
 
User avatar
JMM
Experienced
Posts: 216
Joined: 02 Aug 2021, 11:18

Re: integrated search, full gallery view, and detailed photo search features.

04 Apr 2025, 15:45

Very nice!

When you get to that stage, I would be interested in trying your Search feature on one (or more) of my X3 sites.  Great work.

Have a good weekend.

Regards,
John
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14469
Joined: 30 Sep 2006, 03:37

Re: integrated search, full gallery view, and detailed photo search features.

04 Apr 2025, 23:28

:clap: Very nice
 
User avatar
Rado
Posts: 11
Joined: 15 Feb 2024, 07:50

Re: integrated search, full gallery view, and detailed photo search features.

01 Aug 2025, 06:51

Thank you, I integrated it into my website and it works perfectly!
 
User avatar
Rado
Posts: 11
Joined: 15 Feb 2024, 07:50

Re: integrated search, full gallery view, and detailed photo search features.

13 Aug 2025, 03:48

One more little thing. When searching in detailed photo search, it would be great if the link went directly to the photo itself and not to the album. But that's just a detail :-)

On the search site index.php in line: 227

From this: 
Code
<a href="/<?= htmlspecialchars($row['base']) ?>/<?= htmlspecialchars($row['file_path']) ?>">

To this: 
Code
<a href="/<?= htmlspecialchars($row['base']) ?>/<?= htmlspecialchars($row['file_path']) ?>/#pid=<?= htmlspecialchars($row['filenames']) ?>">