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 04-13-2006, 08:40 PM
AFemaleProdigy's Avatar
AFemaleProdigy AFemaleProdigy is offline
 
Join Date: Mar 2006
Location: Murrells Inlet, SC
Posts: 216
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 04-14-2006, 03:48 PM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 04-14-2006, 04:08 PM
AFemaleProdigy's Avatar
AFemaleProdigy AFemaleProdigy is offline
 
Join Date: Mar 2006
Location: Murrells Inlet, SC
Posts: 216
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 -->
Reply With Quote
  #4  
Old 04-16-2006, 04:34 PM
Pranab Pranab is offline
 
Join Date: Mar 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 04-16-2006, 11:25 PM
AFemaleProdigy's Avatar
AFemaleProdigy AFemaleProdigy is offline
 
Join Date: Mar 2006
Location: Murrells Inlet, SC
Posts: 216
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That absolutely did the trick!! Works great! :banana: THANK YOU SO MUCH!!
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 07:42 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.03644 seconds
  • Memory Usage 2,209KB
  • Queries Executed 13 (?)
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
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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