91
jusui
Re: AOK
  • 2004/3/23 19:15

  • jusui

  • Just popping in

  • Posts: 17

  • Since: 2003/9/29


what is the easiest way to transfer over the download catalog from the normal mydownloads to this version? i cringe at the thought of entering all those records again.( otherwise is it possible to set the default URL path so that it doesn't have to be typed over and over again when pointing to a file on your server? (example i would rather just type the subdir and the file, such as /Video/tvshow1.mpg)

This is really awesome work, thank you for doing it!

92
king76
Re: AOK
  • 2004/4/13 15:10

  • king76

  • Just popping in

  • Posts: 93

  • Since: 2003/1/15


Hello,

Thks you for this good module ! I put it on XM for french community, but for my personnal website, I have a problem in "userinfo.php" page !

Look the notice error :

Fatal error: Cannot redeclare listgroups() (previously declared in /var/www/html/ressources/modules/mydownloads/include/groupaccess.php:29) in /var/www/html/ressources/include/groupaccess.php on line 13


I think it's error with Mydownload PRO...
Do you verify please ?

Thks

93
Anonymous
Strange Upload Error
  • 2004/4/15 6:08

  • Anonymous

  • Posts: 0

  • Since:


First off, Kudos on the effort you have put into this module.

I'm experiencing a problem that I can't quite isolate. I'm using v1.02 of the module with XOOPS 2.0.6.

I have the max file size set to 9,000,000 (9 MB). If I upload a PDF file, lets say around 2 MB, it uploads just fine. However, if I try a PDF file that is 3 MB, I get a the error page:

Media Uploads Error
No File uploaded


I've tried turning on PHP Debug and I do not get any failures, so that doesn't seem to help. I've looked at the uploader class and can't seem to find anything there.

Any help in this matter is greatly appreciated.

Thank you.

94
samuels
Re: Strange Upload Error
  • 2004/4/15 6:48

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


@king76
I'll check it

@NewGuy
The problem it's that most servers have a limit of waiting time. If your file is large the system thinks the operation is taking much time and cancels it. By the moment I don't know how to do to avoid the problem.

95
king76
Re: Strange Upload Error
  • 2004/4/15 7:37

  • king76

  • Just popping in

  • Posts: 93

  • Since: 2003/1/15


Hello,

For My problem, I have changed my search's file :

DELETE THIS :
Quote:
include_once XOOPS_ROOT_PATH . '/modules/mydownloads/include/groupaccess.php';


And add this :

Quote:

function checkPermission($groupid, $usersid)
{
global $xoopsUser;

if (!$xoopsUser)
{
$grps = array(XOOPS_GROUP_ANONYMOUS);
$uid=null;
}
else
{
$grps = array_merge( $xoopsUser->getGroups(), XOOPS_GROUP_ANONYMOUS);
$uid = $xoopsUser->getVar('uid');
}
$groupid = explode(" ", $groupid);
for ($i=0; $i {
if (@in_array($groupid[$i], $grps))
{
return true;
}
}

$usersid = explode(" ", $usersid);
for ($i=0; $i {
//echo $usersid[$i];
if ($usersid[$i]==$uid)
{
return true;
}
}
return false;

}


If you have a better solution :)

Thks


96
samuels
Re: Strange Upload Error
  • 2004/4/15 9:56

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


New version 1.03.
-Solved bugs with some permission functions.
-Solved bug on uploader class.
-Now Uploads have a different and unique name when uploading, when downloading they take their original name again.
-Some notices and warnings solved.

Please report bugs here.

97
king76
Re: Strange Upload Error
  • 2004/4/15 12:25

  • king76

  • Just popping in

  • Posts: 93

  • Since: 2003/1/15


Samuels,

I have a new error on "Userinfo.php"

Quote:

Fatal error: Cannot redeclare saveaccess() (previously declared in /var/www/html/ressources/modules/mydownloads/include/functions.php:138) in /var/www/html/ressources/include/groupaccess.php on line 105

98
samuels
Re: Strange Upload Error
  • 2004/4/15 13:33

  • samuels

  • Quite a regular

  • Posts: 249

  • Since: 2003/10/30


@king76
Download again.
The problem it's because some module is including groupaccess.php. I have solved it renaming the functions.
Can you tell me what modules have you installed, XF-Sections or something similar?
Thk's.

99
king76
Re: Strange Upload Error
  • 2004/4/15 13:48

  • king76

  • Just popping in

  • Posts: 93

  • Since: 2003/1/15


Yes I know this problem about "groupaccess.php" lot of module :)

On my "userinfo.php" page, I have :

Mylinks, Mydownload and "Newbb's hack" (look here : https://xoops.org/modules/newbb/viewtopic.php?topic_id=14089&forum=21&viewmode=flat&order=DESC&start=40)

I think that probleme come from : "Newbb hack", He use "groupaccess.php".

Thk you Samuels !

king

100
Anonymous
Re: Strange Upload Error
  • 2004/4/15 13:51

  • Anonymous

  • Posts: 0

  • Since:


Thanks samuels.

I was running the XOOPS on my unix-hosted site and locally on my windows box and was expierencing the same problem in both places. Locally, the file uploads about 10 times faster than the hosted site. In otherwords, the 2 MB file that works takes longer to upload to the hosted site than the 3 MB file that doesn't work takes to upload locally.

You did make me think of something though and after investigating, I found the issue.

In the php.ini file, it looks like the default max file size limit is set to 2 MB. At least, in my installation it was configured that way:

Maximum allowed size for uploaded files.
upload_max_filesize 2M


After changing the 2M to 6M, the problem goes away. Just some info for future users.

Thanks again.

Login

Who's Online

240 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 240


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