Author |
Topic |
|
eviljoker7075
Junior Member
United Kingdom
166 Posts |
Posted - 15 June 2005 : 09:44:56
|
Hey I have also tried this mod but there is a problem. It asks me to find the following code in the WriteStatistics()subroutine in default.asp
intStatRowSpan = 3
but it does not exist! I have tried searching with different numbers in place of the 3 (in case other mods required me to ammend this) and also I tried searching for the code excluding the number and "+" sign - and still nothing. Please help me. |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 15 June 2005 : 09:57:22
|
What version of the forums and the mod are you using? The latest version of active users is available here.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
eviljoker7075
Junior Member
United Kingdom
166 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 15 June 2005 : 10:20:07
|
That mod was written for v3.4.05. The code you're looking for looks like this in v3.4.04 (line 903):if ShowLastHere then
Response.Write "5"
else
Response.Write "4"
end if I'm guessing here as I'm not familiar with the mod in question, but try changing the 5 to a 6 and the 4 to a 5. Make sure you back up your files first in case I'm wrong.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
eviljoker7075
Junior Member
United Kingdom
166 Posts |
Posted - 15 June 2005 : 10:21:19
|
Don't worry I'll back em up - always do! I have faith in you though! Wish me luck! |
|
|
eviljoker7075
Junior Member
United Kingdom
166 Posts |
Posted - 15 June 2005 : 10:28:55
|
Well I tried it and it just blanks the pages with the following error message (only tried opening the member list):
Microsoft VBScript compilation error '800a03f6'
Expected 'End'
/members.asp, line 575
The code that appears in the 575th line in the members.asp file is:
end Function
Any ideas? |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 15 June 2005 : 10:41:42
|
Did the mod require you to change anything else in inc_header.asp? Changing those two numbers as I indicated above shouldn't give you an error of this nature. By the way, it's always a good idea to finish installing one mod before strating work on another.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
eviljoker7075
Junior Member
United Kingdom
166 Posts |
Posted - 15 June 2005 : 10:51:48
|
yeah - I restored my database to a point where I was not half way through the other active users mod.
This mod required me to replace the following code in the inc_header.asp file:
end if
if mLev = 4 and strEmailVal = "1" and strRestrictReg = "1" and strEmail = "1" then
'## Forum_SQL - Get membercount from DB
with this:
'## Update LastActive column
strActiveSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
strActiveSql = strActiveSql & " SET M_LASTACTIVE = '" & strForumTimeAdjust & "'"
strActiveSql = strActiveSql & ", M_LAST_IP = '" & Request.ServerVariables("REMOTE_ADDR") & "'"
strActiveSql = strActiveSql & " WHERE MEMBER_ID = " & MemberID
my_Conn.Execute (strActiveSql),,adCmdText + adExecuteNoRecords
if mLev = 4 and strEmailVal = "1" and strRestrictReg = "1" and strEmail = "1" then
'## Forum_SQL - Get membercount from DB |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 15 June 2005 : 10:57:58
|
Hmm, dunno if you missed a line when copying and pasting but there's an end if missing before the first line in the updated code.
Actually, to save executing unncessary SQL statement, I'd move the code that updates the last active column a couple of lines up, above the else immediately before it.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
eviljoker7075
Junior Member
United Kingdom
166 Posts |
Posted - 15 June 2005 : 13:52:16
|
That got it! Thanks dude! I noticed the problem there... if you look at the code I am to remove it includes an end if right at the start, but then doesn't put it back in on the code I am supposed to replace it with - see that?
Anyway that might be useful to others with this problem - thanks mate! |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 16 June 2005 : 10:17:50
|
You're welcome It's an error in the readme, alright. See if you can findthe relevant topic in the mod w/code forum here and post the correction there as well (assuming nobody else has done so) so others who face the same problem you did can find the answer easily.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
Ouija
Starting Member
USA
15 Posts |
Posted - 14 July 2005 : 16:58:18
|
The 3.1 version has this issue fixed. I just found out about the problem and updated the readme, and the DBS file. |
|
|
|
Topic |
|