Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | vBulletin Style Quick Login (15th Apr 08 at 5:39pm UTC) | | This code will add a vBulletin styled quick login to your forum, it will appear below the banner and above the menu. You can only use it on the main forum page as that already contains the quick login. On other pages, it's simply not shown.
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> | |
|
MiNiCliP™ New Member
And Im Back..... Posts: 9 Status: Offline Gender: Male Joined:
pm | Re: vBulletin Style Quick Login (21st Apr 08 at 11:48am UTC) | | can you convert this for ProBoards? | |
|
|
Alex Bailey Senior Member
Posts: 503 Status: Offline Gender: Male Location: Uk Age: 33 Joined:
pmmsnaim | Re: vBulletin Style Quick Login (21st Apr 08 at 6:45pm UTC) | | Well considering this is a support forum for vForums , i don't think he will lol | |
ting-tong2k6@hotmail.com |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: vBulletin Style Quick Login (21st Apr 08 at 9:46pm UTC) | | can you convert this for ProBoards?
No.
It's vF. We do not support competitor services. | |
|
MiNiCliP™ New Member
And Im Back..... Posts: 9 Status: Offline Gender: Male Joined:
pm | |
CåñåÐå™ Full Member
Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: vBulletin Style Quick Login (20th May 08 at 2:34pm UTC) | | Would it be possible to still have the vForum login at the bottom of the forum and this on the top Wrighty ? Or it that against vForums TOS. | |
click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: vBulletin Style Quick Login (20th May 08 at 2:44pm UTC) | | No, that's fine... Just remove these 3 lines:
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'; | |
|
CåñåÐå™ Full Member
Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | |
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: vBulletin Style Quick Login (20th May 08 at 6:15pm UTC) | | move this part:
<script> if(location.href.match(/.co.uk($|\/$)/) && vf_username == 'guest'){ build(); } </script>
To the top of your main footer, OR if it is, to the top of your global footer! It's conflicting with another code! | |
|
CåñåÐå™ Full Member
Posts: 427 Status: Offline Gender: Male Location: Toronto Ontario Joined:
pmwww | Re: vBulletin Style Quick Login (20th May 08 at 8:30pm UTC) | | Yes i did have to put it in the global footer, and its working . Thank you Wrighty . | |
click here We have 15 Different Skins/Templates for your vForum |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: vBulletin Style Quick Login (20th May 08 at 8:42pm UTC) | | | |
|
dog199200 Guest | Re: vBulletin Style Quick Login (24th May 08 at 12:54am UTC) | | also i didnt realize this, but you should really center it instead of it being pushed to the left | |
|
ashkir Full Member
Posts: 1,159 Status: Offline Gender: Male Location: Cali! Age: 35 Joined:
pmskypemsnyahoo | Re: vBulletin Style Quick Login (30th Jul 08 at 9:53pm UTC) | | also i didnt realize this, but you should really center it instead of it being pushed to the left On vB it isn't centered by default. If you want it to be centered add <center></center> tags to the code where you see the form HTML. | |
|
Michael Moderator
Recoding the future Posts: 4,043 Status: Offline Gender: Male Location: UK Joined:
Additional Groups: Coding Team
pmvForum | Re: vBulletin Style Quick Login (30th Jul 08 at 9:58pm UTC) | | That post was made 2 months ago! >.> | |
|
ashkir Full Member
Posts: 1,159 Status: Offline Gender: Male Location: Cali! Age: 35 Joined:
pmskypemsnyahoo | |