vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Problem with custom login system (https://vborg.vbsupport.ru/showthread.php?t=211410)

accessdev 04-16-2009 05:38 PM

Problem with custom login system
 
Hi,

i m currently workin on implementing the login of my website on a vbulletin forum

i created a key vbUserId in my user table and successfully plugged it in vbulletin so i m able to appear logged as the correct user on vbulletin after logon on my website.



all seems to work well , except that all the post i made after login as marked as posted as "Guest" on the forum

and *only* in showthread.php (eg on forum/index.php i m able to see that last poster was my user and got a link to correct profile)

When can i search to find the issue ?

note that i m using 3.8.2 with no plugins

the only modification i made in vb is in class_core.php around 2750

Code:


if (LoggedOnMainWebSite()){
// setting $userid and $password variables
}


Dismounted 04-17-2009 02:57 AM

Instead of mashing two systems together, your best bet would be to only use one system, yours, or vBulletin's. Using vBulletin's is probably easier, as you'll find it quite hard to change vBulletin's system (tight coupling).

Look in login.php/functions_login.php to see how authentication is done.

accessdev 04-17-2009 05:22 AM

we dont have the choice actually

the website use itself various authentification system

i think we can get the job done has we got only a few problems after these modifications.

i will get deepers into login.php/functions_login.php ;)

accessdev 04-18-2009 06:36 AM

job done, i just forgot to fill two other tables after vb_user , now it works perfectly ;)


All times are GMT. The time now is 10:45 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.01671 seconds
  • Memory Usage 1,709KB
  • 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)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