Get WPFTS Pro today with 25% discount!

How to implement FullTextSearch on a page?

Recipes and Known Solutions
25 2 5.1k 2

  • Okay, Larry

    I am sure they made some tricks in the plugin to modify URL, but I can't say which tricks, since I only have version 1.1.2 at the moment.

    So let's go with the "patch" solution. Please replace the line

    $a['link'] = '<a target="_blank" class="wpfts-download-link'.$shift.'" href="'.htmlspecialchars($link).'"><span>'.__('Download', 'fulltext-search').'</span></a>';
    

    with this one

    $a['link'] = '<a target="_blank" class="wpfts-download-link'.$shift.'" href="'.htmlspecialchars(preg_replace('~^\/\/http~', 'http', $link)).'"><span>'.__('Download', 'fulltext-search').'</span></a>';
    

    It should work.


  • @EpsilonAdmin Wow, still didn't work. I even deleted the astra theme's functions.php file from the server, refreshed the browser (it blew up, as expected), then uploaded the modified functions.php file. I did all this to make sure there was no cache issue. Still doesn't work. Real bizarre.

    Would it help if I sent you login credentials and ftp credentials via email?


  • Hi, Larry

    This would be great, so I can check by myself.
    BTW I see a strange error in search results page.

    Unfortunately I gonna go right now and will be back in some hours to check WP admin. Please send me access to email.

    Thanks!


  • @EpsilonAdmin Will do.


  • Hi, Larry

    The problem with the links has been fixed - just a typo in the code. The code in the messages above is correct.

Suggested Topics

  • Slow search on a site based on Divi Theme

    Recipes and Known Solutions
    1
    0 Votes
    1 Posts
    299 Views
    No one has replied
  • 0 Votes
    1 Posts
    586 Views
    No one has replied
  • metadata filter in WPFTS widget

    Recipes and Known Solutions
    2
    0 Votes
    2 Posts
    758 Views
    EpsilonAdminE
    Hi @pfb6736 Yes, you can do this via CSS, either by adding a new rule to your Theme custom CSS block, or you can use WPFTS Settings / Search & Output / Display / Smart Excerpts CSS editor block. I hope it's .widget.widget-search rule, you can set 'width: 100%' to extend widget's width to all available room. The plugin is growing, but we have not yet a powerful system to make customized search widgets. What I can propose to you is (depending on your PHP/WP knowledge): there is a file /includes/widgets/wpfts_widget.class.php which is actually a native WP search widget with some changes for Live Search functionality. I would recommend you to copy this file to your child theme and create your own widget (by adding a select input to existing code). In case you think your knowledge of PHP is not that good, I can gladly help you, but you need to explain to me what exactly you need. Yes, it's possible via the small code addition. Do you want to show a path to the file instead of the file title? Or it should be an additional line in the search result item? Do you think showing a local path to the file is OKAY and maybe it's better to show Category instead? As I can see they are highlighted (bolded) but you can change this again in the Smart Excerpts CSS block. For example, this rule will make found words RED and YELLOW highlighted. .wpfts-result-item .wpfts-smart-excerpt b { /* Excerpt text */ color: red; background-color: #ff3; } Thanks.
  • 0 Votes
    1 Posts
    765 Views
    No one has replied
  • 0 Votes
    4 Posts
    1k Views
    EpsilonAdminE
    In the Divi 4.9.10 the respective line number to patch is 1913.

Be the first to read the news!

We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

Join Us Now!

We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

ewm-logo-450

The forum powered by NodeBB | Contributors