The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
VBulleting login bow on external pages
Hi
I have integrated a simple login box on an exernal html page using the following code Code:
<form action="http://www.pokerclub.be/forum/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="/path" /> <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" /> <input type="hidden" name="url" value="http://www.pokerclub.be/wordpress/" /> </form> www.pokerclub.Be (member panel on right top , included in header) so that is gives basis info when you are logged in ( last visited, private msgs, user name, etc..) this is the code used in our forums header Code:
</div> <if condition="$show['member']"> <div class="memberPanel"> <div class="member_box_input"> <strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br /><br /> <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase> <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> <if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if> </div> </div> <else /> <div class="memberLogin"> <!-- login form --> <form action="/forum/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])"> <script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script> <div class="member_box_input"> <div class="member_username">Username: </div> <div class="member_input"><input type="text" class="bginput_login" name="vb_login_username" id="navbar_username" size="31" accesskey="u" tabindex="101" value="Username" onfocus="if (this.value == 'Username') this.value = '';" /></div> <div class="member_password">Password: </div> <div class="member_input"><input type="password" class="bginput_login" name="vb_login_password" id="navbar_password" size="31" tabindex="102" value="Password" onfocus="if (this.value == 'Password') this.value = '';" /></div> </div> <div class="member_box_submit"> <input type="image" src="http://www.pokerclub.be/forum/images/styles/pokerclub/style/goButton.gif" value="Submit" alt="Submit" tabindex="104" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" /> </div> <div style="clear:both"></div> <div class="smallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></div> <div class="memberPanelLink"><img src="http://www.pokerclub.be/forum/images/styles/pokerclub/style/arrowBullet.gif" alt="Bullet" class="imgalign" /> <a href="/forum/login.php?do=lostpw">Forgot password?</a></div> <div class="memberPanelLink2"><img src="http://www.pokerclub.be/forum/images/styles/pokerclub/style/arrowBullet.gif" alt="Bullet" class="imgalign" /> <a href="/forum/register.php">Not registered?</a></div> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> </form> <!-- / login form --> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|