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)
 Mike's File Attachment Mod for Snitz
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 15

korayem
New Member

Egypt
72 Posts

Posted - 16 February 2003 :  12:11:44  Show Profile
hey guys its me again,
made some new updates wish that u all like it

here are what i've written in the read me file


VERSION:2

MODIFICATIONS MADE TO MIKE's FILE UPLOAD MOD:
-only memebers are able to upload files.
-maximum size of upload can be set as user wants (in inc_UploadConfig.asp)
-maxumum number of allowed file uploads and downloads (in inc_UploadConfig.asp)
(members have a different max. number than that of moderators)
(can be set to unlimited if desired)
-disable uploading any files if member reaches the maximum
(tested the disable feature even if the user tries cached versions of the pages)
-allowed file types are set in an array (in inc_UploadConfig.asp)
-display each file's size
-display each file's date of upload
-display total file size in user's directory
-members can't view any directory except their's
-members can't change/delete other members' files by creating seperate directory for each memeber.
-member may delete ALL files by clicking on DeleteFolder
-added a page to confirm any file/folder delete so that files wont be deleted by accident.8-D
-to share files, members must attach a link to it
-for admin, display all files and directories and ofcourse be able to delete them
-u may upload files in the post.asp page.
-the attach-to-post function only appear when called from a post page.
-attach-to-post will add the image to the post if the file is an image, else it will be only a link.
-myfiles.asp viewed the files in a weird table that didnt take the same colors of the forum.changed that.
-display the number of files in each folder
-display the total size of directory
-changed ASP file names so that they may be easier to remember and follow snitz file name schemes
-after file upload is successful, myfiles.asp automatically reloads to view the new uploaded files 8-D

Original Features:(before i made this MOD to the MOD)
-upload files to member's directory.
-attach desired files to posts, if image, the image is displayed in the post.
-delete file
-set allowed file types

FURTHER FUTURE MODIFICATIONS:
-i commented myfiles.asp and pop_upload_new_result.asp for anyone wanting to continue the modification process
-member may choose whether his directory is shared with other members or not.
-member's may browse other member's directories if its allowed.
-set max folder size limit for both members and moderators.


for the installation and other things, please read the readme file

i created 2 working tested versions, one for 3.4 and other for 3.3 and may be downloaded from here
forum ver3.4 -> http://HASdot.COM/MODS/modified_file_uploadMOD_korayem_2_3.4.zip
forum ver3.3 -> http://HASdot.COM/MODS/modified_file_uploadMOD_korayem_2_3.3.zip

and as usual to test a working version (currently 3.3 only available online) please visit
http://HASdot.COM/forum/
username:tester
password:tester

then at the top right u'll find a link to myfiles.asp

PS:isnt there a way to get a mail whenever a reply is made to a subscribed post here in snitz??
PS2:
quote:

Hey guys, I'm using Snitz Forums 2000 Version 3.4.03

The upload seems to go through without a hitch. When I view the newly created post, it shows:

Download Attachment: weee.jpg
19.68 KB

When I click on the "wee.jpg" link, I get this error:

The requested URL was not found on this server.

I know this has been asked and answered several times, but I'm a complete noob when it comes to this. So here are my questions:

1. What the heck am I doing wrong?
2. How can I make the image appear, rather than a link to the image?


TFO_Phoenix, y dont u test my version, it has what u want


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

homeacademy
Junior Member

USA
163 Posts

Posted - 16 February 2003 :  14:55:42  Show Profile
quote:
Originally posted by TFO_Phoenix

Hey guys, I'm using Snitz Forums 2000 Version 3.4.03

The upload seems to go through without a hitch. When I view the newly created post, it shows:

Download Attachment: weee.jpg
19.68 KB

When I click on the "wee.jpg" link, I get this error:

The requested URL was not found on this server.

I know this has been asked and answered several times, but I'm a complete noob when it comes to this. So here are my questions:

1. What the heck am I doing wrong?
2. How can I make the image appear, rather than a link to the image?




1. Looking at the error message you gave, it appears you haven't properly set your forum URL. That would cause an incorrect link to be inserted. Go to: Admin Options -> Main Forum Config -> Forum URL to correct the problem. Enter your domain and forum directory path (ie. http://www.mysite.com/forum/) in the field. Then, it should properly insert the URL. You will have to re-upload the file you are trying to insert in order for the changes to take effect.

2. This was a function added after the inital release of this mod. There is a File Lister Add-on, found here, which will add that and several very useful features. In addition to directly inserting images inline, it will allow users to re-use their uploaded files, delete them, etc. It also incorporates the various bug fixes posted in this topic. It appears to me koraem's mod would do what you want as far as image insertation, it just has a different interface. Either should work.

After checking the URL configuration, if you still get the same error message post any additional information you have and I'll do my best to help.
Go to Top of Page

TFO_Phoenix
Starting Member

