Jump to content

Problem search link


ricrey

Recommended Posts

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...

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

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>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated