Author |
Topic |
achaudhary
Starting Member
7 Posts |
Posted - 03 June 2004 : 16:16:12
|
I Tried to install this MOD. It appears to be a good mode if it works. I have to issues with this MOD. 1) I didnt find any file with name inc_privatesend.asp 2) I cannot access any of the file sharing pages, when i try to access these pages then i get an error saying that you do not have access to forum. i have chosen option 1 under inc_UploadConfig.asp. when i change the option to 2 then i get an error which says that there is some error within inc_UploadFunc.asp. any help ?< |
|
|
achaudhary
Starting Member
7 Posts |
Posted - 04 June 2004 : 15:57:44
|
Hi I have the MOD working up to certain point, i can click on upload file and select a file but after i have selected a file and i choose upload after about 5 seconds i come up with an error "Permission Denied" /forum/inc_UploadFunc.asp, line 469. I am not sure why i get this error. Any help is appreciated < |
|
|
mkelley
Junior Member
112 Posts |
Posted - 07 June 2004 : 11:10:53
|
quote: Originally posted by HVROX
Hello,
I was setting up File_Sharing_MOD_2.51_28-8-2003 and got to the section for editing the privatesend.asp and noticed it wasn't in the 3.4.04 Snitz stock download. The File_Sharing_MOD_2.51_28-8-2003 doesn't mention any other required mod's before install. I checked the private messages mod and it's got a privatesend.asp in it. Do I have to install the complete private messages mod before I can install the file sharing mod? Or is there another way?
No, you don't have to have private messages installed -- the author assumes you will but I don't and the install went just fine (subject to the usual caveats, of course).
Just ignore any privatesend stuff.< |
|
|
mkelley
Junior Member
112 Posts |
Posted - 07 June 2004 : 11:13:26
|
quote: Originally posted by achaudhary
Hi I have the MOD working up to certain point, i can click on upload file and select a file but after i have selected a file and i choose upload after about 5 seconds i come up with an error "Permission Denied" /forum/inc_UploadFunc.asp, line 469. I am not sure why i get this error. Any help is appreciated
The most likely problem is you don't have upload permissions for the directory you're setting.
Remember that directory needs to have public read/write priviledges set, which is not the case with most folders. So make sure your host has set the right public priviledges and you should be okay.< |
|
|
mkelley
Junior Member
112 Posts |
Posted - 07 June 2004 : 11:19:27
|
quote: Originally posted by Martha2Mary
Hi Mike,
My apologies for the delay in getting back to this ~ just started working part-time and have been trying to establish a new routine!
Okay, I'm not actually using this mod as for downloading ~ I have adapted it to use as a Photo Gallery, and that is why I wanted it so that the image opens in the browser, rather than downloading to the computer. So, can you help me get this to do what I need it to do? Or someone else who is more knowledgeable than I? Thanks!
Um, I'm not sure I'm the person to ask -- but maybe someone else will jump in.
Two things immediately occur to me:
1) Perhaps you should be using a different mod. This one comes to mind: http://www.snitzbitz.com/mods/details.asp?Version=All&mid=45
2) If you need to slightly modify this particular mod, the reference to the other one might tell you what you need to know. Obviously the big change you need to make is the behavior of the file link, making it display the picture instead of giving you a download option. I can't see why this would be too complicated to do (even with my limited ASP knowledge I could probably figure it out).< |
|
|
Chuck McB
Junior Member
WooYay
196 Posts |
Posted - 17 July 2004 : 19:54:11
|
Mod working fine for me now as well (made some minor tweaks tho). Even wrote a script that allows users to move thier files over from their old folder (where the folders are named thier usernames) to thier new folders. (let me know if anyone wants it)
It would be cool if when someone selects the category the file is uploaded into a folder called that category, would make for more logical browsing of someones personal folder.< |
|
|
Chuck McB
Junior Member
WooYay
196 Posts |
Posted - 23 July 2004 : 18:32:17
|
Anyone else got this bug: forum moderators without admin access within the file sharing mod can't see any files at all? Bug fixed by going to inc_UploadFunc.asp and changing the text in red:
if (mlev=0 and guestsAccess = 2) or (mlev=2 and membersAccess = 2) or (adminAllowed) then toif (mlev=0 and guestsAccess = 2) or (mlev>=2 and membersAccess = 2) or (adminAllowed) then
In some other places I also had to change
(memberLev=2 and membersAccess=2) to(memberLev>=2 and membersAccess=2) < |
Edited by - Chuck McB on 25 July 2004 06:03:25 |
|
|
Gargoyle
Junior Member
USA
280 Posts |
Posted - 24 July 2004 : 22:24:47
|
Yes I get this problem as well chuck. In the beginning of membersfiles.asp there is some code that checks for the moderator level and whether or not they have full access. I think the bulk of the problem is there. I guess the best thing to do would be to add a moderator to that list and see if they can see the files then. It's not much but a place to start.
Now I gotta ask you another question.... How does the code work for your signature ? And can I get the code for that? It's a very nice add-on. < |
Here is a link to my Snitz powered Drag Racing site. |
Edited by - Gargoyle on 24 July 2004 22:28:42 |
|
|
Chuck McB
Junior Member
WooYay
196 Posts |
Posted - 25 July 2004 : 06:31:11
|
It a modified from a bit of code that I think Davio made for displaying 'now playing' images for winamp. One page grabs the data from the DB, the second generates the image using .NET, it could be done with just one file.< |
|
|
Gargoyle
Junior Member
USA
280 Posts |
|
Chuck McB
Junior Member
WooYay
196 Posts |
Posted - 25 July 2004 : 11:25:13
|
Let's continue this in another thread, since it's got nothing to do with the File Sharing MOD.< |
|
|
Gargoyle
Junior Member
USA
280 Posts |
Posted - 26 July 2004 : 13:03:46
|
quote: Originally posted by Chuck McB
Anyone else got this bug: forum moderators without admin access within the file sharing mod can't see any files at all? Bug fixed by going to inc_UploadFunc.asp and changing the text in red:
if (mlev=0 and guestsAccess = 2) or (mlev=2 and membersAccess = 2) or (adminAllowed) then toif (mlev=0 and guestsAccess = 2) or (mlev>=2 and membersAccess = 2) or (adminAllowed) then
In some other places I also had to change
(memberLev=2 and membersAccess=2) to(memberLev>=2 and membersAccess=2)
Does this fix the Moderator not being able to see any files error ? If so thank-you! I totally missed it earlier because you edited your post. < |
Here is a link to my Snitz powered Drag Racing site. |
|
|
Chuck McB
Junior Member
WooYay
196 Posts |
Posted - 26 July 2004 : 14:13:41
|
yes, it fixes that bug.< |
|
|
Gargoyle
Junior Member
USA
280 Posts |
Posted - 26 July 2004 : 16:59:17
|
Hmmm... Okay because they can see some of the files but not all of them. Also my moderators report that the file count reads zero while there are photos in there upload area? I'll dig around some more. It did fix a few problems though!
Thanks!< |
Here is a link to my Snitz powered Drag Racing site. |
|
|
SirZooro
Starting Member
Poland
12 Posts |
Posted - 19 August 2004 : 09:15:19
|
Hello, I found few problems with SQL queries. Queries in file inc_UploadFuncForum.asp uses default table prefix "FORUM_". To fix this, you should replace queries in funcions: - in function getForumIDInfo:
strSql = "SELECT F.FORUM_ID, F.F_STATUS, F.CAT_ID, F.F_SUBJECT " & _
"FROM " & strTablePrefix & "FORUM F"
- in function getCatIDInfo:
strSql = "SELECT CAT_ID, CAT_STATUS, CAT_NAME, CAT_ORDER" &_
" FROM " & strTablePrefix & "CATEGORY "
strSql = strSql & " WHERE CAT_ID = " & catID
- in function listAllMemberAccess:
rsAllow.Source = "SELECT AM.MEMBER_ID, AM.FORUM_ID, F.CAT_ID, F.F_SUBJECT, C.CAT_NAME " &_
"FROM (" & strTablePrefix & "ALLOWED_MEMBERS AM INNER JOIN " & strTablePrefix & "FORUM F ON AM.FORUM_ID = F.FORUM_ID) INNER JOIN " & strTablePrefix & "CATEGORY C ON F.CAT_ID = C.CAT_ID WHERE AM.MEMBER_ID = " + Replace(rsAllow__MMColParam, "'", "''") + ""
- in function listForumMemberAccessInCat:
rsAllow.Source = "SELECT AM.MEMBER_ID, AM.FORUM_ID, F.CAT_ID, F.F_SUBJECT, C.CAT_NAME " &_
"FROM (" & strTablePrefix & "ALLOWED_MEMBERS AM INNER JOIN " & strTablePrefix & "FORUM F ON AM.FORUM_ID = F.FORUM_ID) INNER JOIN " & strTablePrefix & "CATEGORY C ON F.CAT_ID = C.CAT_ID WHERE AM.MEMBER_ID = " + Replace(rsAllow__MMColParam, "'", "''") + " AND F.CAT_ID = " + Replace(rsAllow__MMColParam2, "'", "''") + ""
- in function checkMemberAccess:
rsForums.Source = "SELECT F.CAT_ID, F.FORUM_ID, AM.MEMBER_ID" & _
" FROM " & strTablePrefix & "FORUM F INNER JOIN " & strTablePrefix & "ALLOWED_MEMBERS AM ON F.FORUM_ID = AM.FORUM_ID WHERE F.FORUM_ID = " + Replace(rsForums__MMColParam, "'", "''")
Best Regards, Daniel< |
Best regards, Sir Zooro |
|
|
Topic |
|