Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Private Forum - Access Allowed When Posts > X

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
ILLHILL Posted - 30 May 2006 : 15:00:34
Ok, so far I have added an extra option in post.asp
option number 10 to be exact and have created a forum
which is supposed to be only accessible to those with
(in my case) 150 posts or more.

However, I'm stuck at the following snippet in inc_func_secure

case 10

'## VIP Forum
strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID"
strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_POSTS"
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE MEMBER_ID=" & isAllowedMember

set rsCase10 = my_Conn.Execute(strSql)

if rsCase10("M_POSTS") > 150 then chkDisplayForum = true
if rsCase10("M_POSTS") = 150 then chkDisplayForum = true
if rsCase10("M_POSTS") < 150 then chkDisplayForum = false

rsCase10.close
set rsCase10=nothing



However when trying to access the forum as a non-admin with > 150 posts I get this:

Microsoft VBScript runtime error '800a01f5'

Illegal assignment: 'chkDisplayForum'

/forum/inc_func_secure.asp, line 221


With line 221 being this one:
if rsCase10("M_POSTS") > 150 then chkDisplayForum = true

What am I doing wrong and how to fix it?
Or is this already done? (Couldn't find it with search though)

I think when working this would be a great addition to most forums.
Nothing more motivating to be active when something is waiting at the
end.
(When solved I plan on making different levels of VIP depending on the ammount of posts).

Greets & thanks,

Dominic
<
3   L A T E S T    R E P L I E S    (Newest First)
ILLHILL Posted - 10 July 2006 : 16:38:12
Couldn't get it to work yet.
Maybe over the weekend I give it another try.

I still got Nertz WYSIWYG mod to install...if only I would find a way to fit 72 hours in a day :)

Greets, Dominic<
CalloftheHauntedMaster Posted - 07 July 2006 : 15:44:08
Has this mod been finished because I'm extremely interested in using it?<
Shaggy Posted - 31 May 2006 : 04:43:57
Rather than struggling with inc_func_secure, what I'd recommend is adding a check to post_info.asp to see if the member's post count is 150 and, if so, add them to the allowed members list for your private forum.

<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000 Version 3.4.07