Problem with $_SERVER['DOCUMENT_ROOT']

16 years 7 months ago #46180 by helluvaguy
Problem with $_SERVER['DOCUMENT_ROOT'] was created by helluvaguy
I've just started with CB and this phpbbconnector. It's quite impressive but I encountered a problem with the directory for phpBB in the connector setup. First up a few infos

Absolute path of joomla: /customer/mine/websites/scouts/joomla
Live Site of joomla: mysite.com/joomla
Absolute path of phpBB: /customer/mine/websites/scouts/phpBB
Live Site of phpBB: mysite.com/phpBB

For the phpbbconnector to work I have to fill websites/scouts/phpBB in as directory for phpBB, but due to this all links in a users Profile to his postings in phpBB are linking to
mysite.com/websites/scouts/phpBB/viewtopic.php?t=1234
instead of
mysite.com/phpBB/viewtopic.php?t=1234

I took a look around in this forum and as far as I understand this statement, $_SERVER is getting the path for phpBB.
Is there a way to change it so it reflects the Live Site?

Thanks for any help.

Please Log in to join the conversation.

16 years 7 months ago #46480 by geeffland
Replied by geeffland on topic Re:Problem with $_SERVER['DOCUMENT_ROOT']
$_SERVER should give you the directory that matches the main website... v2 has better directory setting capability... hopefully it will come out public beta soon.

PM me more info on your site and I will see if I can offer additional help.

Greg

CB3PD Developer - CB Connector (formerly phpBB Connector) plugin

Please Log in to join the conversation.

Moderators: beatnantgeefflandmartijn189krileon
Time to create page: 0.155 seconds

Facebook Twitter LinkedIn