ricrey Posted February 4, 2022 Share Posted February 4, 2022 Hello, I would like you to help me with something... I want to implement a search for the whmcs knowledgebase in my theme, I know that when I put in the search it redirects to the link: /index.php?rp=/knowledgebase/search This only applies to the default whmcs browser, but I need to know how I can put "Cpanel" in the link, for example /index.php?rp=/knowledgebase/search=cpanel I want to know how I can link directly to the general search for a word... 0 Quote Link to comment Share on other sites More sharing options...
HancoEuropa Posted February 5, 2022 Share Posted February 5, 2022 Hey ricrey! You can append single words after the search, such as /knowledgebase/search/cpanel/ Sometimes it works using hyphens as well, such as /cpanel-tutorial/ I've only tested this with friendly URLs (i.e. /whmcs/knowledgebase/search/wordhere ) Good question though, and clearly would be useful if it were reliable. I tested also with spaces, '%20', +, & etc, but no-go, it turns those into nulls, making for an ugly word in the search box (and no results). Maybe there is a ?query= type parameter we don't know about. Hope this helps mate. 0 Quote Link to comment Share on other sites More sharing options...
ricrey Posted February 5, 2022 Author Share Posted February 5, 2022 Thank you, if what you told me helped me, I'll tell you that now it works well for me and I was able to make the search engine react well, it's that I have an "Integrated wordpress in whmcs" design and I wanted the search engine to go to the knowledge base.. . I put the code I used in case it helps others. I changed my domain name to: mydomain.com for the example. <div id="bbhd-search-box-60180c49ccee8" class="bbhd-search-box"> <div class="container"> <form method="post" action="https://www.mydomain.com/shop/index.php?rp=/knowledgebase/search/"> <button class="bbhd-search-submit" type="submit"><span></span></button> <input class="bbhd-search-txt" type="search" name="search" placeholder="What are you looking for?"> <div class="bbhd-search-close"><span></span></div> </form> </div> </div> 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.