TinyPortal

Development => Support => Topic started by: davo88 on February 07, 2024, 07:31:46 PM

Title: TP Extended Search function
Post by: davo88 on February 07, 2024, 07:31:46 PM
Link to my forum: Test forum only.
SMF version: 2.1.4
TP version: 3.0.0
Default Forum Language: English
Theme name and version: Default Curve2
Browser Name and Version: Brave version 1.62.156
Mods installed: None. Completely stock fresh install
Related Error messages: None


Having trouble finding the TP extended search function as described in SEARCH FUNCTIONALITY (https://www.tinyportal.net/docs/index.php?page=60) and shown on the Docs site.

2024-02-08_06-19-53.png

I have 'Enable TinyPortal full text search" checked in settings.

2024-02-08_06-05-48.png

But the Search box options available in the block type drop down only seem to include the standard SMF search.

Snag_14e65945.png

So we get the standard SMF search box in the block.

2024-02-08_06-24-32.png

Is there another setting somewhere for the TP Extended Search?


Title: Re: TP Extended Search function
Post by: tino on February 07, 2024, 07:47:50 PM
That is done by a php block. If you choose PHP then look in the block code list you should have one called search articles.
Title: Re: TP Extended Search function
Post by: lurkalot on February 07, 2024, 08:05:53 PM
Click search on the main menu, you should see a header with Extended Search on it, and below that "Search Articles"
Title: Re: TP Extended Search function
Post by: davo88 on February 07, 2024, 08:31:27 PM
Here's what I did.

Add block and choose 'Search articles Written by tinoest'

2024-02-08_07-13-04.png

Edit the block and select Search articles > Insert code > Overwrite (plus title, activate etc)

2024-02-08_07-14-03.png

Search box appears in panel OK.

Snag_1520abdf.png

Search for a term (even though there is no data in this site's database)

Snag_152176c1.png

No results returned as expected. No error messages.

Then follow the same setup procedure on a site containing both SMF data and TP articles. Then enter the search term 'franky' and we get an error message.

Snag_1524a8de.png

Same search term seems to work OK in standard SMF search box. Is there something else I need to do?
Title: Re: TP Extended Search function
Post by: tino on February 08, 2024, 01:54:49 PM
If you disable the fulltext search it should work.

For some reason when you selected fulltext it hasn't changed the database.
Title: Re: TP Extended Search function
Post by: davo88 on February 08, 2024, 04:40:17 PM
Disabled 'Enable TinyPortal full text search' and yes, it will now search for a single word OK.

Quote from: tinoFor some reason when you selected fulltext it hasn't changed the database.

What is the change required to the database? Is there another way I can make that happen?
Title: Re: TP Extended Search function
Post by: @rjen on February 08, 2024, 05:47:53 PM
Try switching it off, then save and the switch on again and save
Title: Re: TP Extended Search function
Post by: davo88 on February 08, 2024, 07:01:26 PM
Tried on and off a couple of times but no luck. Same result.

Can't find FULLTEXT index matching the column list
File: /home/dmfxyz/public_html/220-Test/Sources/TPSearch.php
Line: 205
Title: Re: TP Extended Search function
Post by: lurkalot on February 08, 2024, 08:23:37 PM
Do you have to have search Fulltext index enabled in SMF for this to work?

If so, Admin > Forum > Search >> Search Method
Title: Re: TP Extended Search function
Post by: davo88 on February 08, 2024, 08:54:26 PM
Good thought Mick, but unfortunately we have the same error message.