vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Integrate login and sessions into non-vB pages. (https://vborg.vbsupport.ru/showthread.php?t=40508)

Sion 07-01-2002 11:29 AM

Integrate login and sessions into non-vB pages.
 
Here's what I'm trying to do:

I am trying to create a website incorporating vB and its user DB table. I want to create an include file that checks if the user is logged in or not and and then for it to use vB's sessions. This include file will go in all my pages.

Eg. A user arrives at the home page of my site, and is not logged in thus he/she has a little login form (not vB's main login). Once logged in, the user can see the myaccount admin features.

ie. -> I have an if/else multi-purpose page which is different if the user is logged in or not.

I know it has something to do with global.php but I'm not sure what else I have to include.

I hope you are following, please ask any questions if you need me to clarify anything.

Thanks in advance,

Sion

Logician 07-01-2002 12:18 PM

if what you are trying to achieve is to serve a non-vb web page (that can compile data from vb db) to your vb members (only to some usergroups or to some special users) when they logged in, try WebTemplates:
https://vborg.vbsupport.ru/showthrea...threadid=36419

It can save you from the trouble of coding..

Sion 07-01-2002 12:34 PM

To be honest, I think this is a little too much for what I need. I just need to know how to use vB's sessions/login features - I'll benefit by building the rest myself as I'm still in the early stages of learning...

Darren Lewis 07-10-2002 09:17 AM

You will need to require vb's global.php file at the top of your non-vb pages. You can then use vb's functions on the non-vb page. I've created a welcome/login box on my non-vb homepage.

You can also use other scripts to pull info from the forums to the non-vb pages too.

Have a look at my site if you want an idea.

Some people use vbportal to do this kind of stuff.


All times are GMT. The time now is 01:36 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.00903 seconds
  • Memory Usage 1,713KB
  • 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