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)
 How to check for hidden forums
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AnonJr
Moderator

United States
5768 Posts

Posted - 12 January 2006 :  11:33:14  Show Profile  Visit AnonJr's Homepage  Reply with Quote
I've been working with Sr_erick's sub-forum code and noticed a small problem. I have a forum that's marked as "Allowed Members Only (Hidden)" and while it will only let allowed members in, its not hidden.

I would like to add some checks for hidden forums, but I'm not sure what I should be checking for...

This isn't a critical issue, but I hate not having something work right.<

cripto9t
Average Member

USA
881 Posts

Posted - 13 January 2006 :  07:54:48  Show Profile  Reply with Quote
if ChkDisplayForum(ForumPrivateForums,ForumFPasswordNew,ForumID,MemberID) then
        'show forum stuff
end if
default.asp variables above

I'm not familiar with the mod, but chkDisplayForum() should check each forum.<

    _-/Cripto9t\-_
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 13 January 2006 :  12:27:33  Show Profile  Visit AnonJr's Homepage  Reply with Quote
The MOD itself (as a distinct MOD) is still very Beta. I'm using it on the company intranet and noticed the problem. Things have been so busy (I think its worse than before I went on vacation, but that's another story another time) that I haven't had a chance to dig in.

Back to ChkDisplayForum, MemberID and ForumID I've got, but for ForumPrivateForums and ForumFPasswordNew - are those options or stuff that should be pulled in the query? (I'll try to clarify this as soon as get a little more time, I've got a class to teach in a few min.)<
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 13 January 2006 :  14:17:45  Show Profile  Reply with Quote
quote:
Originally posted by AnonJr

are those options or stuff that should be pulled in the query?



Yes - chkDisplayForum(F_PRIVATEFORUMS,F_PASSWORD_NEW,FORUM_ID,MEMBER_ID)

F_PRIVATEFORUMS and F_PASSWORD_NEW are columns in the forum table. If the sub-forums are kept on a seperate table, you should check it to see if like columns exist.

edit - I just downloaded and had a look at the mod. It just adds a column to the forum table. Also F_PRIVATEFORUMS and F_PASSWORD_NEW are queried and chkDisplayForum() is used. I see alot of work has gone into it, maybe the check got lost along the way .

edit 2 - Just noticed I moved up in rank... got me another star

<

    _-/Cripto9t\-_

Edited by - cripto9t on 13 January 2006 14:59:00
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 13 January 2006 :  22:47:45  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Good job on the star.

As to the other stuff, I took what sr_erick started and added a few extra checks. I'm still trying to clean it up a little and get a good readme going, but time has been a big issue. With the big turnover of nurses we've had at the hospital I've been spending a great deal of time helping with training and very little time working on programs.

Tomorrow I plan on locking the doors, pulling the shades, turning off the phone and getting some programming done without hearing "Hey, I just have a quick question: what does 'operating system not found' mean?"<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07