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
Next Page
Author Previous Topic Topic Next Topic
Page: of 14

korayem
New Member

Egypt
72 Posts

Posted - 01 May 2003 :  08:51:28  Show Profile  Reply with Quote
<font size="4"><u><b>Short description:</b></u> </font id="size4">
-Well this file sharing mod was made especially for the Snitz forums.And as the name suggests, it gives members the ability to upload and share files with other members.
-Members can attach their files to posts and pm and even use pictures as avatars.
-Features are even extended more to allow members to change type of sharing of individual files to share (any member can view/download the file) ,hide (any member can download by knowing the URL to the file but not list the file in the owners folder) and not shared (cant be view or shared).
-Members can also add description to files, choose which category the file being uploaded falls into and even delete and rename files and folders.

<font size="4"><u><b>How it works?:</b></u> </font id="size4">
-Each member has his own folder that he/she may upload files into. Member can create subfolders within their folder but only limited to one level of subfolders.
-Members can browse each other members folders and be able to download their files and thus applying the concept of sharing.


<font size="4"><u><b>DEMO:</b></u> </font id="size4">
logon to http://HASdot.COM/forumSnitz/membersfiles.asp
U:test
P:test
and then view members' Files

<font size="4"><b><u>Download File Sharing MOD (FINAL 2.51 updated 28-8-03):</u></b> </font id="size4"><br />
-Requires mouseover forum add-on
File_Sharing_MOD_2.51_28-8-2003.zip
-Without the mouseover forum add-on
File_Sharing_MOD_2.51_NOMOUSEOVER_28-8-2003.zip
You will need this logon info
U:test
P:test

<i>Please Note:</i> this mod started growing from <b>mike's file attachment MOD</b>. Although the original code is completly overwritten, a person should always respect original work.
<i>Please Note2:</i> this mod is completly independent and doenst need any other preinstalled MODs.

<font size="4"><u><b>Whats new in 2.51:</b></u> </font id="size4">
-Added a part in the inc_uploadConfig.asp that i accidently forgot to add.
-Various here and there code updates

<font size="4"><u><b>Whats new in 2.5:</b></u> </font id="size4">
-Search feature now implemented
-New file library to list files by their category
-New 3 main admin switches:
1-disableUpload -> use to disable uploading
2-disableDownload -> use to disable downloading (case you exceed your monthly quota)
3-disableAllFileSharing -> use to disable the whole file sharing mod
-Enhanced and optimized many parts of the ASP code
-Upload pop up window is now larger in size and resizable too. 8-D

<font size="4"><u><b>UPDATING to 2.5 from 2.51:</b></u> </font id="size4">
1-overwrite ALL files except inc_uploadConfig.asp (its in a separate folder in the zip file)
2-open inc_uploadConfig.asp and delete EVERYTHING starting from <b>DO NOT EDIT PAST THIS PART</b> till the end and replace it with the following code

'#######################################################
'    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" -->


<font size="4"><u><b>UPDATING to 2.5 from 2.4:</b></u> </font id="size4">
1-overwrite ALL files except inc_uploadConfig.asp (its in a separate folder in the zip file)
2-see in the readme the new part of editing the pop_help.asp page.
3-dont forget to add new links to the MOD:
-membersFiles.asp -> lists all members folders
-searchFiles.asp -> search files
-filesLibrary.asp -> lists file by their category
-membersFiles.asp?memberFldrID=%memberID% -> add it to the user's menu so user may access his own folder and start
using it for uploading and sharing.
4-add the following to your inc_uploadConfig.asp under <b>ADMIN SETTINGS</b>

disableUpload=false
disableDownload=false
disableAllFileSharing=false

5-you're done

<font size="4"><u><b>FRESH INSTALLATION:</b></u> </font id="size4">
1-Copy and paste all zipped files to your root forum folder.
2-Edit inc_uploadConfig.asp and change settings. (each variable has a description of what it does)
3-read readme file in the <b>editingOtherFiles</b> folder
4-add new links to the MOD:
-membersFiles.asp -> lists all members folders
-searchFiles.asp -> search files
-filesLibrary.asp -> lists file by their category
-membersFiles.asp?memberFldrID=%memberID% -> add it to the user's menu so user may access his own folder and start
using it for uploading and sharing.


<i>NOTE:</i> all admin options and settings are edited in the inc_uploadConfig.asp file

