The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Simple login page/box/code for external pages Details »» | |||||||||||||||||||||||||||
Simple login page/box/code for external pages
Developer Last Online: Mar 2012
Ever wondered how you could add your own login box or fully customized login page outside your VB forums?
Ever had problems with other solutions that require a lot of files, PHP coding that in the end need a lot of tweaks or can give you a big headache? Well, the problem is now solved. 100% Reliable 100% Bug Free* No Uneeded codes running No PHP knowledge required *if you use the code properly By just using the same piece of code used in every Vbulletin pages I've managed to create login pages, boxes in any page I wanted outside my forums. Works 100% and by just following the instructions (2 simple steps) you'll be able to add and customize your login page wherever you want. There is a screenshot of an example page built with this code that it's fully customized and logins to the forums on another domain. Just an example of what you can do. The ZIP file contain the code instructions and 2 HTML pages with the code inside. There are two versions of the code: With or Without "Remember me?" checkbox. Hope it helps. If you've found this useful, had problems with other methods of external login, etc, consider donating a small amount, I'd appreciate Show Your Support
|
Comments |
#22
|
|||
|
|||
syntax error...
:S |
#23
|
|||
|
|||
What do you think about adding a feature in which logged in user see Welcome $username in the place of the form again?
|
#24
|
|||
|
|||
<form action="path-to-your-forum/forums/login.php?do=login" method="post">
<input type="hidden" name="do" value="login" /> <input type="hidden" name="url" value="path-back-to-your-original-page" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> <input type="hidden" name="s" value="" /> <input type="hidden" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" /> <label>Username:<input name="vb_login_username" type="text" id="login" tabindex="1" class="bginput" accesskey="u"/></label> <label>Password<input name="vb_login_password" type="password" id="password" tabindex="1" class="bginput" /></label> <input name="submit" type="submit" id="submit" tabindex="1" value="Login" accesskey="s" class="button" /> </form> |
#25
|
|||
|
|||
In IE 6 and 7 (70% of traffic) we get a pager error after clicking to login.
Users are logged in correctly and there are no issues as far as "function" however there is a page error on Internet Explorer browsers: Code:
ROW: 274 LINE: 2 Error: 'Null' is null or not an object Code: 0 Page: login.php?do=login Code:
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])"> <input type="hidden" name="do" value="login" /> <input type="hidden" name="url" value="/index.php" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> <input type="hidden" name="s" value="$session[sessionhash]" /> <label>Username:<input name="vb_login_username" type="text" id="login" tabindex="1" class="bginput" accesskey="u"/></label> <label>Password:<input name="vb_login_password" type="password" id="password" tabindex="1" class="bginput" /></label> <label>Remember me?<input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" /></label> <input name="submit" type="submit" id="submit" tabindex="1" value="Login" accesskey="s" class="button" /> </form> Thanks |
#26
|
|||
|
|||
Is there a way to limit the size of the login boxes? I need them smaller? Thanks.
|
#27
|
|||
|
|||
Excellent Job, Works fine for me
See my Demo:http://www.ukbusinesslive.co.uk/ to the right half way down, I added a picture and enclosed it withing a frame, looks well smart. Thanks for this |
#28
|
|||
|
|||
is there anyway you can set it up so that when I go to the page i want my members to go to it will ask me to login and Ill have to... what i am getting at is once the login script sends them off to the page i want them to see I dont want them to be able to just copy the address in the address bar and pass it own to buddies and them not have to login... since the page i am directing them to is a paid member only page.
email me shvnem@yahoo.com if anyone has any idea on how to help me |
#29
|
|||
|
|||
Add this before or inside the <form> tag or in the <head> tag
Code:
<script type="text/javascript" src="vbpath/clientscript/vbulletin_md5.js?v=373"></script> You also need to set proper vb version in the url (v=373 is for vb 3.7.3). |
#30
|
|||
|
|||
reserved
|
#31
|
|||
|
|||
this is gr8 thanks
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|