Jump to content

Hiding Client Home Page Knowledgebase Search Feature


stacksos

Recommended Posts

Hello everyone!

 

Great source of information here regarding WHMCS. However, I could not find a solution for my current issue. I want to basically hide all links dealing with the Knowledgebase until I get it to where I feel like it's worth publishing.

 

I've been successful in all of that except for ONE item. The search bar...

 

I want an Action Hook that I can easily delete to return the search bar when I am ready to release the Support Center. I tried seeing if I could hard code it out, but its on the clientarea.php file and that is protected I guess. Red box is what I want to have removed from sight until I am ready to release it.

knowledgesearch.png

Link to comment
Share on other sites

I can see two ways to do this - either by editing the /templates/six *or your custom template*/clientareahome.tpl template (not encrypted) and editing the block of code responsible for the search bar...

 

<form role="form" method="post" action="clientarea.php?action=kbsearch">
   <div class="row">
       <div class="col-md-12 home-kb-search">
           <input type="text" name="search" class="form-control input-lg" placeholder="{$LANG.clientHomeSearchKb}" />
           <i class="fa fa-search"></i>
       </div>
   </div>
</form>

... or probably more suitable for your needs, add the line below to /templates/six *or your custom template*/css/custom.css

 

.home-kb-search {display: none;}

that will hide the search bar from the homepage, and then when you are ready to let the clients use it, just remove the line from custom.css and it will return. :idea:

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