The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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.. |
#3
|
|||
|
|||
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...
|
#4
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|