View Single Post
  #1  
Old 09-22-2008, 09:37 PM
sector77 sector77 is offline
 
Join Date: Jan 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Welcome "Username" Screen after Login

Hello everyone! I've been using vb for quite a while but am only now attempting to integrate the log in screen on an outside .php home page. In other words, I want people to have the ability to log in to my site (www.trancesessions.com) and be able to see every page (including the forum) as a member.

I was able to set up the username/pw log in screen on the home page (www.trancesessions.com). But I have two problems. One, once the member logs in successfully, it takes that member directly to the forum (which is ok and I know how to change where it routes them to).

What I would like to do is make it so that once the person logs in, they are taken back to the same page but instead of seeing the username/pw boxes, they'll see a welcome 'username' area that is similar to the welcome message you get when you log in directly to the forum.

Does anyone have any idea how to do this or what code I can use to achieve this? I'm sorry if I did a bad job of explaining it and will elaborate to the best of my ability if you have any questions.

Thank you for any help!!!

PS. This is currently the code I have on the home page for the log in screen:

Code:
<!-- login form -->
		<form action="forums/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)">
		  <div align="left">

		    <script type="text/javascript" src="forums/clientscript/vbulletin_md5.js"></script>
		  <font face="Verdana, Arial, Helvetica, sans-serif" size="-2">
		  Username:
		  <br>
		  <input type="text" class="button" name="vb_login_username" id="navbar_username" size="20" accesskey="u" tabindex="1" onFocus="if (this.value == 'Username') this.value = '';" />		  
		  <br />
		  Password:
		  </font>
		  <br> 
		  <input type="password" class="button" name="vb_login_password" size="20" accesskey="p" tabindex="2" />

		  <input type="submit" class="button" value="Login" tabindex="4" title="" accesskey="s"/>
		  </div>
		  <div align="left">
		  <input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" checked="checked" />
		  <font face="Verdana, Arial, Helvetica, sans-serif" size="-2">
		  Remember Me
		  </font>
		  </label>
		  </div>

		  <br>
		  <div align="left">
		  <font face="Verdana, Arial, Helvetica, sans-serif" size="-2">
		  Not a member?
		  <a href="http://www.trancesessions.com/forums/register.php">Register Here</a>
		  </font>
		  </div>
		  <input type="hidden" name="s" value="" />
		  <input type="hidden" name="do" value="login" />

		  <input type="hidden" name="forceredirect" value="1" />			
		  <input type="hidden" name="vb_login_md5password" />
		  <input type="hidden" name="vb_login_md5password_utf" />
		  <input type="hidden" name="url" value="http://www.trancesessions.com/forums" />
		    </div>
		</form>
		<!-- / login form -->
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01042 seconds
  • Memory Usage 1,776KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)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 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete