vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Login Box integrated.... (https://vborg.vbsupport.ru/showthread.php?t=106165)

Realm of Horror Comics 01-24-2006 01:47 AM

Login Box integrated....
 
Hey guys,

I have the following code on my sites homepage so that they can log directly into the forum itself. It works fine, except when you enter your username and password, it logs you in, but then redirects to the site homepage again.

What in the code do I need to change to make it go to the form after a user logs in?

Thanks

Here's the code:-

Code:


<!-- login form -->
  <form action="login.php" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
  <script type="text/javascript" src="clientscript/vbulletin_md5.js"></script>
  <table cellpadding="0" cellspacing="3" border="0">
  <tr>
  <td class="smallfont">User Name</td>
  <td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td>
  <td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />Remember Me?</label></td>
  </tr>
  <tr>
  <td class="smallfont">Password</td>
  <td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" size="10" accesskey="p" tabindex="102" /></td>
  <td><input type="submit" class="button" value="Log in" 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" /></td>
  </tr>
  </table>
  <input type="hidden" name="s" value="" />
  <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 -->

Code:


*bump*

Could someone please help me with this?

*bump*

Could someone assist please?

Realm of Horror Comics 01-27-2006 12:43 AM

someone please.........

Marco van Herwaarden 01-27-2006 06:56 PM

login.php will always redirect back to the page it was called from. I don't think there is a way to go to another page, but i might be wrong.

What is so bad about being returned to the homepage, that would for most people be the expected behaviour.

Realm of Horror Comics 01-27-2006 08:31 PM

There's gotta be someway of doing it.

What is the actual line of the code that makes it redirect to the originating page?

Guest210212002 01-27-2006 08:40 PM

You might get away with adding a conditional to login.php that states If (user = logged in) then (meta redirect to wherever).

Realm of Horror Comics 02-01-2006 12:46 AM

Thanks everyone for the support but I've got the problem fixed now.

This thread may as well be closed.

SlySnake 11-15-2006 09:38 PM

How did you fix it?

shivam 11-24-2006 05:45 PM

Id love to know too


All times are GMT. The time now is 07:03 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.01514 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete