Jump to content

Knowledgebase search on Open ticket Page


ragesw

Recommended Posts

Hello,

 

I placed the knowledge base search box on the supportticketsubmit-stepone.tpl page.

 

Since that page uses an https connection, the following code will cause a redirect to the main page rather then searching the knowledge base (this is with Safari 7.0.3 and Chrome on OS X 10.9).

 

In order to get to code to work correctly, you need to use an absolute URL (without https) in the form action attribute. However, when you do this the browser will display a message saying the form is being sent in an insecure way (at least on Safari).

 

Is there a way to include the knowledge base search field on a secure page in WHMCS?

 

Thanks in advance for any help.

 

<div class="well">
   <div class="textcenter">
       <form method="post" action="knowledgebase.php?action=search" class="form-inline"> 
           <fieldset class="control-group">
             <div class="col85">
       	    <input class="bigfield" name="search" type="text" value="Have a question? Start your search here." onfocus="this.value=(this.value=='Have a question? Start your search here.') ? '' : this.value;" onblur="this.value=(this.value=='') ? 'Have a question? Start your search here.' : this.value;"/>
             </div>
             <div class="col15">
               <input type="submit" class="btn btn-large btn-primary" value="Search" />
             </div>
       	</fieldset>
       </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