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 Attachments
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 9

rick7165
Senior Member

USA
1094 Posts

Posted - 05 January 2001 :  04:32:22  Show Profile  Visit rick7165's Homepage
HuwR... I'm having trouble with the mod_dbsetup.asp file running... looks like everything else is there, just can't do the database update.

I have a test forum running.. It's Richard's Mod.

http://www.eastpasco.com

I keep getting a Error 500 acts like its timming out.

Thanks
Rick


Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 05 January 2001 :  04:54:30  Show Profile  Visit HuwR's Homepage
try putting mod_dbsetup.asp and the .dbs file in the forum directory, will it run from there?

It may be that your server doesn't allow the File scripting object, in which case you will not be able to use File attachments.

<font color=blue>'Resistance is futile'</font id=blue>
Go to Top of Page

frankie
Junior Member

Vatican City
304 Posts

Posted - 05 January 2001 :  12:13:48  Show Profile  Visit frankie's Homepage  Send frankie an AOL message  Send frankie an ICQ Message  Send frankie a Yahoo! Message
HuwR,

Thanks for your concern...The files are on their way!

Note: Congratulation (Global, ahh!!?) <img src=icon_smile_big.gif border=0 align=middle>

ô¿~
Go to Top of Page

frankie
Junior Member

Vatican City
304 Posts

Posted - 05 January 2001 :  15:36:56  Show Profile  Visit frankie's Homepage  Send frankie an AOL message  Send frankie an ICQ Message  Send frankie a Yahoo! Message
HuwR,

