PDA

View Full Version : use vbulletin class in non vb sites


mohammad6006
12-19-2014, 05:58 PM
my forum is in subdomain for example : forum.site.com

i have another sub domain for example : new.site.com

now i want use vbulletin user login or session in new.site.com

require global.php

and use $vbulletin->userinfo['userid']

now i have 2 question:

1. i can login with vbulletin username from new.site.com but but wont show i as logged in

and when change Cookies and HTTP Header Options -> Path to Save Cookies
to : .site.com

new.site.com problem solve but can not login from forum

what path i need to set for save cookies??

2. Is right way to using vbulletin or api is better?

kh99
12-19-2014, 06:21 PM
and when change Cookies and HTTP Header Options -> Path to Save Cookies
to : .site.com

new.site.com problem solve but can not login from forum

I think you mean "Cookie Domain"? Anyway, maybe try setting Cookie Domain to .site.com and Path to Save Cookies to /


2. Is right way to using vbulletin or api is better?

I don't know about the api or if you can mix api with regular login. But I know other people have done it the way you're doing it (although usually not on a different subdomain).