The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
I don't if this is the right forum. If it's not, i apologize and please move to the right/apropriate forum. Im setting up a website (on the same domain [subdomain]) outside the forum directory and i want to share cookies and sessions BUT without including the vB global.php file. I don't like the idea of including the global.php because there is to much complexity in the vB functions/classes structures that i don't really need. I want to eliminate any overhead by just sharing the sessions and the cookies. Anyone tried this before? Do i need really to code a custom sessions.php or is there something i can do with the vB API's I really need this, please please please, any help is appreciated. Grtz, Hidjra |
#2
|
|||
|
|||
![]()
You'll probably need quite a few files regardless of including global.php.
The minimum would be class_core.php, and initialise at least vB_Session. (which will probably need the database class as well as the registry class) |
#3
|
|||
|
|||
![]() Quote:
Grtz, Hidjra |
#4
|
|||
|
|||
![]()
IF you're not an advanced coder, the best (and really only solution) will be to include global.php
Doing it any other way is quite a hard road. |
#5
|
||||
|
||||
![]()
What do you mean by "share the cookies and sessions", what exactly is it you want to do ?
|
#6
|
|||
|
|||
![]() Quote:
So basicly i'm trying to include the vb userinfo in a nonvb environment. I want members to be able to login to vb without leaving the nonvb page and to stay logged in while browsing outside of vb. We also want people browsing on nonvb pages to be counted in the loggedin users thingy. Any help is appreciated ![]() Grtz, Hidjra |
#7
|
|||
|
|||
![]()
No one any ideas?
|
#8
|
|||
|
|||
![]()
I'm looking for this too. I want to restrict guest access to non-vB pages of my site. For example, I want them to be redirected to the forum login page if they are not logged in and want to view my glossary.
I don't want to include global.php, because it contains a lot of code (and includes other files) that I do not need. I'll probably end up hacking global.php to bits and pieces to get only the vital code, but thought I'd check here first. |
#9
|
||||
|
||||
![]() Quote:
In vB options, how did you set your Cookie domain? Quote:
Code:
<?php if (!$vbulletin->userinfo['userid']) { header("Location: http://www.whatever_page.com/"); exit; } ?> |
#10
|
|||
|
|||
![]() Quote:
The cookies are all working without any problems. Grtz, Hidjra |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|