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

D34thW1sh
Starting Member

Italy
11 Posts

Posted - 27 November 2004 :  13:15:14  Show Profile  Visit D34thW1sh's Homepage  Reply with Quote
I read the post and saw a few persons had this problem, but I didn't see a post on how to solve it.

Here is the link that gives me that error:
http://www.chaos-unleashed.net/public/forum/membersFiles.asp

The error is:

Microsoft JET Database Engine error '80040e10'

No value given for one or more required parameters.

/public/forum/inc_UploadFunc.asp, line 551

The paths are setup like this:

physicalUploadFolder = "D:\Inetpub\webs\chaos-unleashednet\public\forum\sharedFiles"
physicalUploadTempFolder = "D:\Inetpub\webs\chaos-unleashednet\public\forum\temp"
physicalUploadTextFolder = "D:\Inetpub\webs\chaos-unleashednet\public\forum\filesText"
logFilePath = "D:\Inetpub\webs\chaos-unleashednet\public\forum\logFiles"


and yes I checked the paths ... the mod is working fine accept for tis message

Thanks for the help.<

Don't ask me how come the MOD is working ... Thank the person that wrote it.
I even got problems understanding my wife's shopping list :-P
A big "thank you" from a codenoob.
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 28 November 2004 :  12:49:59  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message  Reply with Quote
|Yup, you are right, it doesn't look like a path problem. What is line 551 of inc_UploadFunc.asp?<
Go to Top of Page

D34thW1sh
Starting Member

Italy
11 Posts

Posted - 29 November 2004 :  10:27:44  Show Profile  Visit D34thW1sh's Homepage  Reply with Quote
inc_UploadFunc.asp is the same for all using this MOD and should not require changes.

this is the function that gives me the error:

'################################################################
' GET FOLDER OWNER INFORMATION FROM DB
'################################################################
'get member name from ID
function getFolderMemberOwner(reqMemberID)
dim strSql
reqMemberID=chkString(reqMemberID,"SQLString")
strSql = "SELECT M_NAME"
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE MEMBER_ID = " & reqMemberID
set rsMemInfo = my_Conn.Execute (strSql)
if rsMemInfo.BOF or rsMemInfo.EOF then
getFolderMemberOwner = false
else
getFolderMemberOwner = rsMemInfo("M_NAME")
end if
rsMemInfo.Close
Set rsMemInfo = Nothing
end function

the line in red is 551

I sill can't figure out what went wrong ...

thanks for any help

edit:

I also changed the folder position to make it exactly as in the sample:

logFilePath = "D:\Inetpub\webs\chaos-unleashednet\public\forum\logFiles"