<font size="4"><u><b>NOTE:</b></u></font id="size4">
MAKE SURE IF YOU ALREADY HAVE FILE UPLOADING MODS (SUCH AS MYFILES AND FILES DIRECTORY MODS) TO CHANGE THE UPLOAD FOLDER PATH

THIS MOD DEPENDS ON THAT ALL FOLDERS MUST BE NUMBERS REFERING TO MEMBERS' IDs. IF YOU SPECIFY FOLDER FULL OF FOLDER NAMES THAT ARE USERNAMES, THIS MOD WONT WORK(WILL GIVE YOU AN ERROR!!)

ie virtual path to your file sharing: forum/files
then the members files should be like
forum/files/member1
forum/files/member2
etc...

it should be
forum/files/1
forum/files/5
forum/files/13
etc...


<hr noshade size="1">
<center><u><b><font size="6">FEATURES IN DETAILS</font id="size6"></b></u></center>
<hr noshade size="1">

<u><b>Current Features:</b></u>
-Each user has his own unique directory which is <b>the same as his member ID</b>.
-Members can't upload to another members directory.
-Each use may upload only file types that are restricted by admin.
-Individial file upload size is set by admin
-Any member may view any other members' files
-Attachment of files is available when posting a message or sending a pm
-Max file uploads is set for moderators and members seperatly by admin.(0 to "unlimited")
-Max subfolders to be created is set for moderators and members seperatly by admin.(0 to "unlimited")
-Delete files, subfolders with contents or ALL files granted only for folder owner and admins (ofcourse).
-Members can rename their files' and folders' names.
-For security ,members <b>CAN'T</b> change the file extension of their uploaded files
-When viewing files, if file is an image, the displayed link is a thumbnail.
-After a successful upload, file list is refreshed.
-Setting total upload size limit (ie each user has for example only 7MB of total upload files limit)


<u><b>General Features:</b></u>
-knowing each member's total files, size and folders when browsing membersFiles.asp page
-displays a cool status at the top right corner showing free space left and number of uploaded files and number of subfolders for current member.
-Two modes of operation:
1-Normal File Sharing: where each member has his own folder which is accesable by other members/guests
2-Forum File Sharing: where each forum has its own folder and each member will have his own folder inside that forum. Perfect for forums having several different communities on several forums whom have different file types (ie music, pictures etc..)
-attaching to posts,pm and even upload your own avatars

<u><b>Attaching:</b></u>
-when posting a message or sending a pm, member may choose one of the files he uploaded and attach it.
-Attachment in post or PM will display the number of times the file has been downloaded ,file description and file size. and case file doenst exist. it write file doesnt exist.

<u><b>File Lister:</b></u>
-browse other members files
-view file name ,size, upload date ,description ,category and number of downloads
-thumbnail of allowed picture files.
-file true path on server is hidden and not revealed for (anti-leeching). You can even save your files not inside the virtual path and download.asp will send the file to the user.

