WPFTS Pro Main Site WPFTS Community Forum
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    Get WPFTS Pro today with 25% discount!

    How to implement FullTextSearch on a page?

    Scheduled Pinned Locked Moved Recipes and Known Solutions
    25 Posts 2 Posters 4.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EpsilonAdminE
      EpsilonAdmin @sanfordandson
      last edited by

      Okay, Larry,

      please could you go to the code we added last time and replace 6th line from the end:

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

      by this one:

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

      (actually only esc_url has been replaced by htmlspecialchars).

      I think this function breaks the URL somehow on your server (and it's VERY strange).

      Please let me know. Thanks!

      https://e-wm.org

      S 1 Reply Last reply Reply Quote 0
      • S
        sanfordandson @EpsilonAdmin
        last edited by

        @EpsilonAdmin I replaced esc_url with htmlspecialchars, but that didn't fix the issue. Very strange, indeed.

        You can see when you mouseover the Download link that the url is incorrect, right? But the link on the title is correct!

        S 1 Reply Last reply Reply Quote 0
        • S
          sanfordandson @sanfordandson
          last edited by

          @sanfordandson Could there be something in the .htaccess file that is causing this?

          EpsilonAdminE 1 Reply Last reply Reply Quote 0
          • EpsilonAdminE
            EpsilonAdmin @sanfordandson
            last edited by

            I don't think so, it looks like a PHP problem.

            Which version of the Document Library Pro you are using?

            https://e-wm.org

            S 1 Reply Last reply Reply Quote 0
            • S
              sanfordandson @EpsilonAdmin
              last edited by

              @EpsilonAdmin 1.7.2 (current version)

              S 1 Reply Last reply Reply Quote 0
              • S
                sanfordandson @sanfordandson
                last edited by

                @sanfordandson I know it's a cludge, but could you strip out all occurrences of "https//"? That would make the url correct.

                EpsilonAdminE 1 Reply Last reply Reply Quote 0
                • EpsilonAdminE
                  EpsilonAdmin @sanfordandson
                  last edited by

                  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.

                  https://e-wm.org

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    sanfordandson @EpsilonAdmin
                    last edited by sanfordandson

                    @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?

                    EpsilonAdminE 1 Reply Last reply Reply Quote 0
                    • EpsilonAdminE
                      EpsilonAdmin @sanfordandson
                      last edited by

                      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!

                      https://e-wm.org

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        sanfordandson @EpsilonAdmin
                        last edited by

                        @EpsilonAdmin Will do.

                        1 Reply Last reply Reply Quote 0
                        • EpsilonAdminE
                          EpsilonAdmin
                          last edited by

                          Hi, Larry

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

                          https://e-wm.org

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Suggested Topics

                          • EpsilonAdminE

                            Slow search on a site based on Divi Theme

                            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions
                            1
                            0 Votes
                            1 Posts
                            258 Views
                            No one has replied
                          • EpsilonAdminE

                            [Solved] The files excerpt is not visible in Scientia Theme

                            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions
                            1
                            0 Votes
                            1 Posts
                            461 Views
                            No one has replied
                          • EpsilonAdminE

                            [Solved] EduMall theme does not show Smart Excerpts and broken the search results page

                            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions
                            1
                            0 Votes
                            1 Posts
                            542 Views
                            No one has replied
                          • EpsilonAdminE

                            [Solved] The License become not valid and Update API is not accessible

                            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions license update api ssl https curl
                            1
                            0 Votes
                            1 Posts
                            729 Views
                            No one has replied
                          • EpsilonAdminE

                            [Solved] The Astra theme does not show Smart Excerpt for files

                            Watching Ignoring Scheduled Pinned Locked Moved Recipes and Known Solutions
                            1
                            0 Votes
                            1 Posts
                            948 Views
                            No one has replied

                          Additional Resources

                          • My Account
                          • Buy WPFTS Pro
                          • Community Forum
                          • Affiliate Program
                          • Privacy Policy
                          • Terms & Conditions
                          • Contact Us
                          • Coupon Partner

                          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