vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   how can i make ppl login from of a blank page? (https://vborg.vbsupport.ru/showthread.php?t=285838)

Dondxon 07-22-2012 04:04 PM

how can i make ppl login from of a blank page?
 
hey!

I would like to make a login place from of another page than the forums.

Like this,
PHP Code:

forum name:<br />
<
input name="username" type="text">
<
br />
<
br />
username<br>
<
textarea name="password" type="password">
</
textarea>
<
br>
<
input type="submit"

but than with that info it logs you in to the forums.

can anyone help me with this?

thanks.
Dondxon.

Scanu 07-22-2012 04:50 PM

The site where your form is loacated is the same of the site?

Dondxon 07-22-2012 09:44 PM

yes
lets say, they have to login on www.syndromeex.com/vb/ (forums directory)
and i want another login place on www.syndromeex.com/testlogin.php just a random called site.

so i should make a code that sends the username and password from testlogin.php to ./vb/?

Scanu 07-22-2012 10:03 PM

HTML Code:

forum name:<br />
<form action="vb/login.php?do=login" method="post">
<input name="username" type="text">
<br />
<br />
username<br>
<textarea name="password" type="password">
</textarea>
<br>
<input type="submit"> 
                                <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
                                <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                                <input type="hidden" name="do" value="login" />
                                <input type="hidden" name="vb_login_md5password" />
                                <input type="hidden" name="vb_login_md5password_utf" />
</form>

I didn't try it but it should work ;)

Dondxon 07-23-2012 09:01 AM

no it doesnt work. it says ive filled in the wrong password. and i guess ive fked up the html code aswell.
Can anyone write me a working html for this :S?

--------------- Added [DATE]1343037976[/DATE] at [TIME]1343037976[/TIME] ---------------

o nevermind. i alerady have one now:D
HTML Code:

<form method="post" action="/vb/login.php">
username
<input type="text" name="vb_login_username" />
password
<input type="password" name="vb_login_password" />
<input type="submit" value="login" />
</form>
<!-- login form -->
        <form action="vb/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)">
        <script type="text/javascript" src="vb/clientscript/vbulletin_md5.js"></script>
        Username: <input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="Username" onfocus="if (this.value == 'Username') this.value = '';" />
        <input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" 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="Login" tabindex="4" title="" accesskey="s" />
        <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" />
        <input type="hidden" name="vb_login_md5password_utf" />
        <input type="hidden" name="url" value="http://www.syndromeex.com/" />
        </form>


Scanu 07-23-2012 09:13 AM

So this works?
Code:

        <form action="vb/login.php" method="post" onsubmit="md5hash(vb_login_password,vb_login_md5password,vb_login_md5password_utf)">
        <script type="text/javascript" src="vb/clientscript/vbulletin_md5.js"></script>
        Username: <input type="text" class="button" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="1" value="Username" onfocus="if (this.value == 'Username') this.value = '';" />
        <input type="checkbox" name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" 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="Login" tabindex="4" title="" accesskey="s" />
        <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" />
        <input type="hidden" name="vb_login_md5password_utf" />
        <input type="hidden" name="url" value="http://www.syndromeex.com/" />
        </form>


Dondxon 07-24-2012 08:54 PM

no the one you send didnt worked properly at all. it said ive filled in a wrong username / pass


All times are GMT. The time now is 06:26 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.01089 seconds
  • Memory Usage 1,751KB
  • 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
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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