Page 1 of 1
Remove Answer from Search Results
Posted: Tue Mar 08, 2016 10:53 am
by terryrogers
How can I remove the answer section from search results?
Re: Remove Answer from Search Results
Posted: Tue Mar 08, 2016 7:29 pm
by Thorsten
Hi,
which version do you use?
bye
Thorsten
Re: Remove Answer from Search Results
Posted: Tue Mar 08, 2016 8:50 pm
by terryrogers
v2.8.26
Although will look to upgrade to v2.9 once it is released out of beta/alpha testing. And likewise v3.0 once released as final stable.
Re: Remove Answer from Search Results
Posted: Wed Mar 09, 2016 8:02 am
by Thorsten
Hi,
just remove these lines:
https://github.com/thorsten/phpMyFAQ/bl ... #L323-L327
This will work with v2.9, too (maybe not the same lines, but same code).
bye
Thorsten
Re: Remove Answer from Search Results
Posted: Wed Mar 09, 2016 9:16 am
by terryrogers
I've removed these lines, but results are still showing with Answer:
Is there a cache I need to clear perhaps?
Ive attached what I am now seeing and the current version of Search.php can be seen here...
https://onedrive.live.com/redir?resid=2 ... file%2cphp
Re: Remove Answer from Search Results
Posted: Wed Mar 09, 2016 9:22 am
by Thorsten
Hi,
but this is instant response, right?
bye
Thorsten
Re: Remove Answer from Search Results
Posted: Wed Mar 09, 2016 9:30 am
by terryrogers
Yeh?
Is that different?
Re: Remove Answer from Search Results
Posted: Wed Mar 09, 2016 9:36 am
by Thorsten
Hi,
yes
It's this code here:
https://github.com/thorsten/phpMyFAQ/bl ... #L164-L170
Change the code to:
Code: Select all
$html .= sprintf(
"<li><strong>%s</strong>: %s</li>\n",
$categoryName,
$oLink->toHtmlAnchor()
);
bye
Thorsten