3
Hi there is a couple of errors in the code at the moment you will have to make the following changes.
all paths in this are based on XOOPS_ROOT_PATH.
in /modules/xtorrent/admin/menu.php
on line 32 add this inline if clause
//from
$xoopsModule = XoopsModule::getByDirname("xsoap");
if ($xoopsUser->isAdmin($xoopsModule->mid())) {
// change to
$xoopsModule = XoopsModule::getByDirname("xsoap");
if (!empty($xoopsModule))
if ($xoopsUser->isAdmin($xoopsModule->mid())) {
also in /modules/xtorrent/submit.php change the following line so the extra form item is removed
// This section of code change line 371
// From
$mytree = new XoopsTree($xoopsDB->prefix('xtorrent_cat'), "cid", "pid");
ob_start();
$sform->addElement(new XoopsFormHidden('cid', 'pid')); // This is line 371
$mytree->makeMySelBox('title', 'title', $cid, 0);
// To
$mytree = new XoopsTree($xoopsDB->prefix('xtorrent_cat'), "cid", "pid");
ob_start();
//$sform->addElement(new XoopsFormHidden('cid', 'pid'));
$mytree->makeMySelBox('title', 'cid', $cid, 0);