vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Login on home page is not redirecting... (https://vborg.vbsupport.ru/showthread.php?t=112948)

AFemaleProdigy 04-13-2006 08:40 PM

Login on home page is not redirecting...
 
I have created a login form on a non-vb page. It logs you in ok, but is not redirecting to the forum. It only sends you right back to the login age. I took the code directly from my board source. Can anyone tell me what I need to change in order to make it redirect to the board?

Here is the login page... http://www.womens-health.com/index2.php

And here is the board... http://womens-health.com/boards

Thanks!

sabret00the 04-14-2006 03:48 PM

without seeing the code, i'm not totally sure. but i know you can specify the location you're sent to when you login via a plugin.

AFemaleProdigy 04-14-2006 04:08 PM

Code:


<!-- login form -->

  <form action="http://www.womens-health.com/boards/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password)">

  <script type="text/javascript" src="<A href="http://www.womens-health.com/boards/clientscript/vbulletin_md5.js"></script">http://www.womens-health.com/boards/clientscript/vbulletin_md5.js"></script>

            <table width="72%" cellspacing="3" cellpadding="0">

              <tr>

                <td nowrap="nowrap"><span class="smallfont">User Name</span></td>

    <tr>

                <td nowrap="nowrap"><input class="bginput" name="vb_login_username" size="20" type="text" /></td>

              </tr>

    <tr>

      <td><span class="smallfont">Password</span></td>

    </tr>

    <tr>

                <td><input class="bginput" name="vb_login_password" size="20" type="password" /></td>

    </tr>

    <tr> 

    <td nowrap="nowrap"><span class="smallfont">

                  <input checked="checked" class="bginput" name="cookieuser" id="cb_cookieuser" type="checkbox" value="1" />

                  Remember Me?</span></td>

              </tr>

    <tr>

                <td><input name="submit" type="submit" class="button" value="Log in" /></td>

              </tr>

    <tr> 

    <td align="center" rowspan="2" width="100%"><font size="3" face="Arial, Helvetica, sans-serif">Not

                  a member yet?<br />

                  <a href="<A href="http://www.womens-health.com/boards/register.php">Register">http://www.womens-health.com/boards/register.php">Register

                  Now!</a></font></td>

              </tr>



            </table>

            <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" />

  </form>

  <!-- / login form -->


Pranab 04-16-2006 04:34 PM

This post could help!

Code:

<form action="http://www.yoursite.com/forums/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)">
<script type="text/javascript" src="http://www.yoursite.com/forums/clientscript/vbulletin_md5.js"></script>
Username: <input type="text" name="vb_login_username" size="10" accesskey="u" tabindex="1" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /><br />
<label for="cb_cookieuser"><input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser" accesskey="c" checked="checked" />Remember Me?</label><br />
Password: <input type="password" class="button" name="vb_login_password" size="10" accesskey="p" tabindex="2" />
<input type="submit" class="button" value="Log in" tabindex="4" title="Enter your username and password in the boxes provided to login" accesskey="s" />
<input type="hidden" name="do" value="login" />               
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
<input type="hidden" name="url" value="http://www.foobar.com" />
</form>

The value of the hidden input 'url' is what you want to change..

Hope this helped.

AFemaleProdigy 04-16-2006 11:25 PM

That absolutely did the trick!! Works great! :banana: THANK YOU SO MUCH!!


All times are GMT. The time now is 10:57 AM.

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.03419 seconds
  • Memory Usage 1,730KB
  • 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
  • (5)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