vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Login.php Help (https://vborg.vbsupport.ru/showthread.php?t=182837)

Koushukei 06-18-2008 09:25 AM

Login.php Help
 
Was wondering, is there anyway to make the login on the navbar login to 2 different locations? For instance, would something like this work:

<form action="login.php?do=login" action="/testboard/login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">

I'm not sure how I would go about making the login submit login to 2 different locations or if it's even possible.

Dismounted 06-18-2008 09:34 AM

You cannot submit to two locations. You could, however, submit to your script first, which then redirects to another script.

Koushukei 06-18-2008 09:41 AM

Basically what I'm trying to do is show a vbulletin mod on another page, thats in another directory, but it seems vbulletin needs to have it logged in the same dir, to show the mod working for registered users. Like this is exactly what I have:

public_html/index321.php (for the login form for the mod to show)
then:
public_html/forum/index.php (the normal install of vbulletin)

You have any example code that'll login and stay on the forum/index.php page, but also login the index321.php file?

Dismounted 06-18-2008 10:00 AM

You need to chdir() to your forums directory, then include global.php.


All times are GMT. The time now is 12:34 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.00971 seconds
  • Memory Usage 1,707KB
  • 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)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