Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 active_(logged in)_users mod missing code
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

eviljoker7075
Junior Member

United Kingdom
166 Posts

Posted - 15 June 2005 :  09:44:56  Show Profile  Visit eviljoker7075's Homepage
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  Show Profile
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.”
Go to Top of Page

eviljoker7075
Junior Member

United Kingdom
166 Posts

Posted - 15 June 2005 :  10:04:24  Show Profile  Visit eviljoker7075's Homepage
no no - I am using this mod: http://www.snitzbitz.com/mods/details.asp?Version=All&mid=207 which is different from the one you suggested, and I am using version 3.4.04 of the forum.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 15 June 2005 :  10:20:07  Show Profile
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.”
Go to Top of Page

eviljoker7075
Junior Member

United Kingdom
166 Posts

Posted - 15 June 2005 :  10:21:19  Show Profile  Visit eviljoker7075's Homepage
Don't worry I'll back em up - always do! I have faith in you though! Wish me luck!
Go to Top of Page

eviljoker7075
Junior Member

United Kingdom
166 Posts

Posted - 15 June 2005 :  10:28:55  Show Profile  Visit eviljoker7075's Homepage
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?
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 15 June 2005 :  10:41:42  Show Profile
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.”
Go to Top of Page

eviljoker7075
Junior Member

United Kingdom
166 Posts

Posted - 15 June 2005 :  10:51:48  Show Profile  Visit eviljoker7075's Homepage
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
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 15 June 2005 :  10:57:58  Show Profile
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.”
Go to Top of Page

eviljoker7075
Junior Member

United Kingdom
166 Posts

Posted - 15 June 2005 :  13:52:16  Show Profile  Visit eviljoker7075's Homepage
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!
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 June 2005 :  10:17:50  Show Profile
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.”
Go to Top of Page

Ouija
Starting Member

USA
15 Posts

Posted - 14 July 2005 :  16:58:18  Show Profile  Visit Ouija's Homepage
The 3.1 version has this issue fixed. I just found out about the problem and updated the readme, and the DBS file.
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07