Mig can be configured to work with a number of content management systems, sometimes referred to as portal systems.
(Xoops users, see the Xoops section below. Geeklog users, see the Geeklog section below.)
Find the base install directory for your content management system. Using PHP-Nuke as an example, I'll assume that it's /www/mysite.com/nuke
Create a subdirectory called mig (i.e. /www/mysite.com/nuke/mig). Put all the files into that folder as described in the install document, except for the following changes.
$phpNukeCompatible
to TRUE. Change
$phpNukeRoot
to your Nuke directory (i.e. /www/mysite.com/nuke) -
not the Mig directory, but your Nuke directory.
(If you're using phpWebThings, you want instead to use the options
$phpWebThingsCompatible
and $phpWebThingsRoot
).
That should be it - http://yournukesite.com/mig.php should work.
PostNuke, PHPWebSite and PHPWebThings users can add Mig to their menus like anything else, just giving mig.php as the target to load.
PHP-Nuke users need a little more work to get their module in place due to PHP-Nuke's module system. In your modules directory, create a new module, such as Photo_Gallery and put this in a file called index.php inside the module directory:
<?php $baseHref = ereg_replace('/modules.*$', '', $PHP_SELF); header("Location: http://$SERVER_NAME$baseHref/mig.php"); ?>
Making sure there are no blank lines before the first line or after the
last line! If you don't want to cut and paste or type that in, you can
find this code in the phpnuke_module.php file in the mig-contrib
package also (available in the Extras
section on the web site).
To install on a Xoops site, find the base directory of your Xoops system. Inside there should be a modules subdirectory. In that modules directory, create a mig directory.
Install Mig in that mig subdirectory according to the install document, with the following changes:
xoops_version.php mig_logo.jpg language/english/index.html language/english/modinfo.php
The latter two should be modules/mig/languages/english/... (i.e. preserve the folder structure when you copy / move the files).
Edit Mig's config.php and set$mig_xoopsCompatible
to TRUE.
You may have to change $mig_xoopsRoot
, but the default should
work in most cases. Optionally set $mig_xoopsRBlockForImage
and
$mig_xoopsRBlockForFolder
as you wish.
After that just go to the modules admin in Xoops and install the module.
The module is called ``Photo Album''.
$mig_GeeklogCompatible
to TRUE. Change
$mig_GeeklogRoot
to the base directory of your Geeklog installation.
Use the public docs directory, not the private admin directory. Do not use
a trailing slash (``/''). Optionally set $mig_GeeklogRBlockForImage
and
$mig_GeeklogRBlockForFolder
as you wish.