MyBB Community Forums

Full Version: get user name and password to show up
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do you get the username and password to show up in front of the input boxes so people know which is which. I don't like the inside the box way.
It's hard coded in the JavaScript files, I can help you out if you are willing to edit those.
(2010-09-02, 04:58 PM)Zash Wrote: [ -> ]It's hard coded in the JavaScript files, I can help you out if you are willing to edit those.

Where can I find those files?
usually the ******** gives away which field is the password one....
(2010-09-02, 05:43 PM)jmcdonald Wrote: [ -> ]
(2010-09-02, 04:58 PM)Zash Wrote: [ -> ]It's hard coded in the JavaScript files, I can help you out if you are willing to edit those.

Where can I find those files?

It's in /jscripts/general.js
what is the name of file?
(2010-09-02, 05:47 PM)Zash Wrote: [ -> ]
(2010-09-02, 05:43 PM)jmcdonald Wrote: [ -> ]
(2010-09-02, 04:58 PM)Zash Wrote: [ -> ]It's hard coded in the JavaScript files, I can help you out if you are willing to edit those.

Where can I find those files?

It's in /jscripts/general.js

What do I change
In teh QuickLogin function.............

find

			if(this.browser == "ie")
			{
				var input = document.createElement("<input name=\"quick_username\">");
			}

add directly above

form.innerHTML += lang.username + " ";

find

			if(this.browser == "ie")
			{
				var input = document.createElement("<input name=\"quick_password\">");
			}
			else


add directly above

form.innerHTML += lang.password + " ";
(2010-09-02, 05:57 PM)pavemen Wrote: [ -> ]In teh QuickLogin function.............

find

			if(this.browser == "ie")
			{
				var input = document.createElement("<input name=\"quick_username\">");
			}

add directly above

form.innerHTML += lang.username + " ";

find

			if(this.browser == "ie")
			{
				var input = document.createElement("<input name=\"quick_password\">");
			}
			else


add directly above

form.innerHTML += lang.password + " ";

thanks how can I move them over to the left some more?
(2010-09-02, 05:57 PM)pavemen Wrote: [ -> ]In teh QuickLogin function.............

find

			if(this.browser == "ie")
			{
				var input = document.createElement("<input name=\"quick_username\">");
			}

add directly above

form.innerHTML += lang.username + " ";

find

			if(this.browser == "ie")
			{
				var input = document.createElement("<input name=\"quick_password\">");
			}
			else


add directly above

form.innerHTML += lang.password + " ";


can they be moved to the left and How?
mean more space between the words and the boxes? just add more space in the " " part you add.

you can also replace the " " with "&nbsp;" and insert as many &nbsp; items as you want spaces.

one &nbsp; = one space