I have installed Drupal 4.7.6 in the folder

http://localhost/lab/cmsintegration/drupal/

and Phorum 5.1.19 in

http://localhost/lab/cmsintegration/drupal/phorum

and installed the phorum_integrate module (and embed_phorum) according to the instructions in phorum_integrate
module's README. I also had to copy the template files from

E:\xampplite-1.5.4a\htdocs\lab\cmsintegration\drupal\phorum\mods\embed_phorum\templates

to

E:\xampplite-1.5.4a\htdocs\lab\cmsintegration\drupal\phorum\templates

I activated the "Embed Phorum Template 1.0-alpha" in phorums admin pages.

I can now see the phorum embedded in drupal, but the links within the forum (phorum) looks like

http://localhost/?q=discuss/index,0

when they should look like

http://localhost/lab/cmsintegration/dupral/?q=discuss/index,0

That is, everything in the path that comes after the server name, is missing.

I'm running
ApacheFriends XAMPP Lite version 1.5.4a, with:
+ Apache 2.2.3
+ MySQL 5.0.24a
+ PHP 5.1.6 + PEAR (basic package)
on Windows XP.

Comments

saml’s picture

Status: Active » Needs review

I fixed this by changing the lines

    $url = ((isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on")
         ? "https://" : "http://") .
         $_SERVER["HTTP_HOST"] . '/'. $path;

to

    $url = ((isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on")
         ? "https://" : "http://") .
         $_SERVER["HTTP_HOST"] . $_SERVER["PHP_SELF"] . $path (My xampp install doesn't have support for that)

in phorum_connector.php (located in the phorum_integrate drupal module folder).

Also, I forgot to say that I don't have clean url's enabled.

saml’s picture

Sorry for the typo in the new code snippet above.
The new code is of course:

    $url = ((isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on")
         ? "https://" : "http://") .
         $_SERVER["HTTP_HOST"] . $_SERVER["PHP_SELF"] . $path;

(The extra line was meant to be outside the code snippet, saying that my XAMPP doesn't have support for clean url's).