<u><b>For members:</b></u>
-ability to upload files (duh!)
-rename files (without extension)
-delete files
-move files from among subfolders and root folder
-May create up to 1 level of subfolders ONLY
-add/edit individual file description
-set file category from a list of categories created by admin
-set guest and member sharing of file mode:
1-shared:for normal sharing
2-hidden: so it is not listed but yet downloadable (used when sending someone a private file and you dont want it to be accisable by the publie
3-not shared: the file cant be downloaded nor viewed by anyone except owner and admin
-Attach uploaded files to topics and Private messages
-Upload an avatar and use it.

<u><b>for moderators:</b></u>
-ALL the previous members' privelages
-They can see hidden files

<u><b>for Admins:</b></u>
-ALL the previous members' privelages
-Enable/Disable the whole file sharing system. This is critical if for some reasone you want to shutdown the whole thing for debugging or anti-hack anything
-set general MOD properties (ie colors, file paths etc...)
-set allowed file types
-set individial file size limit
-set total allocated size allowed for each member
-create category list
-set member/moderator total file numbers limit and total subfolders limit
-set file description characters length
-change the file's total downloaded times number
-unlimited number of uploads and unlimited space (admin baby)
-can share/hide/not share any file's setting EVEN IF HE ALREADY DISABLED THIS FEATURE FOR MEMBERS.
<u><b>Security:</b></u>
-Members can set the share type of their files to both guests and members.
-File real URL is hidden, ie no one will know where the files are really stored at. this gives the admin the capability to even put the shared files directory outside the virtual path!!
-downloading of files now forces the open/save window.
-members can rename files but can NEVER change file extensions (u dont want any one to upload a hack.jpg and then rename it to hack.asp and voila he gets control over your site) LOL
-Download counter doesnt increment by one unless the file download is completed.

<u><b>Searching(NEW):</b></u>
-search ALL files by filename,description, category, size and extension
-hidden files ARENT listed.

<u><b>File Library(NEW):</b></u>
-Lists all files by their category.
-Gives members ability to browse files among many members by simply specifying the file category.

<u><b>Admin Switches(NEW):</b></u>
-New 3 main admin switches can be set in the inc_uploadConfig.asp
1-disableUpload -> use to disable uploading
2-disableDownload -> use to disable downloading (case you exceed your monthly quota)
3-disableAllFileSharing -> use to disable the whole file sharing mod


<u><b>Extended Features:</b></u>
-Made a new forum code tag [file][/file] which will refer to files by member id and file name. ie [file]winxpicons1.gif,7,,0[/file]. why is this so important. well its VERY important since if we use it <i>my way</i>, then if an admin changed the actual virtual path of uploaded files on the server wont affect a single post. while <i>old method</i> of posting direct link and if path changes, all posts refering to old location become broken links. using the [file][/file] tag idea, path changes dynamically according to the current virtual path
-creating asp-processed smaller byte sized thumbnails ,using commercial non-free asp components (ie those 300KB pic are thumbnailed to 2KB !!!)
-time and date of upload is now adjusted according to the time offset of the server set in the admin options
-User can select wether or not guests are allowed to view their files
-Deletion requires confirmation by opening a javascript yes/no dialog box so that accidental click on delete button wont delete file(s)/folder from first click!
-supports <b>ASPUpload component </b> that opens a <b>status bar</b> to tell u the speed of upload and shows the upload percentage bar
-now when viewing member profile, it gives u details about total files uploaded and their total size, plus the number of subfolders.(EXAMPLE:VIEW ANY MEMBER PROFILE AT MY SITE)
-a new icon has been added to the list of icons that display for each member when viewing a topic, or seeing member list (ie, icons of profile,homepage, send email etc..) which is a shortcut to the current memebrs' files and onmouse over displays the total uploaded files (EXAMPLE:VIEW MEMBERS LIST OR OPEN ANY TOPIC AT MY SITE)
-brother <b>ez4Arab</b>'s idea of adding an icon according the file type
-changed the FAQ to tell user how to use the file sharing thing.(note that all,and i mean all, forums if they have file uploading supported they totally forget about changing the FAQ page and still have the old "<i><b>Attaching Files:</b> For security reasons, you may not attach files to any posts. However, you may cut and paste text into your post.</i>" yea right!! LOL you can download my faq.asp file by clicking here)


<u><b>Design Change Feature:</b></u>
-The design of the mod blends with Snitz design. feels like its part of the forum.


<u><b>Future Features:(NOT DONE YET)</b></u>
-setting admin options in the admin section instead of editing the asp file.
-<s>Search tool. by member, file name size date etc...</s> DONE!!!
-membersfiles_stats.asp-> to display statistical info such as top downloaded, top uploader etc..
-log file to monitor all upload/download/edit/delete/everything actions


By the time you read this, you've already read it!!
http://HASdot.COM/

Edited by - korayem on 25 September 2003 09:25:03

sibi
Starting Member

33 Posts

Posted - 02 May 2003 :  10:55:45  Show Profile  Reply with Quote
hI korayem,

I tried the file upload mod above. I still have problems uploading in windows XP pro IIS 5.1. I then tried the mod in a windows 2000 server running IIS and it works but i face the following problems

1)In the window that pops up to upload file the Text andbackground seems to be of same colour and hence not readable

2)i visited the forum posted by you at http://hasdot.com/forum/topic.asp?TOPIC_ID=54. logged in using user name and pass as "test". There i find an icon to browse the files uploaded by the test user. My forum does not show any such button

3) When i check a message with file attachment the name of the attached file is missing. All it shows is the papaer clip figure. The files does download properly when clicking on the clip picture.

I have installed the following mods

1)who read topic mod
2)Events and calendar mod
3)The file upload mode created by you as update to mikes upload. note i updated this to the latest beta 5.2 mod

I have given the following permissions in IIS to uploads dir

read,write and directory browsing

Am i mising any mod? pls help

thanks in advance
sibi
<

Edited by - sibi on 02 May 2003 10:58:40
Go to Top of Page