Thanks alot for your help, I got the files and it worked (it's now updating the db). Though when I turn the allowfileuploads from the admin page off and try to give certain members the privilage of uploading by checking the appropriate box in their profile page nothing happens! (same story for downloads)!

Any ideas?!!

ô¿~
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 05 January 2001 :  17:10:33  Show Profile  Visit HuwR's Homepage
This is correct the admin is a global turn on/off, although It should remove the checkboxes if disabled globally, I will fix my code.

<font color=blue>'Resistance is futile'</font id=blue>
Go to Top of Page

frankie
Junior Member

Vatican City
304 Posts

Posted - 05 January 2001 :  18:27:11  Show Profile  Visit frankie's Homepage  Send frankie an AOL message  Send frankie an ICQ Message  Send frankie a Yahoo! Message
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
This is correct the admin is a global turn on/off, although It should remove the checkboxes if disabled globally, I will fix my code.

<font color=blue>'Resistance is futile'</font id=blue>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

HuwR, does that mean that I can't give members I choose a privilage of uploading over the rest?

ô¿~
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 05 January 2001 :  18:36:55  Show Profile  Visit HuwR's Homepage
No, set the default avlues for M_allowuploads and M_Allowdownloads to 0, that way it will be disabled for all users unless you assign it.

<font color=blue>'Resistance is futile'</font id=blue>
Go to Top of Page

frankie
Junior Member

Vatican City
304 Posts

Posted - 05 January 2001 :  18:58:41  Show Profile  Visit frankie's Homepage  Send frankie an AOL message  Send frankie an ICQ Message  Send frankie a Yahoo! Message
HuwR,

sorry for the bothersome I cause you. But I reviewed your mod's code in my inc_profile page and says this:

<pre id=code><font face=courier size=2 id=code><tr>
<td bgColor="<% =strPopUpTableColor %>" align=right valign=top nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Attachments: </font></b></td>
<td bgColor="<% =strPopUpTableColor %>" valign=top>
<input type="checkbox" name="allowDownloads" value="1"<% if rs("M_ALLOWDOWNLOADS") = 1 then Response.Write(" checked") end if%> > <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Allow Downloads</font><br>
<input type="checkbox" name="allowUploads" value="1"<% if rs("M_ALLOWUPLOADS") = 1 then Response.Write(" checked") end if%> > <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Allow Uploads</font>
</td>
</tr></font id=code></pre id=code>

As far as I'm concerned that code doesn't specify what to do when the boxes are unchecked after being checked!!?

Thank you <img src=icon_smile.gif border=0 align=middle>

ô¿~
Go to Top of Page

mot
New Member

United Kingdom
70 Posts

Posted - 16 January 2001 :  09:01:08  Show Profile  Visit mot's Homepage
quote:


<tr>
<td bgColor="<% =strPopUpTableColor %>" align=right valign=top nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Attachments: </font></b></td>
<td bgColor="<% =strPopUpTableColor %>" valign=top>
<input type="checkbox" name="allowDownloads" value="1"<% if rs("M_ALLOWDOWNLOADS") = 1 then Response.Write(" checked") end if%> > <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Allow Downloads</font><br>
<input type="checkbox" name="allowUploads" value="1"<% if rs("M_ALLOWUPLOADS") = 1 then Response.Write(" checked") end if%> > <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Allow Uploads</font>
</td>
</tr>


As far as I'm concerned that code doesn't specify what to do when the boxes are unchecked after being checked!!?

Thank you

ô¿~


Was this issue resolved somewhere else?
Go to Top of Page

StockholmStudent
Junior Member

Sweden
329 Posts

Posted - 16 January 2001 :  09:06:47  Show Profile  Visit StockholmStudent's Homepage  Send StockholmStudent an ICQ Message
Hmm... I dont understand... What EXACTLY does this file attachement do!? Does it ad file attachment.function to the forum itself or to the e-mail-form!?

cheers

/CHEETAH
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 16 January 2001 :  09:25:11  Show Profile  Visit HuwR's Homepage
it adds the ability to attach file to the forum replies. it is not related to email in any way

'Resistance is futile'
Go to Top of Page

wob
Starting Member

39 Posts

Posted - 16 January 2001 :  12:39:10  Show Profile
Hello all,

I am trying to install the Mod Commander addition to my forum so that I can then add the file upload feature. I was hoping that someone here might could help me out a bit. I have set up a Snitz forum on an intranet site. I have unzipped the files that I downloaded from Snitz into a subdirectory called 'mods'. In the text file included with it, it states that I should modify the admin_home.asp file to include the modCMD.asp script. After doing this, the admin_home page loads with the 'Mod Control' addition showing at the bottom, but right above the addition there is an error :

"Microsoft VBScript runtime error '800a0035'
File not found
/snitz/mods/modCMD.asp, line 37 "


I made the blank .mod and .txt files as per the instructions and am not sure what is causing the error.
I thought that since others from this thread have used this, maybe someone could shed some light? Any help would be greatly appreciated.



Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 16 January 2001 :  12:50:33  Show Profile  Visit HuwR's Homepage
could you post what your line 37 says, forr clarification, if no line numbers, post the section that looks similar to this

Dim objFile, objFolder, objFolderContents, objFileItem

modFolder = "mods/"
Set fso = CreateObject("Scripting.FileSystemObject")

set objFile = fso.Getfile(server.mappath(modFolder & "modCMD.asp"))
set objFolder = objFile.ParentFolder
set objFolderContents = objFolder.Files

for each objFileItem in objFolderContents


'Resistance is futile'
Go to Top of Page

wob
Starting Member

39 Posts

Posted - 16 January 2001 :  13:34:41  Show Profile
Hello HuwR,

This is the section of code you asked to see.

Dim fs, thisfile, thisline, whichfile, modFile, modFolder
Dim modName, modLink, modReadme, modVersion, modSetup, modAuthor
Dim objFile, objFolder, objFolderContents, objFileItem

modFolder = "/mods/"
Set fso = CreateObject("Scripting.FileSystemObject")

set objFile = fso.Getfile(server.mappath(modFolder & "modCMD.asp"))
set objFolder = objFile.ParentFolder
set objFolderContents = objFolder.Files

for each objFileItem in objFolderContents
modFile = instr(objFileItem.Name, ".mod")
if modFile <> 0 then
modFile = left(objFileItem.Name, modfile - 1)
whichfile=server.mappath(modFolder & modFile & ".mod")


Any ideas?

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 16 January 2001 :  13:40:53  Show Profile  Visit HuwR's Homepage
this is probably your problem

modFolder = "/mods/"

if mods is relative to your forum directory, it should be

modFolder = "mods/"

'Resistance is futile'
Go to Top of Page
Page: of 9 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.52 seconds. Powered By: Snitz Forums 2000 Version 3.4.07