vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   how to check if a user logined? (https://vborg.vbsupport.ru/showthread.php?t=212202)

persiangulf 04-26-2009 09:45 AM

how to check if a user logined?
 
I have a site that vbulletin is part of it. I want to use the vbulletin user table as my users table for both (my website and forum).
I have a problem to check if a user is logined or not ? though i saw the code and found out that i can use the global.php file and include it but it also includes other files that are in other folders and it makes problems.(my website file are in the outer folder of forum)
Is there a straightforward way to do this?

Dismounted 04-26-2009 11:00 AM

You must change the directory to the forum directory, using chdir(), before including global.php.

persiangulf 04-27-2009 02:15 AM

thanks that was great favor of you:)

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

by the way, i wanted to made logout link but i have problem in logouthash parameter that is made of two part that one of them is lastactivity and the other one is ... (i don't know please help me) :D. this is a sample of it :
login.php?do=logout& logouthash = 1240833757 - 81f79e1df06fb37cad64212a73ced51b0befd779 (what is this and where can i acquire it!)

sanjeev_jha 05-21-2009 10:13 AM

PHP Code:

logouthash$vbulletin->userinfo['logouthash']; 


Downsx 05-21-2009 02:10 PM

nvm already said.


All times are GMT. The time now is 11:31 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.03705 seconds
  • Memory Usage 1,711KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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