korayem
New Member

Egypt
72 Posts

Posted - 02 May 2003 :  13:29:04  Show Profile  Reply with Quote
no sibi you are not missing any mods. this mod needs only snitz forum 3.4 to work on.
1)you can change this in the pop_upload_new.asp
2)to link to the current member's files add this anywhere you like:

response.write "<a href=""membersFiles.asp?memberFldrID="""&memberID&""">Shared Files</a>"

3)do you have a working example that i can see?<


By the time you read this, you've already read it!!
http://HASdot.COM/
Go to Top of Page

antracit
Starting Member

Sweden
33 Posts

Posted - 03 May 2003 :  09:59:24  Show Profile  Visit antracit's Homepage  Reply with Quote
quote:
Originally posted by korayem

....this mod needs only snitz forum 3.4 to work on...



Hi What about 3.3.0 and like that <

johan
Go to Top of Page

korayem
New Member

Egypt
72 Posts

Posted - 03 May 2003 :  10:41:12  Show Profile  Reply with Quote
quote:
Originally posted by antracit
Hi What about 3.3.0 and like that



there should be no problem with version 3.3...

i doubt you'll face anything at all...but due to that i didnt test it manually i cant 100% assure you its going to work.

however, you can install this mod (by simply copy pasting the files in the zip file) ,set the variables in inc_uploadConfig.asp ...and then open membersFiles.asp?memberFldrID=any valid member id and try to upload...this way you won't loose anything...

as i said if it wasnt for the exams i would've test it for you...but again i am almost 97% sure that there should be no problems at all with the ver 3.3...

<


By the time you read this, you've already read it!!
http://HASdot.COM/
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 04 May 2003 :  19:27:39  Show Profile  Visit MaD2ko0l's Homepage  Reply with Quote
any member may view any other members' files (guests cant view members files)

hey y dont u have an option where the member can select wether or not guests are allowed to view there files?<

© 1999-2010 MaD2ko0l
Go to Top of Page

korayem
New Member

Egypt
72 Posts

Posted - 05 May 2003 :  05:40:15  Show Profile  Reply with Quote
thanx MaD2ko0l i will sure add this in the next version....
<


By the time you read this, you've already read it!!
http://HASdot.COM/
Go to Top of Page

antracit
Starting Member

Sweden
33 Posts

Posted - 07 May 2003 :  05:14:04  Show Profile  Visit antracit's Homepage  Reply with Quote
Hi

How about some kind of different membership. Somthing like when you restrict members to different boards (forums) . Hiding, Password, and so on.
That way it might be possible to give members rights to upload files?

Also it would be great if uploading could be restricted to special boards?

Good luck with your exams !!<

johan
Go to Top of Page

korayem
New Member

Egypt
72 Posts

Posted - 07 May 2003 :  18:42:45  Show Profile  Reply with Quote
this also can be done..i will add it to my 'to do' list i promise :)

thanx very much for you wishes..i really need those :)

PS:did you test my forum with the 3.3 code? as i said i am almost 100% sure that it IS compatable..did you give it a shot..? remember you wont loose anything since you dont have to edit any DB or and ASP pages....<


By the time you read this, you've already read it!!
http://HASdot.COM/
Go to Top of Page

antracit
Starting Member

Sweden
33 Posts

Posted - 08 May 2003 :  08:36:06  Show Profile  Visit antracit's Homepage  Reply with Quote
quote:
Originally posted by korayem

PS:did you test my forum with the 3.3 code? as i said i am almost 100% sure that it IS compatable..did you give it a shot..? remember you wont loose anything since you dont have to edit any DB or and ASP pages....



Not yet,, coming up at my private server when time's right <
Go to Top of Page

sibi
Starting Member

33 Posts

Posted - 09 May 2003 :  08:42:04  Show Profile  Reply with Quote
hi korayem

i solved the font color problem by repalcing all occurances of "strHeadFontColor "in pop_uploads_new.asp and pop_upload_new_result.asp by "strFormFontColor "

i still have problem uploading files. The internet explorer status bar goes half way and stops.

Unfortunately i dont have public ip on my machine hence i wont be able to show u

regards
sibi

quote:
Originally posted by korayem

no sibi you are not missing any mods. this mod needs only snitz forum 3.4 to work on.
1)you can change this in the pop_upload_new.asp
2)to link to the current member's files add this anywhere you like:

response.write "<a href=""membersFiles.asp?memberFldrID="""&memberID&""">Shared Files</a>"

3)do you have a working example that i can see?

<

Edited by - sibi on 15 May 2003 02:49:32
Go to Top of Page

korayem
New Member

Egypt
72 Posts

Posted - 11 May 2003 :  11:41:34  Show Profile  Reply with Quote
quote:
Originally posted by sibi

hi korayem

i solved the font color problem by repalcing all occurances of "strHeadFontColor "in pop_uploads_new.asp by "strFormFontColor "

i still have problem uploading files. The internet explorer status bar goes half way and stops.

Unfortunately i dont have public ip on my machine hence i wont be able to show u

regards
sibi



dont worry sibi, i've been working during my freetime on correcting various problems. including the problem that happens with you (The internet explorer status bar goes half way and stops.)

expect the final version to be perfect...i just need to finish my exams first..

BTW the current updated beta (which i didnt release its source code yet) is running at my site now
http://hasdot.com/forum/
U:test
P:test
<


By the time you read this, you've already read it!!
http://HASdot.COM/
Go to Top of Page

sibi
Starting Member

33 Posts

Posted - 14 May 2003 :  08:47:01  Show Profile  Reply with Quote
Thanks koreyam

I think i found one more problem the membersFiles.asp uses a variable named MyDomainName . I think tis was defined in inc_uploadConfig.asp before (in 5.2 beta). its missing in 5.3. As a result When a file is uploaded the link to the file in the posting is missing the forum ip/domain name

BTW koreyam the file upload problem exist only when the IIS server is the IIS that comes along with XP/NT workstation. I tried in IIS5.0 running on 2000 server and it works .

bye
sibi

quote:
Originally posted by korayem

quote:
Originally posted by sibi

hi korayem

i solved the font color problem by repalcing all occurances of "strHeadFontColor "in pop_uploads_new.asp by "strFormFontColor "

i still have problem uploading files. The internet explorer status bar goes half way and stops.

Unfortunately i dont have public ip on my machine hence i wont be able to show u

regards
sibi



dont worry sibi, i've been working during my freetime on correcting various problems. including the problem that happens with you (The internet explorer status bar goes half way and stops.)

expect the final version to be perfect...i just need to finish my exams first..

BTW the current updated beta (which i didnt release its source code yet) is running at my site now
http://hasdot.com/forum/
U:test
P:test


<

Edited by - sibi on 14 May 2003 09:02:46
Go to Top of Page

Dave.
Senior Member

USA
1037 Posts

Posted - 15 May 2003 :  21:10:55  Show Profile  Reply with Quote
Nice MOD,

quote:
-make a new forum code tag [file][/file] which will refer to files by member id and file name. ie [file]1/temp.txt[/file]. why is this so important. well its VERY important since if we use it my way, changing the actual virtual path of uploaded files on the server wont affect a single post. while as we've seen here at SH forums, after he combined all uploaded files to a single folder, all posts refering to old location became broken links. using the [file][/file] tag idea, path changes dynamically according to the current virutal path


Not true, it will still refer to the old directory. It is coded into the database.<
Go to Top of Page

korayem
New Member

Egypt
72 Posts

Posted - 17 May 2003 :  08:25:43  Show Profile  Reply with Quote
well it is true it will work.

if a member attachs a file's link this way [file]memberID/filename[/file], when doing the post, the script converts all [][/] tags to html ones. well i will do the same thing and convert that tag to an html link like this:
download.asp?memberFldrID=memberID&file=filename
and i download.asp, the script will find the actual active directory of the file. and if not found it will display an error that file wasnt found.

so if you change your upload folder from uploadFiles to sharedFiles for example, using the old way (without my suggested new tags) the file URL in the post will be broken links. while my way you will never get broken links case the upload folder was changed.

remember i am doing this so when people change the path of uploading, the old posts will still have working links.<


By the time you read this, you've already read it!!
http://HASdot.COM/
Go to Top of Page

korayem
New Member

Egypt
72 Posts

Posted - 09 June 2003 :  23:19:34  Show Profile  Reply with Quote
yeah James and the good news is that i am preparing it for the FINAL release somewhere in the next 20 days i hope...

i am really glad that some of this community appreciates my work. and i am really glad to pay some work of mine in return to the whole snitz community 8-D<


By the time you read this, you've already read it!!
http://HASdot.COM/
Go to Top of Page
Page: of 14 Previous Topic Topic Next Topic  
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.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07