Author |
Topic  |
rick7165
Senior Member
   
USA
1094 Posts |
Posted - 05 January 2001 : 04:32:22
|
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
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 05 January 2001 : 04:54:30
|
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> |
 |
|
frankie
Junior Member
 
Vatican City
304 Posts |
Posted - 05 January 2001 : 12:13:48
|
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>
ô¿~ |
 |
|
frankie
Junior Member
 
Vatican City
304 Posts |
Posted - 05 January 2001 : 15:36:56
|
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?!!
ô¿~ |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 05 January 2001 : 17:10:33
|
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> |
 |
|
frankie
Junior Member
 
Vatican City
304 Posts |
Posted - 05 January 2001 : 18:27:11
|
<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?
ô¿~ |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 05 January 2001 : 18:36:55
|
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> |
 |
|
frankie
Junior Member
 
Vatican City
304 Posts |
Posted - 05 January 2001 : 18:58:41
|
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>
ô¿~ |
 |
|
mot
New Member

United Kingdom
70 Posts |
Posted - 16 January 2001 : 09:01:08
|
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?
|
 |
|
StockholmStudent
Junior Member
 
Sweden
329 Posts |
Posted - 16 January 2001 : 09:06:47
|
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 |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 16 January 2001 : 09:25:11
|
it adds the ability to attach file to the forum replies. it is not related to email in any way
'Resistance is futile' |
 |
|
wob
Starting Member
39 Posts |
Posted - 16 January 2001 : 12:39:10
|
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.
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 16 January 2001 : 12:50:33
|
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' |
 |
|
wob
Starting Member
39 Posts |
Posted - 16 January 2001 : 13:34:41
|
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?
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 16 January 2001 : 13:40:53
|
this is probably your problem
modFolder = "/mods/"
if mods is relative to your forum directory, it should be
modFolder = "mods/"
'Resistance is futile' |
 |
|
Topic  |
|