7 Posts

Posted - 16 February 2003 :  16:13:07  Show Profile  Visit TFO_Phoenix's Homepage  Send TFO_Phoenix an ICQ Message
Hey thanks a lot guys...very helpful. I'll try what you suggested Homeacademy, and if that doesn't work I'll give Korayem a shot. Great work on these mods guys! Thanks again.

Go to Top of Page

wagster1012
Starting Member

1 Posts

Posted - 16 February 2003 :  18:29:05  Show Profile
hi all,

i am a newbie with all this asp stuff but i have managed to get my forum working to how i want it with a few probs here and there sorted out.

What i am strugling with now is i have the attach mod working but when i upload images they view no prob but if i havent resized them to a thumbnail before i upload them they end up showing in original sizes and taking up the whole page.

Is there a way to automatically resize on load and if so how? i have read through all the posts but i couldnt find anything to help me.

Many thanks
Go to Top of Page

korayem
New Member

Egypt
72 Posts

Posted - 17 February 2003 :  07:23:40  Show Profile
u mean after u attach the uploaded pic to anypost, they are viewed in their original size?

well u must note that deciding on the size of the pic is done by the uploader, so in any post, pics will be viewed in the same size they were uploaded in.


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 - 17 February 2003 :  07:44:45  Show Profile
LOL, guys i found something really really funny.
Most ,if not all, of you having installed the mike's file attachment in its various versions forgot one important thing, in the FAQ sec it says :
Q:'can i attach files?'
A:'For security reasons, you may not attach files to any posts. However, you may cut and paste text into your post.'

LOL!!..
check out my FAQ now...

http://HASdot.COM/forum/faq.asp

i have faq modified in both versions, 3.3 and 3.4, i will add them to the zip files later on inshalla...

peace


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

TFO_Phoenix
Starting Member

7 Posts

Posted - 17 February 2003 :  20:20:55  Show Profile  Visit TFO_Phoenix's Homepage  Send TFO_Phoenix an ICQ Message
Will either of these Upload Mods work with a UNIX OS?

Go to Top of Page

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 18 February 2003 :  15:12:27  Show Profile
ewyglend,

This is a common error for most things, just no this MOD, as most people should of realised why.
quote:
Originally posted by ewyglend

Is this not a common problem I take it??

quote:
I implimented the file attachment mod onto the forums on my pws and it works great. However, I uploaded the forums to an outside server and now when I attempt to upload a file it takes me to "this page cannot be displayed." Are there settings I need to change on the "uploaded" file to ensure that users can upload to it? By the way, I am running it on a frontpage server, I am not sure if that makes a difference or not.


Any suggestions would be greatly appreciated!

The reason is that the area you are trying to upload the file to, has only read permission on the server. You need to get your ISP to set your upload directory to have read/write permissions. Does this make sense to you?


Cheers,

David Greening
Go to Top of Page

kingfenix
Starting Member

19 Posts

Posted - 18 February 2003 :  16:32:55  Show Profile
Hi, I recently found and installed Mikes attachment add-on.

1)the upload works great...
2)the user folder gets created and file is there...

Problem:
when viewing the submitted post, I see a red "X" though next to the link...the link itself works when clicked, it does show the picture 0r open the file, but the red "X" thing has got to go...

any ideas whats wrong causing this? I have checked permissions and they are all in order and as I said the link works when clicked on.

Doug
Go to Top of Page

korayem
New Member

Egypt
72 Posts

Posted - 19 February 2003 :  06:54:34  Show Profile
the red cross is this file icon_paperclip.gif

->u need to correctly specify the location of this file<-


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

Ez4arab
Junior Member

479 Posts

Posted - 28 March 2003 :  11:45:01  Show Profile  Visit Ez4arab's Homepage
I have improve this mod. When member upload text file or image file.

In the file outputFile.asp


'******************************
		if extension = ".jpg" then
			Response.Write "      <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""JavaScript:onClick= addimage()"">Close Window</a></font></p>" & vbNewLine
		elseif extension = ".jpeg" then
			Response.Write "      <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""JavaScript:onClick= addimage()"">Close Window</a></font></p>" & vbNewLine
		elseif extension = ".gif" then
			Response.Write "      <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""JavaScript:onClick= addimage()"">Close Window</a></font></p>" & vbNewLine
		elseif extension = ".txt" then
			Response.Write "      <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""JavaScript:onClick= addfile()"">Close Window</a></font></p>" & vbNewLine
		elseif extension = ".zip" then
			Response.Write "      <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""JavaScript:onClick= zip()"">Close Window</a></font></p>" & vbNewLine
		elseif extension = ".asp" then
			Response.Write "      <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""JavaScript:onClick= asp()"">Close Window</a></font></p>" & vbNewLine
		elseif extension = ".swf" then
			Response.Write "      <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""JavaScript:onClick= flash()"">Close Window</a></font></p>" & vbNewLine
		else
			Response.Write "      <p><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""JavaScript:onClick= addfile()"">Close Window</a></font></p>" & vbNewLine
		End if
