| Author |
Message |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Fri Feb 29, 2008 6:59 pm |
|
Part of the core file edit to mainfile.php has that functions file included, therefore, it should be available by default throughout ALL nuke modules. I suspect that core file edit was not made or not made properly.
(Sorry, at work still and unable to assist until later tonight.) |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
M0GMX
Newbie


Joined: Feb 28, 2008
Posts: 11
|
Posted:
Fri Feb 29, 2008 7:17 pm |
|
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 383
|
Posted:
Fri Feb 29, 2008 7:59 pm |
|
Well the module is quite old now and looking again breifly it doesn't follow the latest patch level of doing things.
index=1 for example is handled differently now.
I don't think I'm going to have time to look any further at this until next week as I just don't have the time. It's already one in the morning here  |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Fri Feb 29, 2008 9:43 pm |
|
Ok, that is interesting. I just checked my site and sure-as-s*** there is no nsngd_func.php included within mainfile.php. So sorry to cause a wild goose chase. It appears that my memory is fading.... although, it was almost 4 years ago that I installed this for the first time, and haven't had to install more than once or twice more after that...
I also do not see that include anywhere in the submit_downloads module either. So, what the heck?
Ok, so I went looking for function of_group(). It turns out that it is defined in Submit_Downloads/index.php, so, why is it throwing that error? Something is keeping your page from loading or maybe that file is corrupt.
Try using FileZilla (free from sourceforge.net) to re-upload the files under modules/Submit_Downloads, as something is definitely not right there. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
M0GMX
Newbie


Joined: Feb 28, 2008
Posts: 11
|
Posted:
Sat Mar 01, 2008 8:20 am |
|
I have downloaded the files again from NSN and uploaded fresh copies.
No change & still the same error.
There must be an error in my copy somewhere? |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sat Mar 01, 2008 9:04 am |
|
The link you provided is right. I just downloaded it and compared it against my library of scripts. 100% match in files.
Ok, I am now up to comparing files. Maybe I fixed some of these long back and didn't even know it.
=== OPEN FILE ===
modules/Submit_Downloads/index.php
=== FIND ===
=== RIGHT BEFORE ADD ===
| Code: |
function of_group($gid) {
global $prefix, $db, $user, $admin, $cookie;
/*if (is_admin($admin)) {
return 1;
} else*/if (is_user($user)) {
cookiedecode($user);
$guid = $cookie[0];
$currdate = time();
$ingroup = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_nsngr_users WHERE gid='$gid' AND uid='$guid' AND (edate>'$currdate' OR edate='0')"));
if ($ingroup > 0) { return 1; }
}
return 0;
}
|
=== DONE ===
That was the only difference between what I am running here on this site and what is in the download package. Hopefully this fixes you up. I'll go compare the download module itself next. |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
M0GMX
Newbie


Joined: Feb 28, 2008
Posts: 11
|
Posted:
Sat Mar 01, 2008 9:48 am |
|
Fantastic
That has fixed it
Many Many Thanks  |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sat Mar 01, 2008 9:53 am |
|
Sorry that I could not do this comparison sooner.
Just to let you know, I have double-checked the modules/Downloads files too, but unfortunately I have made so many changes to those files for XHTML compliance reasons, that there are just too many changes to compare. Hopefully that module is working just fine for you.
Regards,
montego |
| |
|
|
 |
M0GMX
Newbie


Joined: Feb 28, 2008
Posts: 11
|
Posted:
Sat Mar 01, 2008 11:16 am |
|
Downloads appears to be working fine.
Just one more thing which has shown up now I can go through the submit link procedure.
If I eneter a file with a .rar extension which is on the allowed list, as a link not to upload, well either. It gives an error message saying wrong extension.
Thanks so much for your help so far.
I have no doubt I will be asking about something else soon  |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sat Mar 01, 2008 11:22 am |
|
Make sure of the filename as from what I remember, it is case sensitive. You may have to add both lower and UPPER case versions.
However, please keep in mind my earlier comments that I have never used the upload feature! So, please do not have high expectations of me there.  |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
Guardian
Site Admin


Joined: Jul 18, 2005
Posts: 383
|
Posted:
Sat Mar 01, 2008 1:05 pm |
|
Interesting that the function has to be entered into the index file when it is already present in another seperate file.
I wonder whether there was originally an include from mainfile to the file that holds the function and it somehow got missed out of the download package readme.
Oh well, gues we'll never know but if I have some time after I have had my eveing meal I may take another look. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Sat Mar 01, 2008 7:40 pm |
|
Yeah, don't know either. One of these days I should get around to cleaning this thing up and re-releasing even a XHTML compliant version. Oh to have the time.... |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
|
|