Jump to content

WHMCS v5 bootstrap.css & autoForward bugs.


BenN

Recommended Posts

Hi,

 

I've found a bug in the client area. Image inputs are styled like other inputs which means they are distorted (I noticed this in the add funds area, could affect other areas).

 

In templates/yourtheme/css/bootstrap.css after:

input,
textarea,
select,
.uneditable-input {
 display: inline-block;
 width: 210px;
 height: 18px;
 padding: 4px;
 color: #808080;
 border: 1px solid #ccc;
 -webkit-border-radius: 3px;
 -moz-border-radius: 3px;
 border-radius: 3px;
}

Add the following:

input[type=image]{
   width: auto;
   height: auto;
   padding: 0;
   border: none;
   box-shadow: none;
}

 

There is also a problem with the autoForward() javascript function which is used in 3dsecure.tpl & forwardpage.tpl

<script language="javascript">
setTimeout ( "autoForward()" , 1000 );
function autoForward() {
document.forms[0].submit()
}
</script>

It works by submitting the first form on the page, but in custom templates like mine this won't work anymore as I have the language selector in the header part of my site making the payment forms the second form on the page. Perhaps it would be better to use an id or something to avoid this problem on custom templates?

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