The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello to all,
I see many forums that have a side box with the login forms there. I was wondering if this is a special coding sequence or how to make this effect? I am not sure if I make a box in photoshop and add in a form in dreamweaver and then for the submit or go button, link it to login.php? Thank you for your Help Chris |
|
#2
|
|||
|
|||
|
Here is the peace of code that i use on my portal site.. it?s a custom made template
and has the login in box on it. and also if the user is alreay logged in . it shows the psstats /schneberger Code:
<!-------put entire code where you want it-------->
<!------show logged in user----->
<if condition="$show['member']">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase>
</strong></if>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]"2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<!-----show logged in user---->
<!-----login form------>
<if condition="$show['guest']">
<form action="$vboptions[bburl]/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">
<script type="text/javascript" src="$vboptions[abspath]/clientscript/vbulletin_md5.js"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont" width="60"><font size="1" face="Tahoma" color="#FFFFFF"> User Name:</font></td>
<td><input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" width="100"><font size="1" face="Tahoma" color="#FFFFFF">Password:
(</font><a href="login.php?do=lostpw"><font size="1" face="Tahoma" color="#FFFFFF">forgot?</font></a><font size="1" face="Tahoma" color="#FFFFFF">)</font></td>
<td><input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="4" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="vb_login_md5password" />
</form></if>
<!-- / login form -->
<!-----put entire code where you want it------>
|
|
#3
|
|||
|
|||
|
thanks so much
--------------- Added [DATE]1202512124[/DATE] at [TIME]1202512124[/TIME] --------------- Is there no talkupation here or rep points? Well you deserve it |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|