and deleted the old logFiles folder and created the new one ... no changes :-(<

Don't ask me how come the MOD is working ... Thank the person that wrote it.
I even got problems understanding my wife's shopping list :-P
A big "thank you" from a codenoob.

Edited by - D34thW1sh on 29 November 2004 10:37:27
Go to Top of Page

D34thW1sh
Starting Member

Italy
11 Posts

Posted - 29 November 2004 :  11:03:37  Show Profile  Visit D34thW1sh's Homepage  Reply with Quote
OK I solved it ...

Sounds very dumb, but creating the "logFiles" folder as it says in the inc_UploadConfig.asp file (see quate), it returns the a.m. error.

quote:
'################
' 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


So that should include the logFiles folder also ... NOOOOOOO!!!

Deleting the folder I created, it works fine ......... HOORAY

Thanks all<

Don't ask me how come the MOD is working ... Thank the person that wrote it.
I even got problems understanding my wife's shopping list :-P
A big "thank you" from a codenoob.
Go to Top of Page

D34thW1sh
Starting Member

Italy
11 Posts

Posted - 29 November 2004 :  11:57:21  Show Profile  Visit D34thW1sh's Homepage  Reply with Quote
Sorry, next problem ... oops

I can't implement the following:

--------------------------------------
Use one of your files as an avatar:
--------------------------------------

the following will enable members from choosing an uploaded image file in their directory
to use it as their avatar.

##################################
## in inc_profile.asp ##
##################################
search for this
_____________________________________________________________________
"<input class=newlogin type=""text"" name=""Avatar"" value=""" & strMyAvatar & """> <input class=buttons name=""pickavatar"" type=""button"" value=""Our Avatars"" onclick=""javascript:window.viewfull('inc_avatar.asp?box=Avatar')"">" & vbnewline &_
_____________________________________________________________________
and REPLACE the above line with the following

etc...

simply because I dont have tha statement. Do I need another upload MOD ?<

Don't ask me how come the MOD is working ... Thank the person that wrote it.
I even got problems understanding my wife's shopping list :-P
A big "thank you" from a codenoob.

Edited by - D34thW1sh on 29 November 2004 11:58:06
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 29 November 2004 :  16:47:46  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message  Reply with Quote
yup, you need one of the avatar mods installed. Can't remember off hand which one tho.<
Go to Top of Page

D34thW1sh
Starting Member

Italy
11 Posts

Posted - 30 November 2004 :  04:36:27  Show Profile  Visit D34thW1sh's Homepage  Reply with Quote
I've installed the following Avatar MOD:

Avatar Mod for 3.4

Original Author: Richard Kinser, adapted by Hamlin.

Download: www.ian-hamlin.co.uk/downloads.asp or www.snitzbitz.com/mods/details.asp?Version=All&mid=52" target="_blank">http://www.snitzbitz.com/mods/details.asp?Version=All&mid=52


the zip file is called: avatar-34-13.zip

but I didn't find other Avatar MODs for now ...

bummer ... would be a hassle for me takin the MOD out again.

any suggestions or link to a different "compattible" Avatar MOD?
Could be helpfull for people to know they NEED that MOD to make it all work. It should be in the readme as a REQUIREMENT.
At least I know it wasn't me that f***** up.

Thx again ... confirmations are always usefull.<

Don't ask me how come the MOD is working ... Thank the person that wrote it.
I even got problems understanding my wife's shopping list :-P
A big "thank you" from a codenoob.
Go to Top of Page

Machina
New Member

Switzerland
74 Posts

Posted - 21 December 2004 :  10:03:18  Show Profile  Visit Machina's Homepage  Reply with Quote
quote:
Originally posted by D34thW1sh

I've installed the following Avatar MOD:

Avatar Mod for 3.4

Original Author: Richard Kinser, adapted by Hamlin.

Download: www.ian-hamlin.co.uk/downloads.asp or www.snitzbitz.com/mods/details.asp?Version=All&mid=52" target="_blank">http://www.snitzbitz.com/mods/details.asp?Version=All&mid=52


the zip file is called: avatar-34-13.zip

but I didn't find other Avatar MODs for now ...

bummer ... would be a hassle for me takin the MOD out again.

any suggestions or link to a different "compattible" Avatar MOD?
Could be helpfull for people to know they NEED that MOD to make it all work. It should be in the readme as a REQUIREMENT.
At least I know it wasn't me that f***** up.

Thx again ... confirmations are always usefull.



Hi!

So Did this avatar MOD finally work with File SHaring MOD?



<

Machina
-------
http://www.jaboulay.fr
--------
Snitz based site:
http://www.itu.int/YLinICTs
MODS Used : TMPJ's Header Cell Image, Site Integration, Front Page News, News Events Calendar, Nikkol's Usergroups, Simple Slash, Avatar, File Sharing, Links
Go to Top of Page

Machina
New Member

Switzerland
74 Posts

Posted - 22 December 2004 :  10:42:13  Show Profile  Visit Machina's Homepage  Reply with Quote
*** AVATAR *** -> A possible solution :

you have to edit 2 files:
1) in inc_avatar.asp:
at the end of the file,

REPLACE

Response.Write	"	</td>" & vbNewLine & _ 
		"	</tr>" & vbNewLine & _
		"</table>"

Response.Write	"       </td></tr>" & vbNewLine


BY

Response.Write	"	</td>" & vbNewLine & _ 
		"	</tr>" & vbNewLine
if Request.QueryString("mode") <> "Register" then ' do not propose the upload to an unregistered user
response.write	"<tr><td colspan=2>"& vbnewline &_
		"<input class=buttons name=""attachAvatar"" type=""button"" value=""Your Folder"" onclick=""javascript:window.open('membersFiles.asp?memberFldrID="&memberID&"&InsertFile=select&attachType=avatar')"">" & vbnewline
end if
response.write		"</table>"

Response.Write	"       </td></tr>" & vbNewLine


2) in inc_files_attach.asp
AFTER
<script>
opener.document.Form1.Avatar.value="aspThumb.asp?avatarMode=true&forumID=<%=request("forumID")%>&fileName=<%=server.URLEncode(Name)%>&memberFldrID=<%=memberFldrID%>&cSF=<%=server.URLEncode(cSF)%>";
</script>
<%

ADD

regAvatar_url = "aspThumb.asp?avatarMode=true&forumID=" & request("forumID") & "&fileName=" & server.URLEncode(Name)& "&memberFldrID=" & memberFldrID & "&cSF=" & server.URLEncode(cSF)
avatarName = Name
'#### Inster into database
strSqlAvatar = "INSERT INTO " & strTablePrefix & "AVATAR ("
strSqlAvatar = strSqlAvatar & "A_URL"
strSqlAvatar = strSqlAvatar & ", A_NAME"
strSqlAvatar = strSqlAvatar & ", A_MEMBER_ID"
strSqlAvatar = strSqlAvatar & ") VALUES ("
strSqlAvatar = strSqlAvatar & "'" & regAvatar_url & "'"
strSqlAvatar = strSqlAvatar & ", '" & avatarName & "'"
strSqlAvatar = strSqlAvatar & ", '" & MemberID & "'"
strSqlAvatar = strSqlAvatar & ")"
my_Conn.Execute (strSqlAvatar)

REPLACE:
response.write "<a href=""#"" onClick=""window.close();"">Close Window.</a></p>"

BY:
response.write "<a href=""#"" onClick=""window.opener.location.reload();window.close();"">Close Window.</a></p>"

The tricky thing is that when you want to use an uploaded picture as an avatar is that the file must be already uploaded. But It works fine.

I Wish I didn't forget a modification I did

PS. Of Course you need the AVATAR MOD to be Installed<

Machina
-------
http://www.jaboulay.fr
--------
Snitz based site:
http://www.itu.int/YLinICTs
MODS Used : TMPJ's Header Cell Image, Site Integration, Front Page News, News Events Calendar, Nikkol's Usergroups, Simple Slash, Avatar, File Sharing, Links

Edited by - Machina on 22 December 2004 11:04:42
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 22 December 2004 :  13:19:51  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message  Reply with Quote
quote:
The tricky thing is that when you want to use an uploaded picture as an avatar is that the file must be already uploaded. But It works fine.
I got around that by adding a "upload image" link to the bottom of the code that's used when avatarMode=true.<
Go to Top of Page

nickw
Junior Member

Ireland
193 Posts

Posted - 10 January 2005 :  13:42:22  Show Profile  Reply with Quote
Hi All, this is a great MOD, but I do not have the Private Messages add-on.

I have two issues that I would really appreciate anyones help on.

1. At the bottom of the membersfiles.asp page I have the following error "An error occurred on the server when processing the URL. Please contact the system administrator."
Edit:OK - I did not read the instructions properly. I had a folder within another folder.

2. I would like to add a link in each users profile to their own file location.

I would appreciate your input.

Cheers,

Nick<

Nick

Edited by - nickw on 12 January 2005 05:53:00
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 12 January 2005 :  15:37:48  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message  Reply with Quote
You need to use this link:

membersFiles.asp?memberFldrID=" & memberID

I'm running a majorly modded version so I can't show you where to put it, but try looking for say the Cool links section, duplicate that section and edit it to show the link above.<
Go to Top of Page

WebJoe
Starting Member

Switzerland
1 Posts

Posted - 13 February 2005 :  12:39:43  Show Profile  Reply with Quote
quote:
Originally posted by amirx
  • ...

  • I am using MS Visual Interdev for the site management. Whenever I do "Refresh Project View" in every folder on the web server, it creates a sub-folder called _vti_cnf, with a copy of the files of the folder, e.g. if I have file ...\sharedfiles\text\1\test.doc.txt it will create a copy ...\sharedfiles\text\1\_vti_cnf\test.doc.txt
    This totally screws the MOD:
    
        Microsoft VBScript runtime (0x800A003E)
        Input past end of file
        /forums/inc_UploadFunc.asp, line 505

    For now I just delete these folders manually every time I do a project refresh.
    Maybe it is possible to ignore sub folders that start with underscore?




I had the same problems, not realizing that they were related: A member complained that clicking on "Upload" or "Attach" would only show the error mentioned above. So in inc_UploadFunc.asp in the function readFileInfoText (line 478) I added
On Error Resume Next

I know that this is not really fixing the bug, but it did the trick.
While testing the bugfix I noticed that in the pop_upload_new.asp and in membersFiles.asp it listed the _vti_cnf-Folders MS Visual Studio and FrontPage use save metadata about managed files.

So here is what I did to fix that:
In inc_UploadFunc.asp, line 272, right after
For Each Folder in ...

add
If Not (Left(Folder.Name, 4) = "_vti") Then

and in line 283, right before
Next

add
End If


Do the same in the functions GetFileNo (lines 681/683), GetFileSize (lines 720/722), GetCatInfo (lines 829/834), GetSubFolderNo (lines 883/886), ScanFolders (lines 927/971).

The line numbers are before any modification, so you better work from bottom to the top of the file.
I check for _vti (instead of just _ as asked for by amirx), because FP uses _vti_cnf and _vti_pvt.<
Go to Top of Page

philnai
Starting Member

1 Posts

Posted - 14 February 2005 :  09:06:18  Show Profile  Reply with Quote
Hi, Having just installed Snitz Forums 2000 v3.4.05, I wish to give uses the ability to add attachments.

Looking at this mod, it seems to be based on Snitz Forums 2000 v3.4.04. My question is, does this mod work with Snitz Forums 2000 v3.4.05 and if so, can someone please point me in the right direction for a successful installation.

Thanks in advance<
Go to Top of Page

wildfiction
Junior Member

167 Posts

Posted - 15 March 2005 :  05:47:14  Show Profile  Visit wildfiction's Homepage  Reply with Quote
Great mod - thanks a lot.

I have a small problem. The icons are not showing up for this mod and so I get text instead. I've tried changing the fileIconsPath variable to a number of different values (current fileIconsPath="/images/") but nothing seems to work.

Any ideas?<
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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07