Martin CX
07-24-2002, 04:58 AM
We're running two BB systems on our site; a vB and a proprietary board with threading. If vB3 ever arrives we'll close the proprietary board down but until then I'm looking at ways of making the change more gradual for our users.
What I am working on is using the vB member info in the proprietary board (prop board) so that users have to login before using the prop board.
Granted, I'm a newbie when it comes to PHP scripting, but this is a bit more frustrating than I thought it would be.
I know I have to require the global.php, but as this is in another subdirectory than the rest of the props board (as in root/forum1 where the other is in root/forum2), I'm not sure how to go about doing it in the best if I use chdir ("../forum2/"); do I need to chdir("../forum1/") back before continuing with the script?
When I c'n'p'ed a small script from another thread (forgot which) just to test it:if_($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
echo "Welcome_back, <b>$username</b>";I got parse errors, but are they related to a failed require of global.php or have I missed a typo? :(
Ir's rather early - local time - and I haven't really slept, so I'm probably just missing something very basic, but it would really make my day, if one of you could push me in the right direction here.
Thanks,
Martin
P.S: I know of the (two) hacks, but I'm not interested in those, but I'm not really looking for any large-scale solutions. I just need to get these kinks ironed out.
What I am working on is using the vB member info in the proprietary board (prop board) so that users have to login before using the prop board.
Granted, I'm a newbie when it comes to PHP scripting, but this is a bit more frustrating than I thought it would be.
I know I have to require the global.php, but as this is in another subdirectory than the rest of the props board (as in root/forum1 where the other is in root/forum2), I'm not sure how to go about doing it in the best if I use chdir ("../forum2/"); do I need to chdir("../forum1/") back before continuing with the script?
When I c'n'p'ed a small script from another thread (forgot which) just to test it:if_($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];
echo "Welcome_back, <b>$username</b>";I got parse errors, but are they related to a failed require of global.php or have I missed a typo? :(
Ir's rather early - local time - and I haven't really slept, so I'm probably just missing something very basic, but it would really make my day, if one of you could push me in the right direction here.
Thanks,
Martin
P.S: I know of the (two) hacks, but I'm not interested in those, but I'm not really looking for any large-scale solutions. I just need to get these kinks ironed out.