1
osamax
xtorrent prob.
  • 2009/1/23 22:37

  • osamax

  • Just popping in

  • Posts: 2

  • Since: 2009/1/23


tried many times to add xtorrent module but in every time i get admin.php as a white page ... there may be a problem .. so can someone tell me about that ?

2
osamax
Re: xtorrent prob.
  • 2009/2/1 20:39

  • osamax

  • Just popping in

  • Posts: 2

  • Since: 2009/1/23


ooh .. thanks for great support :)


3
wishcraft
Re: xtorrent problem

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'$cid0);

// To

    
$mytree = new XoopsTree($xoopsDB->prefix('xtorrent_cat'), "cid""pid");
    
ob_start();
    
//$sform->addElement(new XoopsFormHidden('cid', 'pid'));
    
$mytree->makeMySelBox('title''cid'$cid0);
Resized Image
http://www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/RegaltyFamily
github.com/Chronolabs-Cooperative
facebook.com/DrAntonyRoberts

Login

Who's Online

334 user(s) are online (246 user(s) are browsing Support Forums)


Members: 0


Guests: 334


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits