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
 finding a function
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

wildfiction
Junior Member

167 Posts

Posted - 17 July 2005 :  04:46:39  Show Profile  Visit wildfiction's Homepage
I am modifying (adding) some code to one of the ASP files and need to find a function (if there is one) that will return the type of protection a forum has given the topic_id.

e.g.
returnValue = GetForumProtection(topic_id);

Is there such a function?

Also: How do I go about finding these sorts of functions by searching through the ASP code? Are there coding standards/conventions that are followed?

Thanks.

laser
Advanced Member

Australia
3859 Posts

Posted - 17 July 2005 :  08:20:18  Show Profile
Most of that is stored in inc_func_common.asp

The forum protection will possibly be a value in the forums table.
Go to Top of Page

wildfiction
Junior Member

167 Posts

Posted - 17 July 2005 :  09:23:22  Show Profile  Visit wildfiction's Homepage
Thanks laser.

I think I've worked out what I need now. The current forum being posted into can be checked using this variable:

if strPrivateForums = "0" then

in the post_info.asp file which is all I need.

I'm just testing this now...
Go to Top of Page

wildfiction
Junior Member

167 Posts

Posted - 17 July 2005 :  10:01:31  Show Profile  Visit wildfiction's Homepage
I was/am completely wrong in the previous post/assumption - so please don't anyone rely on that.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 18 July 2005 :  05:30:58  Show Profile
Have a look at the chkForumAccessNew function in inc_func_secure.asp. Can't give you any specific help on what you should do as I've never used private forums but the aruments of that function seem pretty self-explanatory.


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
  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.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07