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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 mikes file upload can we restrict members
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jwhite
New Member

51 Posts

Posted - 22 June 2006 :  14:06:59  Show Profile
Is there a way to restrict who can upload files using mikes file upload?

TonyB7
Junior Member

USA
267 Posts

Posted - 22 June 2006 :  19:37:26  Show Profile  Send TonyB7 an AOL message  Send TonyB7 a Yahoo! Message
I don't think so, but I suppose it would be easy enough to add code to check someone's mlev. Doing something on a per-user basis would be a lot tougher.
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 22 June 2006 :  20:24:00  Show Profile  Visit AnonJr's Homepage
Unless you were feeling rather ambitious and used the UserGroups MOD to manage the permissions...

I've found that once you get the UserGroup MOD up and running, its not that hard to check if a logged-in member is part of a particular group. In some quick-and-dirty testing I've been able to hard code the group ID's I wanted to check for. I'm planning on eventually developing something a little more elegant.
Go to Top of Page

jwhite
New Member

51 Posts

Posted - 23 June 2006 :  16:56:57  Show Profile
I moved a part of the code so that only moderators will be able to upload files.

I am stuck trying to set it up so that only moderators will have the button in thier profile to review the files.

I do not know if I need to include a file or if my code is wrong.

Here is what I have .....
if ((mLev = 4) or (chkForumModerator(strRqForumId, strDBNTUserName) = "1")) then
if strMode <> "Register" then
response.write " <tr>" & VBNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>View your <br />Uploaded Files</font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ valign=""bottom""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""View"" type=""button"" value=""View"" onclick=""JavaScript:location.replace('myfiles.asp')""> </td>" & vbNewLine & _
" </td>" & VBNewLine & _
" </tr>" & VBNewLine
end if
'################################## end if
Go to Top of Page

TonyB7
Junior Member

USA
267 Posts

Posted - 23 June 2006 :  21:00:34  Show Profile  Send TonyB7 an AOL message  Send TonyB7 a Yahoo! Message
Wouldn't it just be easier to stop em at pop_upload_new.asp?

Something like:
5 if strDBNTUserName <> "" and mlev >2 then

I know, they'll still have the button. But you should probably do it anyway as an extra security measure, so it'll free you up to play with the button code later.
Go to Top of Page

jwhite
New Member

51 Posts

Posted - 24 June 2006 :  08:57:41  Show Profile
users are already stopped at the button. only moderators or admin can see other users files.

The current response is something about you dont have any files to view.

So we are up to the button code.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 4.49 seconds. Powered By: Snitz Forums 2000 Version 3.4.07