Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-18-2010, 09:15 AM
falco008 falco008 is offline
 
Join Date: Mar 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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>
This is all working fine , however I would like to port the full login we have on our forums
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 -->
anyone any idea how to do this?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:20 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03186 seconds
  • Memory Usage 2,169KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete