The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Seperate Log In Page within vB?
Hi,
This seems like it could be a really simple hack, but I'm stumped as to how to do it myself since I don't know PHP or vB very well and I'm surprised there isn't one already. I've had a pretty thorough search, but unless I'm missing something... I have 3.0.7 and I'm looking to install a seperate log in page that'll look similar to the permission denied page but actually allow users just to log into the forums and then redirects them back to wherever they where when they clicked the Log In link. I know there's a log in box at the top of all forum pages, but I don't want to use that - I want to integrate the forums over the site and let them handle user registration and thus encourage users entering competitions and the like to post on the forums. So the register link is at the moment nothing more than a register link, but the log in is slightly harder because there's no page to link to. login.php just parses the form, it doesn't have its own. Any ideas? |
#2
|
||||
|
||||
This is a FAQ and is being asked over and over and over again
HTML Code:
<form action="http://www.yoursite.com/forums/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)"> <script type="text/javascript" src="http://www.yoursite.com/forums/clientscript/vbulletin_md5.js"></script> Username: <input type="text" name="vb_login_username" size="10" accesskey="u" tabindex="1" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /><br /> <label for="cb_cookieuser"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser" accesskey="c" checked="checked" />Remember Me?</label><br /> Password: <input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /> <input type="submit" class="button" value="Log in" tabindex="4" title="Enter your username and password in the boxes provided to login" accesskey="s" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> <input type="hidden" name="url" value="http://www.foobar.com" /> </form> |
#3
|
|||
|
|||
Wow it's that easy? I guess I'd been searching a more complicated solution...
Now to figure out how to put it into a generic vBulletin page! Thanks so much. |
#4
|
|||
|
|||
how do i get rid of this: POST requests from foreign hosts are not allowed.
Since i have the site and the forum on different domains but both are on the same server. |
#5
|
|||
|
|||
Quote:
POST requests from foreign hosts are not allowed Any answers on how to fix this? |
#6
|
||||
|
||||
Yes, put the other Hosts on the Whitelist.
|
#7
|
|||
|
|||
Quote:
I see nothing like that in the code above. |
#8
|
|||
|
|||
I'm looking for a logout link complementary to this script.
Can anyone help, I'm stuck! |
#9
|
|||
|
|||
I have made a separate homepage and added the form coding above. When I click login it brings me to the mainpage of the forum but has not logged me in, what have i done wrong?
--------------- Added [DATE]1222450163[/DATE] at [TIME]1222450163[/TIME] --------------- The coding from this thread works great: https://vborg.vbsupport.ru/showthread.php?t=107292 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|