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)
 MOD Request: Hide Links by # of posts
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dayve
Forum Moderator

USA
5820 Posts

Posted - 07 May 2001 :  16:31:22  Show Profile  Visit dayve's Homepage
I offer incentives in the form of links at my forum and can exclude access to those links by using the Members Only (Hidden) feature but now I have people signing up with no profile details and no activity (posts/replies) I would like to set up a variable that will allow access to these links at a determined amount of posts. I know some programming so maybe just lead me in the right direction and I can go from there. It would be nice to incorporate this feature with the built in feature for showing links that the forum all ready has to offer but I would take a hard coded solution as a workaround for now.

TIA

Dayve

Dayve

dayve
Forum Moderator

USA
5820 Posts

Posted - 08 May 2001 :  22:39:15  Show Profile  Visit dayve's Homepage
^up you go^

anyone?

Dayve
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 13 May 2001 :  11:37:16  Show Profile  Visit dayve's Homepage
does anyone else see the importance of limiting forum features based on the number of posts?

Dayve
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 13 May 2001 :  17:20:23  Show Profile
You can use the following to get the member's post count:


Dim intMemPostCount
'## Forum_SQL - Get Member's post count
strSql = "SELECT M_NAME, M_USERNAME, M_POSTS "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS"
strSql = strSql & " WHERE " & strDBNTSQLName&" = '" & strDBNTUserName & "'"

set rsPosts = my_conn.Execute (strSql)

intMemPostCount = rsPosts("M_POSTS")
rsPosts.close
set rsPosts = nothing


Then you could use the following to determine if the link should be shown: (I'm using 100 posts as an example)


if intMemPostCount > 100 then
show link
end if
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