Modules: Moved - replace and redirect from your missing module pages

Posted by: solo71on 2005/6/22 10:05:41 5515 reads
The WolFactory is proud to announce the release of a new utility module : Moved 1.0.

The purpose of this module is to automatically redirect missing page from removed/missing modules of your Xoops site.

What for? Let say you want to change of main module on your site, and switch from "section" to "WFsection" for instance. All your previously referenced pages would lead to dead end, and you would probably loose some rank places. This module would automatically replace those missing pages and redirect to your new section module.

Tested and approved by Arma sa (sample page).


Moved is missing page redirection module, which allows you to redirect bots or user from a missing module pages, to another place.

1) Installation
The purpose of this module is to replace a missing module. Follow the next 5 steps to proceed to the missing module replacement;

a. Unzip the Moved module on your hardrive.
b. Rename the 'moved' directory with the replaced module name (ie. : moved -> section)
c. Edit the 'xoops_version.php' file, and replace the followin line :
$modversion['dirname'] = "moved";
with the replaced module name : (ie : $modversion['dirname'] = "section";)
d. Upload the zip archive 'myHome' directory in the server 'modules' directory of your Xoops site.
e. Install throught the module admin system.
f. Edit the module preferences, and indicate the replacement module url.
(ie : modules/wfsection/)

That's it.

2) Module Preferences
Click on the module logo's preferences link in admin area.

1.a. Redirection

Replace the replaced index page by another page.
- Displaying an absolute or relative url (can be outside your website).
- Leave blank for default homepage (default).

1.b. Index Logo

Display a logoon your redirection page. Enter the picture url here. Leave empty to display none.

1.c. Redirection text

Place here your redirection message.

1.d. Redirection timer
Define how many second the redirection page is displayed in seconds.

3) Module adaptation
Default redirection pages are following :
- index.php
- category.php
- client.php
- content.php
- item.php
- join.php
- page.php
- print.php
- rate.php
- submit.php

Check in your replaced module (module root files) wether those files cover all the existing file. If some are missing, just copy the index.php file from the moved module and rename it alike the removed module missing file.

4) More than one module...
It is possible to clone the 'Moved' module and use it for more than one missing module. Just respect the installation process as explained above.

Happy Xoopsing