Hi,
sorry that I have to ask this but I am new to Xoops and so also new to the Protector Module. So I do have a few problems understanding how to make it work or install it.
The README states the following:
First, define XOOPS_TRUST_PATH into mainfile.php if you've never done it yet.
Maybe if I knew Xoops better I would know what that would mean exactly, what to change, but I don…t yet. Some help would be highly appreciated.
Copy html/modules/protector in the archive into your XOOPS_ROOT_PATH/modules/
Copy xoops_trust_path/modules/protector in the archive into your XOOPS_TRUST_PATH/modules/
I got the first part of that, but with the trusted path, I don…t understand yet. So that doesn…t comes into the same folder than the first part ?
modules/Protector
Sorry if that sounds noobish but best to ask before doing it wrong.
And after installing the Module, the changes in the mainfile.php ...
[code] include XOOPS_TRUST_PATH.'/modules/protector/include/precheck.inc.php' ;
if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '' ) {
include XOOPS_ROOT_PATH."/include/common.php";
}
include XOOPS_TRUST_PATH.'/modules/protector/include/postcheck.inc.php' ;
Does it matter where in the mainfile I add these 2 lines ?
You probably have been asked these things hundreds of times but I would appreciate if you could clarify these things for me so I can use that Module without messing things up from the start.
Thank you in advance.
Wolfseye
You may have a look at
this (step 4) to define the "XOOPS_TRUST_PATH".
Yes, there are 2 sets of files to be copied, one to XOOPS_ROOT_PATH/modules/, and one to XOOPS_TRUST_PATH/modules/
The two red lines should be added exactly as instructed in the README.
Here is an example of my mainfile.
define('XOOPS_ROOT_PATH', '/home/avtx30/public_html');
define('XOOPS_URL', 'http://www.nhatban.net');
define('XOOPS_TRUST_PATH','/home/avtx30/trusted');
// blah blah
include XOOPS_TRUST_PATH.'/modules/protector/include/precheck.inc.php' ;
if (!isset($xoopsOption['nocommon']) && XOOPS_ROOT_PATH != '') {
include XOOPS_ROOT_PATH."/include/common.php";
}
include XOOPS_TRUST_PATH.'/modules/protector/include/postcheck.inc.php' ;
HTH
Yes, two different paths. In my mainfile.php example above:
- XOOPS_ROOT_PATH is "/home/avtx30/public_html"
- XOOPS_TRUST_PATH is "/home/avtx30/trusted"