vForums Support > Programming & Coding :: Code Requests & Support :: > [F] Vbulletin Quicklogin

[F] Vbulletin Quicklogin - Posted By dog199200 (dog199200) on 9th Apr 08 at 3:06pm
can i possibly get something similar to a vbulletins login?

http://www.vbulletin-faq.com/forum/

i want in above the nav menu but bellow the logo image and i'd like for it to have this format.

http://i25.photobucket.com/albums/c51/dog199200/Untitled.png

then i'd like the bottom quick login to disappear and when people are logged in the logo area is back to normal.

Re: Vbulletin Quicklogin - Posted By Michael (wrighty) on 10th Apr 08 at 9:43pm
I should be able to do this tomorrow night! ^_^ I have a skin to code for a friend first though, then I'll see if I have time to do this! {Smile}

Re: Vbulletin Quicklogin - Posted By dog199200 (dog199200) on 10th Apr 08 at 10:35pm
{Smile} ok ty

Re: Vbulletin Quicklogin - Posted By dog199200 (dog199200) on 12th Apr 08 at 2:10pm
bump

Re: Vbulletin Quicklogin - Posted By Michael (wrighty) on 12th Apr 08 at 2:13pm
I know it's here. Don't worry. Just working out the best way to implement it! {Smile}

Re: Vbulletin Quicklogin - Posted By dog199200 (dog199200) on 12th Apr 08 at 2:18pm
ah ok, you never know i have had requests forgotten out all the time lol

Re: Vbulletin Quicklogin - Posted By Michael (wrighty) on 12th Apr 08 at 3:20pm
I hope you understand that due to the way that this has to be implemented that you can only use it on the main forum page as that already contains the quick login. On other pages, it's simply not show.

Main Header:
<script>
function login(){
    get('username','name')[0].value = get('un','id').value;
    get('password','name')[0].value = get('pw','id').value;
    get('time','name')[0].value = get('t','id').value;
    get('loginForm','name')[0].submit();
}

function build(){
    var a = get('welcome_table','id').insertRow(1).insertCell(0);
    a.innerHTML = '<form action=javascript:void(0); onsubmit=login();>Username: <input type="text" id="un" size="10"> Password: <input type="password" id="pw" size="10"> Stay Logged in for: <select id="t" tabindex="1"><option value="30">30 Minutes</option><option value="60">1 Hour</option><option value="120">2 Hours</option><option value="360">6 Hours</option><option value="720">12 Hours</option><option value="1440">1 Day</option><option value="10080">1 Week</option><option value="1051897" selected="selected">Forever</option><option value="session">This Session</option></select> <input type="submit" value="Login"></form>';
    a.className = 'title1';
}
</script>


Main Footer:
<script>
if(location.href.match(/.co.uk($|\/$)/) && vf_username == 'guest'){
    build();
    get('loginForm','name')[0].firstChild.style.display = 'none';
    get('loginForm','name')[0].parentNode.previousSibling.style.display = 'none';
    get('loginForm','name')[0].parentNode.nextSibling.style.display = 'none';
}
</script>

Re: Vbulletin Quicklogin - Posted By dog199200 (dog199200) on 12th Apr 08 at 4:50pm
can the input boxes be shrunk so that it wont stretch a 700 px lenth forum?


also is it possible to get it so taht it will also remove the head/base image from the old quick login from the bottom of the forum

Re: Vbulletin Quicklogin - Posted By Michael (wrighty) on 12th Apr 08 at 4:56pm
try recopying, I haven't tested that!

Re: Vbulletin Quicklogin - Posted By dog199200 (dog199200) on 12th Apr 08 at 5:15pm
doesn't work,

http://deluxeanimeforum.virtualforums.co.uk/

Re: Vbulletin Quicklogin - Posted By Michael (wrighty) on 13th Apr 08 at 6:21pm
Recopy please! {Smile}

Re: Vbulletin Quicklogin - Posted By dog199200 (dog199200) on 14th Apr 08 at 12:55am
ok ty that works good enough