The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Global.php access from different website?
Is it possible for me to include the global.php file in some code from a website that is different than my vbulletin site?
What I am trying to accomplish is to allow members of a specific usergroup on my vb site, to have access to a private section on one of my non vb sites. Thanks |
#2
|
|||
|
|||
Yes that is possible, you may also have to use the chdir PHP function to change to the right directory.
|
#3
|
|||
|
|||
Thanks for the reply. How would I call it? Would I need to include db info?
|
#4
|
|||
|
|||
In case your forum is located at /forum, I believe it's a matter of doing:
PHP Code:
|
#5
|
|||
|
|||
This is going to be called from a different website, so wouldnt I need to use the full url of where the forum resides?
|
#6
|
||||
|
||||
A different server? No.
|
#7
|
||||
|
||||
Did the op say anything about a different server?
|
#8
|
||||
|
||||
Quote:
Context is important I suppose If both sites are not on the same server, then you can't do what you want all that easily, in some cases even if it is, it may prove difficult. Session/Domain checking is not likely to work well cross domain. I would suggest using something on the vBulletin side of things to send an auth token to your other site, to authenticate them when they leave to go to your other site. |
Благодарность от: | ||
ozzy47 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|