The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Login page, surely it can't be this hard?
What I'd like is a login page for vB which redirects users back to the index.php page after they've logged in. I've tried a few suggested solutions but nothing has worked. I tried creating a loginpage.php file and putting in a standard nopermission template, but it just redirects the user back to loginpage.php and they therefore get 'stuck'.
Any suggestions on how I can fix this? |
#2
|
||||
|
||||
Me 2 would like not a login page but like an introduction page where when the url is entered it would display the intro page with an option of auto redirect or manually redirect to the index.php page.
|
#3
|
||||
|
||||
Does anyone know if one of the existing non-vB login scripts could be modified for this? I basically want to provide both a login and a logout link in my navbar.
Ok, answering this myself I used (and tweaked for my own needs) eXaulz's suggestion over at vb.com http://www.vbulletin.com/forum/showt...=166426&page=2 Hope that helps anyone else in the future. |
#4
|
||||
|
||||
I know this topic is old...but I am looking for the same thing. I just want a cleaner design in my header...takes up so much less space.
Anyway, I checked out the code provided in the thread was OK. It doesn't end up showing the name of the page in the navbits. I am curious if you could share the code you came up with? |
#5
|
||||
|
||||
In vB3.5 and vb3.6 just create a new template called custom_Login
Then populate it with this code: Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <if condition="$show['search_noindex']"><meta name="robots" content="noindex,follow" /></if> $headinclude <title>Login</title> $headinsert </head> <body> $header <if condition="$navbar"> $navbar <else /> <br /><br /><br /> </if> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center"> <tr> <td class="tcat">Login Page</td> </tr> <tr> <td class="panelsurround" align="center"> <div class="panel"> <div align="$stylevar[left]"> <if condition="!$show['guest']"> <br />You appear to already be logged in - <a href="index.php">return to home page</a><br /><br /> <else /> <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script> <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="$scriptpath" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> $postvars <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="url" value="index.php" /> <!-- permission error message - user not logged in --> <fieldset class="fieldset"> <legend>$vbphrase[log_in]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" align="center"> <tr> <td>$vbphrase[username]:<br /><input type="text" class="bginput" name="vb_login_username" size="50" accesskey="u" tabindex="1" /></td> </tr> <tr> <td>$vbphrase[password]:<br /><input type="password" class="bginput" name="vb_login_password" size="50" tabindex="1" /></td> </tr> <tr> <td> <span style="float:$stylevar[right]"><a href="login.php?$session[sessionurl]do=lostpw">$vbphrase[forgotten_your_password]</a></span> <label for="cb_cookieuser"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" checked />$vbphrase[remember_me]</label> </td> </tr> <tr> <td align="$stylevar[right]"> <input type="submit" class="button" value="Click Here to $vbphrase[log_in]" accesskey="s" tabindex="1" /> </td> </tr> </table> </fieldset> <div class="smallfont">Need a free username? <a href="register.php?$session[sessionurl]do=register">Click here to register</a></div> </form> </if> </div> </div> <!-- <div style="margin-top:$stylevar[cellpadding]px"> <input type="submit" class="button" value="$vbphrase[go_back]" accesskey="s" onclick="history.back(1); return false" /> </div> --> </td> </tr> </table> <br /> <if condition="!$show['enableforumjump']"> <!-- forum jump --> <table cellpadding="0" cellspacing="0" border="0" align="center"> <tr> <td>$forumjump</td> </tr> </table> <!-- / forum jump --> </if> <br /> $footer </body> </html> Easy |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|