On the project page there is the following text...

The module assumes that the old forum was located in the /forum directory and only redirects from there.

which refers to the phpBB_Redirect feature.

Does this also apply for migrating the attachments? i.e. does phpBB2Drupal assume that phpBB lives in /forum and that the attachments are in /forum/files ?

Second, if Drupal is installed in a directory, say /main, does phpBB2Drupal assume that phpBB is in /main/forum or /forum ? I have my Drupal install running at http://www.f1m.com/main and plan on keeping it that way and not redefining the docroot area...

Thanks,

Eric

Comments

naheemsays’s picture

1. no - that is just for phpbb_redirect.

2. That has no bearing on the import, just the url redirection when people try to visit an old phpbb style address. phpbb_redirect by default will assume the forum was in main/forum (so links such as main/forum/index.php?t=x will be redirected to the correct place). This limitation can be changed/worked around though.

naheemsays’s picture

Status: Active » Closed (fixed)
aitala’s picture

OK.. Maybe I need to rephrase things. How does the phpBB2Drupal module determine where the phpBB attachments are are stored?

The old version of F1M.com used the Post-Nuke CMS and the Forum is a modularized version of phpBB2 ... as far as I can tell the database tables only have the filename of the attachment and not its location within the directory structure.

Can I just copy the attachments from the PostNuke area ( /classic/modules/PNphpBB2/files) to the Drupal files area ( /main/files ) or should I just move/copy the entire PN phpBB2 module somewhere within the Drupal install?

Hate to bother folks with this, but I really want to kill off my old Post-Nuke site. I would prefer to keep things within Drupal and not have to use a bridge module to phpBB2 (or phpBB3).

Thanks much,
Eric

naheemsays’s picture

It doesn't - it asks you to move them to a location somewhere within the files/ folder (can't remember exactly where, but it should be mentioned in the docs, or you can look in the database to see what the path was stored as...). Should fit your needs pretty well.

aitala’s picture

Hey,

Ok, I see where the module thinks phpBB2 is installed. Perhaps this should be a user configurable setting instead of an inaccessible (from Drupal) variable. I can think of several webhosts that might do an auto-install of phpBB in a differently named or located directory.

I also don't see any mention of this in any documentation.

Eric

naheemsays’s picture

That data is only needed for the redirection, and for this there are a number of obstacles:

1. for redirection to be invoked through drupal, it must assume the original location was within the drupal install directory. Simply put, drupal does not react to inputs outside its control - which is expected. If drupal is installed in /main, with any fancy redirects, symlinks etc etc, you will not expect it to act over the /phpbb folder too.

2. The redirection is done via the drupal menu system.

The first cannot be overcome within drupal (but can in e.g a .htaccess file in the correct forum location), and sort of rules out any need to overcome the second limitation. If you are partially gonna use apache redirects, might as well fully use them to redirect to the forum/ directory.