vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: vBulletin Style Quick Login - View Topic
Topic Rating: *****
Printable View
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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
*

[Avatar]
And Im Back.....

Posts: 9
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


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:  
Reputation: 8%  


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 {Tongue Out}

ting-tong2k6@hotmail.com
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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
*

[Avatar]
And Im Back.....

Posts: 9
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pm
Re: vBulletin Style Quick Login (1st May 08 at 2:00pm UTC)
Oh Ok Doky {Smile}

CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


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.

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


pmwww
Re: vBulletin Style Quick Login (20th May 08 at 5:45pm UTC)
I did that Wrighty but its not working for me bro {Confused}

http://testforum.virtualforums.co.uk/

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
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! {Wink} It's conflicting with another code! {Tongue Out}
CåñåÐå™
Full Member
***

[Avatar]

Posts: 427
Status: Offline
Gender: Male
Location: Toronto Ontario
Joined:  
Reputation: 7%  


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 {Grin} .

Image
click here We have 15 Different Skins/Templates for your vForum
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: vBulletin Style Quick Login (20th May 08 at 8:42pm UTC)
{Grin}
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
***

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 35
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
Re: vBulletin Style Quick Login (30th Jul 08 at 9:53pm UTC)
Posted By dog199200 on 24th May 08 at 12:54am
 
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
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: vBulletin Style Quick Login (30th Jul 08 at 9:58pm UTC)
That post was made 2 months ago! >.>
ashkir
Full Member
***

[Avatar]

Posts: 1,159
Status: Offline
Gender: Male
Location: Cali!
Age: 35
Joined:  
Reputation: 42%  


pmtwitterskypemsnyahoo
Re: vBulletin Style Quick Login (17th May 09 at 7:53pm UTC)
Preview of this code in action: http://wimg.co.uk/SjCb24.gif
 Printable View

All times are GMT+0 :: The current time is 8:49pm
Page generated in 3.6546 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums