Author |
Topic  |
Dean_OK
Starting Member
USA
27 Posts |
Posted - 26 June 2006 : 18:44:07
|
Just a followup to let everyone know that so far, this mod has been 100 percent effective in stopping the spamming of our forum. We were getting spammed about every 2 hours.... in the last 16 hours we have had ZERO spams postings. |
 |
|
enemychaser
Starting Member
2 Posts |
Posted - 04 January 2007 : 03:08:40
|
Hi people. I've got a problem with: 11. Insert after the line entry "writefooter" the following code
I'm not sure which writefooter the readme is referring to (I found 3), so I experimented with them all. Turns out that none of them work. The server simply says that there is a problem with that line of code. Is there anything I could use as a reference point of sorts? |
Edited by - enemychaser on 04 January 2007 03:34:15 |
 |
|
C2K
New Member

USA
73 Posts |
Posted - 04 January 2007 : 03:49:40
|
Hey there. Could you post up the error you are getting so we can take a look at the output? It will help diagnose why you are getting that error. Also, after you add the entry if it says something along the lines of there being an error at line 'such and such', post a couple lines before and that actual line so we can see it, thanks.
|
Edited by - C2K on 04 January 2007 03:49:59 |
 |
|
enemychaser
Starting Member
2 Posts |
Posted - 04 January 2007 : 05:42:15
|
EDIT: Forgot to mention that my version is 3.4.05
Hi, thanks for the reply, that was pretty quick  Here's the chunk of error text that I'm getting, certain parts were removed, though they are the non-technical aspects of this report:
Error 700 - Unknown Error
An unspecified error has occured. It may due to a misconfiguration in server database, scripts or website settings.
Error Alert (Forums)
Category: Microsoft VBScript compilation ASP Code: Error Number: (0x800A0400) Description: Expected statement ASP Description:
URL: /register.asp Request.Form: Refer=http%3A%2F%2Fforums.tjc.edu.sg%2F&Submit=Agree Request.QueryString: mode=Register
File: /register.asp Line: 714 Column: 0 Source Code: end if
And here are the couple of lines before and after the code that is causing the problem:
Response.Write " <br /><p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """ color=""" & strHiLiteFontColor & """>Sorry, we are not accepting any new Members at this time.</font></p>" & vbNewLine & _ " <meta http-equiv=""Refresh"" content=""5; URL=default.asp"">" & vbNewLine & _ " <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""default.asp"">Back To Forum</font></a></p><br />" & vbNewLine end if WriteFooter '#### Antispam modification end if '#### Antispam End Response.End
sub DoCount '## Forum_SQL - Updates the Totals table by adding 1 to U_COUNT strSql = "UPDATE " & strTablePrefix & "TOTALS " strSql = strSql & " SET " & strTablePrefix & "TOTALS.U_COUNT = " & strTablePrefix & "TOTALS.U_COUNT + 1" my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords end sub |
Edited by - enemychaser on 04 January 2007 08:12:10 |
 |
|
Dean_OK
Starting Member
USA
27 Posts |
Posted - 25 January 2007 : 22:26:43
|
Does anyone know if this will work with Version 3.4.06?
I want to add this if when we upgrade.
|
 |
|
psmith32
Starting Member
Bhutan
36 Posts |
Posted - 02 March 2007 : 18:45:33
|
For version 3.4.06 inc_profile.asp Insert code at line 517 (After "end If")
register.asp insert at line #35 Insert at line 303 Insert at Line 747 after writefooter
If you changed your default image location in admin set-up from "images/" (default Location) then you must change (red) Response.Redirect "NEW LOCATION" & ImageP & ".gif" In the register.asp code to your new location.
If there are any VB coders out there the location varriable for the image file is "strImagURL". If this varriable could be put in the i.e.-- response.redirect strImagURL & Image & ".gif"-- it would automatically pick up the location of the image files. In the future if you ever change locations no change would be needed here (This didn't Work)
pat
|
 |
|
Topic  |
|