Author Topic: login fields too long...  (Read 6527 times)

Offline Simon89

  • Newbie
  • *
  • Posts: 1
login fields too long...
« on: September 04, 2007, 12:07:01 PM »
Is there a way to change the lenght of the login fields "username" and "password"? I need smaller fields...

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,638
    • http://SKaero.com/
Re: login fields too long...
« Reply #1 on: September 04, 2007, 04:11:36 PM »
Thats not right! Can you post the source of the page?

Offline toby86

  • Newbie
  • *
  • Posts: 3
Re: login fields too long...
« Reply #2 on: September 07, 2007, 07:45:50 AM »
I have the same problem - but only on my personal laptop.
On any other PC I tested so far I haven't had any problems.

=> http://webmail.mediaversal.de

Offline xyanide

  • Jr. Member
  • **
  • Posts: 41
Re: login fields too long...
« Reply #3 on: September 09, 2007, 12:29:13 PM »
Quote from: toby86
I have the same problem - but only on my personal laptop.
On any other PC I tested so far I haven't had any problems.

=> http://webmail.mediaversal.de

Looks fine on my desktop (Opera 9.23, 19" 1280 x 1024).


- Xyanide

surfsurf

  • Guest
Re: login fields too long...
« Reply #4 on: September 10, 2007, 01:18:35 AM »
Also looks fine over here.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

Offline Rudy

  • Jr. Member
  • **
  • Posts: 17
Re: login fields too long...
« Reply #5 on: October 08, 2007, 11:51:47 AM »
It's weird. I have the same problem. On my pc everything looks fine but on my friend's pc the login page looks like Simon89's screenshot. It doesn't matter what browser I'm using (IE7, FF, Opera), it's always the same problem. Both computers are running MS Win XP Prof SP2.

Offline youds

  • Full Member
  • ***
  • Posts: 93
Re: login fields too long...
« Reply #6 on: October 09, 2007, 07:42:26 AM »
Add style="width:150px" to the tags and that will solve the problem.

Offline youds

  • Full Member
  • ***
  • Posts: 93
Re: login fields too long...
« Reply #7 on: October 09, 2007, 08:09:32 AM »
Seems you have to edit the main program files to change the tags on output

Code: [Select]
<script type=&quot;text/javascript&quot;>
<!--\\
//fix login box without editing the program files
window.onload = function () {
console.log('log');
oUsername = document.getElementById('rcmloginuser');
oPassword = document.getElementById('rcmloginpwd');
oUsername.style.width = '150px;'
oPassword.style.width = '150px';
}
-->
</script>

Add that to the document instead.

Offline Rudy

  • Jr. Member
  • **
  • Posts: 17
Re: login fields too long...
« Reply #8 on: October 11, 2007, 04:28:39 PM »
Sorry that it took me so long to answer but thishas been a very busy week for me. Anyway... I added your Javascript to my login.html template and it seems to work flawlessly. Thank you very much! :)

-Rudy

Offline Rudy

  • Jr. Member
  • **
  • Posts: 17
Re: login fields too long...
« Reply #9 on: February 20, 2008, 04:33:01 PM »
Actually it wasn't quite "flawless". There was a typo (') in oUsername:
Code: [Select]
<script type=&quot;text/javascript&quot;>
<!--\\
//fix login box without editing the program files
window.onload = function () {
console.log('log');
oUsername = document.getElementById('rcmloginuser');
oPassword = document.getElementById('rcmloginpwd');
oUsername.style.width = '180px';
oPassword.style.width = '180px';
}
-->
</script>