2005-03-17, 12:05 AM
I've been staring at this problem for far too long, and searched far too many threads, and I still can't see the wood for the trees!
I have a forum, based at mystie.com/forum. So far so good.
I also have a eShop, at mysite.com/shop. The shop uses the same user table as the forum, so that if the user updates the password, the password is updated for both parts. The individual log-in works for both sections of the site, without fail! Fantastic!
However, I can't always get the user variables from myBB, when I access the shop. The idea is that the user logs into the forum, and then, if they like a product being discussed, they can select an existing link, and be taken to the shop, pre-logged in. I've included the require('..forum/global.php') line, but this returns errors, because the include files within the global file cannot be found, due to incorrect location.
What is the correct way/fix to be able to get the myBB variables from another page, held in another directory on the same server?
Any ideas would be great.
MAny thanks
Absolute.
I have a forum, based at mystie.com/forum. So far so good.
I also have a eShop, at mysite.com/shop. The shop uses the same user table as the forum, so that if the user updates the password, the password is updated for both parts. The individual log-in works for both sections of the site, without fail! Fantastic!
However, I can't always get the user variables from myBB, when I access the shop. The idea is that the user logs into the forum, and then, if they like a product being discussed, they can select an existing link, and be taken to the shop, pre-logged in. I've included the require('..forum/global.php') line, but this returns errors, because the include files within the global file cannot be found, due to incorrect location.
What is the correct way/fix to be able to get the myBB variables from another page, held in another directory on the same server?
Any ideas would be great.
MAny thanks
Absolute.