The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to change position of login fields?
Hi guys!
As i mentioned in the thread name i would like to change the position of the login box. I use 4.08, and the default login box is on the top, and it's realy messing up my header and the overall design of the forums. I tried to get this working, read every possible guide, but i just cant get it working. I would like to place the login box in the same line with navbar tabs, or over the navbar tabs, just remove it from the top. Here is the code i use for it, but it's just not working. Code:
<!-- login form --> <form action="$vboptions[bburl]/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)"> <script type="text/javascript" src="$vboptions[abspath]/clientscript/vbulletin_md5.js"></script> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> <tr> <td class="smallfont" width="60"><font size="1" face="Tahoma" color="#FFFFFF"> User Name:</font></td> <td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td> <td class="smallfont" width="100"><font size="1" face="Tahoma" color="#FFFFFF">Password: (</font><a href="login.php?do=lostpw"><font size="1" face="Tahoma" color="#FFFFFF">forgot?</font></a><font size="1" face="Tahoma" color="#FFFFFF">)</font></td> <td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td> <td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td> </tr> </table> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="forceredirect" value="1" /> <input type="hidden" name="vb_login_md5password" /> </form> <!-- / login form --> Regards, Antidepresiv |
#2
|
||||
|
||||
Anti,
Where did that code come from? That's not the vB4 code. What you'll need to do is go back to the pages I linked to in the other thread... You need to cut the login code from the header, paste that into the desired location in the navbar template. Now using the info on how to register variables you need to register those variables within that code you cut, once that's done it will work . I know some of it's confusing but you need to mess with it and tinker around, do this in a Child Style of your current one that way you don't mess up your "live" style. Remember we are here to teach, we can't always simply do the work for you and paste it... we could but then we'd only be able to help a few versus many each day and as you can imagine it's also quite time consuming with some things versus others as well. If you put a little more effort into it I'm sure you'll reply back like many others have in the past, that you figured it out! |
#3
|
|||
|
|||
Ah Superman, the time wasted on the "Remember... " is the time needed to help me out, but nvm, i will do it myself, why didn't you just say so in the begining..
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|