Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 File Sharing MOD (FINAL 2.51 updated 28-8-03 )
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 14

achaudhary
Starting Member

7 Posts

Posted - 03 June 2004 :  16:16:12  Show Profile  Reply with Quote
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 ?<
Go to Top of Page

achaudhary
Starting Member

7 Posts

Posted - 04 June 2004 :  15:57:44  Show Profile  Reply with Quote
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
<
Go to Top of Page

mkelley
Junior Member

112 Posts

Posted - 07 June 2004 :  11:10:53  Show Profile  Reply with Quote
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.<
Go to Top of Page

mkelley
Junior Member

112 Posts

Posted - 07 June 2004 :  11:13:26  Show Profile  Reply with Quote
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.<
Go to Top of Page

mkelley
Junior Member

112 Posts

Posted - 07 June 2004 :  11:19:27  Show Profile  Reply with Quote
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).<
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 17 July 2004 :  19:54:11  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message  Reply with Quote
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.<
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 23 July 2004 :  18:32:17  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message  Reply with Quote
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
to
if (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
Go to Top of Page

Gargoyle
Junior Member

USA
280 Posts

Posted - 24 July 2004 :  22:24:47  Show Profile  Visit Gargoyle's Homepage  Reply with Quote
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
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 25 July 2004 :  06:31:11  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message  Reply with Quote
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.<
Go to Top of Page

Gargoyle
Junior Member

USA
280 Posts

Posted - 25 July 2004 :  11:02:15  Show Profile  Visit Gargoyle's Homepage  Reply with Quote
Thank-you for the files.

I think I modified the files correctly but the only thing I get is a red x. Is there something else I need to do to get this to work ?<

Here is a link to my Snitz powered Drag Racing site.
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 25 July 2004 :  11:25:13  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message  Reply with Quote
Let's continue this in another thread, since it's got nothing to do with the File Sharing MOD.<
Go to Top of Page

Gargoyle
Junior Member

USA
280 Posts

Posted - 26 July 2004 :  13:03:46  Show Profile  Visit Gargoyle's Homepage  Reply with Quote
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
to
if (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.
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 26 July 2004 :  14:13:41  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message  Reply with Quote
yes, it fixes that bug.<
Go to Top of Page

Gargoyle
Junior Member

USA
280 Posts

Posted - 26 July 2004 :  16:59:17  Show Profile  Visit Gargoyle's Homepage  Reply with Quote
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.
Go to Top of Page

SirZooro
Starting Member

Poland
12 Posts

Posted - 19 August 2004 :  09:15:19  Show Profile  Reply with Quote
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
Go to Top of Page
Page: of 14 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07