18
Next informations:
1. When I created a clone of module and tryed to install it on the other site, I found an error in header.php. I changed 3 lines of code and after that clone start work.
In lines 28-31:
require_once XOOPS_ROOT_PATH . '/modules/news/include/functions.php';
include_once XOOPS_ROOT_PATH . '/modules/news/class/perm.php';
require_once XOOPS_ROOT_PATH . '/modules/news/class/utils.php';
were replaced with:
require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'include/functions.php';
include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class/perm.php';
require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class/utils.php';
2. The same problem is in file /admin/header.php. When you are going to your clone admin site in CP, you've got a message:
Quote:
Fatal error: require_once(): Failed opening required '/home/.../sitename/modules/news/class/folder.php' (include_path='.:/opt/php-5.3/lib/php') in /home/.../sitename/modules/clonename/admin/header.php on line 27
I replaced lines 27-29:
require_once XOOPS_ROOT_PATH . '/modules/news/class/folder.php';
require_once XOOPS_ROOT_PATH . '/modules/news/include/functions.php';
require_once XOOPS_ROOT_PATH . '/modules/news/class/utils.php';
with
require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . '../class/folder.php';
require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . '../include/functions.php';
require_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . '../class/utils.php';
3. There is sth wrong with link to pdf site of article.
4. Links in relative articles table (on article site) are not correct - topic name in links is... strange (random?).
5. I spent a few hours to start SEO, but whithout success - the only link working good was to topic side (after small changes in .htaccess file).
Sorry for my bad english. ;)
Edit: THIS MODULE IS NOT CLONABLE!
To make it work without a clone called "news" in the same xoops instalation... propabbly I should change codes in all files. :/