The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I've been beating my head against the wall. I know there should be a way to do it. But I can't seem to get a valid (and current) pointer on how to do it. I've tried searching, but that's failed me so far.
The problem: Common occurance. I've got a .com/.net/.org and a 4th related domain. All run the same content, as they're just pointed together. All are setup with a subdomain to point to the forum. What I want is to have vb set up a cookie for which ever domain a user logs in on, that can be used across that domains subdomains. So if they log into forum.xyz.com, I can use the cookie for game.xyz.com or just xyz.com. And I can do the same for each domain. Basicly a .xyz.com cookie when you login via xyz.com, and a .xyz.net when you login via xyz.net. Or, if there's no such mod, point me in the direction of the cookie code. It shouldn't be too hard to create at least an inelegant hack that'd set the cookie up for the current domain. |
#2
|
|||
|
|||
![]()
Turns out, there's actually a very easy way to do it, just overload the cookie domain variable with the correct domain name. I did it by calling a custom function to strip the base domain name from $_SERVER[SERVER_NAME] and return just the domain name (ie: xyz.com from qrs.xyz.com) and then setting the cookie domain variable to "." . $domain.
I'm sure if I wanted to spend a bunch of time at it, I could make a nice elegant hack that ties into the AdminCP, but right now I've got other matters on my plate. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|