vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - Simple login page/box/code for external pages (https://vborg.vbsupport.ru/showthread.php?t=174073)

Triky 04-04-2008 11:38 AM

Now I will try it. :)

Triky 04-04-2008 11:46 AM

Yup, I would like to have the same of smooth-c has requested. This becouse I can use this one in order to login an user on my forum.. but I want to make a login form and then a 'welcome box' in order to redirect my user to the same page, where they can see his welcome message (with avatar, if possible)..

LT Mote 05-21-2008 07:10 AM

Can this be used for an external domain as well? such as subdomain or domain1.com and domain2.com If so could u paste the appropriate code for me :)


Thanks in advance.

sdavis2702 05-29-2008 01:11 AM

Awesome hack... thanks!

I added the highlighted portion so that the site would open up in a new window :)

<form action="http://MySite'sURL/login.php?do=login" target="_new" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">


Thanks!!!

wicked80 05-29-2008 02:22 AM

Awesome...this was exactly what i was looking for since last couple of days for my wordpress homepage. Thanks a zillion !!!

ti07shadow 05-31-2008 05:18 AM

Now see this is a great mod, But I dont like external scripts for 1 reason, I tell my mmebers never to use one of these that directs to my forum for the fatal cause that someone probably implemented a logging code to get their login, thats one reason why I dont use these and tell my members only to loging directly on the forums. Otherwise this is a good code.

oz_girl 05-31-2008 11:47 PM

Awesome mod

cmedic101 08-14-2008 03:28 AM

Great mod:) Good instructions and it works well with 3.7x

thank you


cmedic101

Thronx 08-16-2008 05:36 PM

Many thanks indeed!

I see something interesting here. The code has referrences to a php variable and the javascript function mhash() in the onsubmit, which aren't in the html page (or included). Yet it still works. In fact, I removed all references to the function and php variable, and it *still* works! Perhaps the vBulletin login.php page sees missing values and generates them at that point.

This is the html code, amazingly:

<form action="path-to-your-forum/forums/login.php?do=login" method="post">
<input type="hidden" name="do" value="login" />
<input type="hidden" name="url" value="path-back-to-your-original-page" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="cookieuser" value="1" id="cb_cookieuser" tabindex="1" />
<label>Username:<input name="vb_login_username" type="text" id="login" tabindex="1" class="bginput" accesskey="u"/></label>
<label>Password<input name="vb_login_password" type="password" id="password" tabindex="1" class="bginput" /></label>
<input name="submit" type="submit" id="submit" tabindex="1" value="Login" accesskey="s" class="button" />
</form>

! Cheers, Jeffrey:D

gusfune 09-11-2008 01:03 AM

Quote:

Originally Posted by LT Mote (Post 1526554)
Can this be used for an external domain as well? such as subdomain or domain1.com and domain2.com If so could u paste the appropriate code for me

Works on any domain, just follow the instructions

Quote:

Originally Posted by Thronx (Post 1600173)
Many thanks indeed!

I see something interesting here. The code has referrences to a php variable and the javascript function mhash() in the onsubmit, which aren't in the html page (or included). Yet it still works. In fact, I removed all references to the function and php variable, and it *still* works! Perhaps the vBulletin login.php page sees missing values and generates them at that point.

Thanks! I'll be releasing an update soon with improvements on the code, update to the latest Vbulletin version (just going to do a few checks) and releasing a update that will make possible for users to show a "logged in" box in external pages. Coming soon.


All times are GMT. The time now is 02:58 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.01269 seconds
  • Memory Usage 1,740KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete