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/O Code)
 Post count inc by more than one....
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dibley
New Member

United Kingdom
91 Posts

Posted - 26 April 2004 :  19:49:13  Show Profile  Visit dibley's Homepage
Hi, I'm trying to achieve the goal of my members post count being increased by 2 instead of 1 when they post in my review forum (forum id held in strReviewsForum_ID) or my clubnews forum (forum id held in strClubNewsForum_ID). Looking through the code, it appears that the subroutine doUCount(sUser_Name) in inc_func_count.asp is responsable for increasing the post count. I have altered the sub to look like this.

sub doUCount(sUser_Name)
	'## Forum_SQL - Update Total Post for user
	strSql = "UPDATE " & strMemberTablePrefix & "MEMBERS "
	Response.write "<br>Topic_ID =" & Forum_ID
	Response.write "<br>strClubNewsForum_ID =" & strClubNewsForum_ID
	Response.write "<br>strReviewsForum_ID =" & strReviewsForum_ID
	If Forum_ID = strClubNewsForum_ID or Forum_ID = strReviewsForum_ID Then
		strSql = strSql & " SET M_POSTS = M_POSTS + 2 "
	Else
		strSql = strSql & " SET M_POSTS = M_POSTS + 1 "
	End If
	strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & ChkString(sUser_Name, "SQLString") & "'"

	my_Conn.Execute (strSql),,adCmdText + adExecuteNoRecords
end sub


But it doesn't work. Please an any one tell me where I am going wrong? I have put a couple of response.writes in to check the values are equal and they appear the correct when you post a new topic in these froums, but the post count only increases by 1.

.:dib:.

www.nightsouls.co.uk - Uk clubber & music forum.
www.animatronica.co.uk - Creators of themepark animatronics.
  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