1
Hi, I'm a newbie who's starting a site for people who have a heart condition and I thought that XOOPS would work really well for us.
I've just installed XOOPS and I've been following Skenow's "Starting a new XOOPS site" tutorial in the Newbies forum, which is very good by the way.
Everything was going fine till I started installing Protector. I got to the bit where I needed to edit mainfile.php.
When, as instructed, I replace:
define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
define('XOOPS_GROUP_ANONYMOUS', '3');
...with...
define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
define('XOOPS_GROUP_ANONYMOUS', '3');
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' ) ;
...the site stops working and I get this message:
Parse error: syntax error, unexpected '<' in /var/home/prinzmetal/prinzmetal.org/www/mainfile.php on line 99
I also notice that different instructions on the Protector download page say...
After XOOPS Protector is installed, edit your mainfile.php like this:
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/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' ;
This doesn't seem to work for me either and I'm starting to get hopelessly confused.
Any ideas?
Many thanks,
Tony