'********************************


and you can download the java scrpit form here becuse the fourm code will filter the code

javaclose.txt
2.2 KB



Ez4arab web site Ez4arab |

Edited by - Ez4arab on 29 March 2003 15:29:48
Go to Top of Page

jdmaynard
Starting Member

2 Posts

Posted - 08 April 2003 :  11:03:53  Show Profile
Here's a new interface to make it more snitz-like. Rather than the code changes in "post.asp", try the following. There are a few more steps than your original versions, but they're all baby steps....

in "inc_post_buttons.asp" add a string continuation to line 70 :
"<a href=""Javascript:list();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorList,"Insert List","align=""top""") & "</a>" & _
"<a href=""Javascript:attach();"" tabindex=""-1"">" & getCurrentIcon(strIconEditorPaperclip,"Insert File Attachment","align=""top""") & "</a>" & vbNewLine

then add an attach() function to "inc_code.js"

function attach() {
window.open('upload.html','Uploading','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=400,height=300');
}


That means, of course, adding a strIcon entry in "inc_iconfiles.asp"

Const strIconEditorPaperclip = "icon_editor_paperclip.gif|23|22"



And finally rejig the icon to look like the others. , call it icon_editor_paperclip.gif and put it with all the other snitz images.

So now it looks and works like all the other snitz format buttons - except maybe that I didn't include the help and prompt format modes. On the other hand, your pop-up page really works a lot like prompt mode and it's pretty darned obvious how to use it.

good luck

Doug


Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 26 April 2003 :  09:17:34  Show Profile  Visit richfed's Homepage
Very confused here ... installed Mike's File Attachment MOD, then "upgraded" it with the File Lister Add-On ... both currently found at SnitzBitz ...

Everything looks good on all the modded files.

My problem is that so far my Host refuses to give me write permissions on another folder, so, having already been using the Photo Album MOD [with write permissions granted ... go figure], I decide to use those folders [I have 3 forums, each with its own uploads directory - NOT in the Forum Folder, but in the Root ... uploads, uploads2, and uploads3].

When I try to upload an image to include with a post, I get a "Path Not Found" error, yet I can view all the files already uploaded [via Photo Album] using the new MOD ...

So, I tried inserting the full path:

"c:\inetpub\mohicanpress\mohicanpress.com\www\uploads3"

I get a request for a Virtual Path, not a Physical one ...

The actual error message:
quote:
Server.MapPath() error 'ASP 0172 : 80004005'

Invalid Path

/messageboard3/outputFile.asp, line 50

The Path parameter for the MapPath method must be a virtual path. A physical path was used.



So, my question: What is the virtual path for the above?

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]

Edited by - richfed on 26 April 2003 09:24:08
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 29 April 2003 :  05:05:20  Show Profile  Visit richfed's Homepage
With a bit of advice, I got this worked out. Really quite simple. For others in this bind - who, like me, don't have a clue ...

../uploads3 does the trick.

Someone else may be able to more accurately explain this, but the number of your "dots" may vary. Each dot seems to represent one level up your directory hierarchy away from the uploads folder had it actually resided in your forum folder. Something like that.

Anyway, the mod[s] work perfectly and are a great addition to a forum!

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

sibi
Starting Member

33 Posts

Posted - 30 April 2003 :  05:05:58  Show Profile
hi

I run Sintz v 3.4. I tried Mikes file attachment mod + the mod addon downloaded from http://www.snitzbitz.com/mods/details.asp?Version=All&mid=67. i did everything as per the readme.txt

I run IIS 5.1 that comes with win XP professional. The file system is NTFS and i have given IUSR_SIBI (the anonymous login for IIS) full permission to the "Uploads" folder. In the IIS manager console (Control pannel >>adminitrative tools>>Internet Information Services) i have set the "uploads" folder to have "read" ,"write","directory browsing" and "Script source access". I have set the max file size uploadable to 5mb.

When the "Insert a file" icon is selected the window opens as it should and all goes fine until the file is submitted for upload.The size of the file i tried to upload is 200k . I get no time outs just the window with the progress bar going 1/2 way and never any further.

I then tried the update posted by korayem http://HASdot.COM/MODS/modified_file_uploadMOD_korayem_2_3.4.zip . This time it proceeds a bit further and shows the following error message


HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services


Technical Information (for support personnel) Error Type: Active Server Pages, ASP 0113 (0x80004005) The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools. /forums/pop_upload_new_result.asp Browser Type: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461) Page: POST 232065 bytes to /forums/pop_upload_new_result.asp POST Data: error '80020009' Exception occurred. /iisHelp/common/500-100.asp, line 223

thanks
sibi
Go to Top of Page
Page: of 15 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07