vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I put in forum login field on website? (https://vborg.vbsupport.ru/showthread.php?t=124611)

King Justice 08-22-2006 08:00 AM

How do I put in forum login field on website?
 
Hi. How can I put a forum login field on my website? I tried it, and it semi-worked. When the user logs in though, they go right back to where they came from which would be my website - I want them to land on the index page of the forum. How can I do this?

Thanks.

I suppose it would be cloaking or hiding the referral from going into the header of the login.php file somehow I need to accomplish this with my login field.

djr 08-22-2006 10:39 AM

In the login-form there are two hidden fields called 'url' and 'forceredirect'. Have you tried editing those?

King Justice 08-22-2006 06:04 PM

Quote:

Originally Posted by djr
In the login-form there are two hidden fields called 'url' and 'forceredirect'. Have you tried editing those?

No, please help me. I'm not sure what you mean. Here is my form code:

Code:

<form action="forum/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)">
<input name="vb_login_username" class="login" type="text" value="Username" />
<input name="vb_login_password" class="login" type="password" value="Password" />
<input type="submit" value="Login!" class="loginbox" />
<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>


djr 08-26-2006 09:33 AM

Add these fields to your form:
<input type="hidden" name="forceredirect" value="1" />
<input type="hidden" name="url" value="http://www.google.com" />


All times are GMT. The time now is 10:41 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.00993 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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