thanks gahfe! that did the job fine
One more thing - regarding the file sharing mod, although I've set file sharing to members and not to guests, othere members don't seem to be able to see files only the admin users.
any ideas? My inc_UploadConfig.asp is as follows
<%
'################################################
' ADMIN SETTINGS
'################################################
'###-change this to enable/disable part/ALL the file sharing MOD (uploading ,downloading and everything)
disableUpload=false
disableDownload=false
disableAllFileSharing=false
'################################################
' FILE SHARING MODE
'################################################
'Select which mode of file sharing you want to use:
'1:Default Members Shared Files:
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
' ->each MEMBER has his own global shared files directory named with his memberID
' and is shared with other members.
'2:Forum Shared Files:
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
' ->Each FORUM has its own directory, and in each forum selected members may upload into those forum their shared files
' ->members who have access to more than one forum under any category will have different folders in different
' seperated forum directories.
' ->useful in cases you want to seperate each forum to have its own members and files.
sharedFilesMode=1
'################################################
' THUMBNAIL MODE
'################################################
'set the following variable to create thumbnails on the fly (using asp code)
'0: no thumbnails at all
'1(default): thumbnails will be viewed by simply changing width and height (no components used)
'2: to use persits ASPJpeg to create the thumbnail
' SITE:www.persits.com
' VER:1.2
' PRICE:see website
'3: to use serverobjects.com's ASPimage component to create the thumbnail
' SITE:www.serverobjects.com
' VER:2.X
' PRICE:see website
ASPThumbMode=1
'-set width and height of the thumbnail
thumbWidth=80
thumbHeight=80
'################################################
' FILE CATEGORY SETTINGS
'################################################
'DESC:
'if set to true, user can set the uploaded file's category. if kept in private then
' this file cannot be view by anyone but can be attached to a pm or topic for download
' ie downloadable but not listed.
'this is excellent since members may browse files using categories.
'set false to disable members from selecting a category for each file
fileCatMode=true
'create the category list.
'you can add as much as you like here, but just make sure you change
' the correct array size
redim fileCatList(4)
fileCatList(0)="Other"
fileCatList(1)="Documents"
fileCatList(2)="Images"
fileCatList(3)="Presentations"
fileCatList(4)="Spreadsheets"
'MODERATOR SETTINGS:
'if following variable was set to true, then moderators will be able to
' edit,move,delete and rename any files and folders
' including admin and other moderators
allowFullModeratorAccess=true
'enter list if moderator member IDs SEPERATED BY COMMAS that you want to
' grant access to any member's files
'NOTE: if you want ALL moderators to have full access set following variable
' to empty string, ie ""
allowedModeratorList="1,38"
'array of allowed file types
allowFileType = Array("jpg","gif","zip","pdf","doc","exe","txt","xls")
'maximum allowed individual file upload size in bytes
maxByteSize = 5*1024^2
'set colors used to display the file's type of share(show,hide,dont share) set by member
colorShare="#33CC00" 'files shared by all other members
colorHide="#FF0000" 'files hidden buy yet downloadable by other members(case link was enterd in a topic).
colorDontShare="#FF6600" 'files not shared at all. cant be viewed or even downloaded (except by owner ofcourse).
'set the maximum allowed file info text length to be entered per file
maxFileDescLength = 300
'maximum MINUTES to wait for upload (changes scriptTimeout value when uploading only)
maxUploadTime=25
'choose whether to use aspUpload Componenent or not
aspComponent=false
'Choose wether to display the upload status bar or not(NEEDS ASPUPLOAD 2 BE ENABLED FIRST)
aspComponentStatusBar=false
'Set where the files icons are placed using virtual path from root
fileIconsPath="/forum/fileicons/"
'set the maximum no of file uploads and total file size
' case default file shared mode:value per member
' case forum file shared mode:value per forum per member
'set it to "unlimited" for unlimited no of uploads and file size 8-D
'FILES:
maxMemberFileNo = 50
maxModeratorFileNo = 100
maxTotalFileSize=5*1024^2
'SUBFOLDERS:
maxMemberSubFolderNo = 5
maxModeratorSubFolderNo = 20
'Sharing settings:
'set whether allow or don't allow the member to be able to set each
' of their file sharing mode to be share/hide/not-shared with other
' members or guests
'Sharing modes available to members(if enabled by admin):
'1-Share: member/guest will be able to list file and download it
'2-Hide: member/guest wont be able to list file in the members folder, but he/she may download it
' if member owner gives the file link (ie through a post)
'3-Not Shared: member/guest wont be able to list file or even download it.
'NOTE:
' -admins in all cases (disabled or not) can change the sharing level
' -IMP:if you set setGuestsShare to true, then guests will be able
' to view files uploaded and your members will be able to decide
' whether to share them or not.
setMembersShare=true
setGuestsShare=false 'NOTE:setting this to 'true' will allow guests to view members files if member choose to
'################
' Paths
'################
'NOTE: YOU MUST FIRST CREATE THE ACTUAL PATHS WRITTEN IN ALL VARIABLES HERE ELSE MOD WONT WORK AT ALL
'NOTE: ALL OF THE FOLLOWING VARIABLES SHOULDNT END WITH A "\" NONE OF THEM
'physicalUploadFolder -> path to physical location of uploading
'physicalUploadTextFolder -> path to store text files containg file information
physicalUploadFolder = Server.MapPath("/forum/sharedfiles")
physicalUploadTempFolder = Server.MapPath("/forum/temp")
physicalUploadTextFolder = Server.MapPath("/forum/filestext")
logFilePath = Server.MapPath("/forum/logfiles")
'#######################################################
' DO NOT EDIT PAST THIS PART
'#######################################################
if sharedFilesMode=2 then
%><!--#INCLUDE FILE="inc_UploadFuncForum.asp" --><%
end if
'split allowedModeratorList to an array
if trim(allowedModeratorList)<>"" then
allowedModeratorList=split(trim(allowedModeratorList),",")
end if
'#####################################################
'Change Current Path case 2nd mode and forumID exist
'#####################################################
if request("forumID")<>"" and sharedFilesMode=2 then
physicalUploadFolder = physicalUploadFolder & "\" & request("forumID")
physicalUploadTextFolder = physicalUploadTextFolder & "\" & request("forumID")
end if
'#################################################################
' change global link of membersFiles.asp according to mode
' NOTE: the "?d=d" doesnt do anything at all.BUT DONT REMOVE IT!
'#################################################################
if sharedFilesMode=1 then
commonMemFilesURL = "membersFiles.asp?d=d"
elseif sharedFilesMode=2 then
if request("forumID")<>"" then
commonMemFilesURL = "membersFiles.asp?forumID=" & request("forumID")
elseif request("catID")<>"" then
commonMemFilesURL = "membersFiles.asp?d=d"
else
commonMemFilesURL = "membersFiles.asp?d=d"
end if
end if
%>
<!--#INCLUDE FILE="inc_UploadFunc.asp" -->