Author |
Topic |
|
leatherlips
Senior Member
USA
1838 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 03 February 2009 : 17:29:37
|
You should include: - config.asp
- inc_sha256.asp
- inc_header.asp
- inc_func_member.asp
At the end of the file, include:
- inc_footer.asp
< |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
leatherlips
Senior Member
USA
1838 Posts |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 06 February 2009 : 08:45:30
|
Its either inc_func_common.asp or inc_func_secure.asp - I was just looking at that a couple of days ago... I need a memory upgrade. =/< |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 06 February 2009 : 10:50:26
|
You'll need to include inc_func_secure.asp and then call the function chkForumAccess on your new page passing the following variable in this order through it: the id of the private forum, the member's id, a boolean value.
The last variable, if set to true, tells the function to write Snitz's default error message (see function doNotAllowed) if the member is not allowed access that forum. Set it to false if you want to write your own error message.
For example (assuming the id of your private forum is 1):dim isAllowed
isAllowed=chkForumAccess(1,MemberID,false)
if isAllowed then
write page content
else
write error message
end if < |
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.” |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 06 February 2009 : 12:28:03
|
You're welcome, buddy
< |
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.” |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 06 February 2009 : 15:42:13
|
On the error, you may want to do a custom error, like what Shaggy posted, and just post your own error with a link/redirect to the login page which (if I remember right) should grab the referrer and send them back to that page after they log in.
As to the login at the top of the page, that's going to be a bit harder.< |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 06 February 2009 : 16:18:47
|
Ah, like FAQ - that part is in inc_header.asp: Search for "faq.asp" in the code, the second instance should look something like this:
Change it to look like:
< |
|
|
leatherlips
Senior Member
USA
1838 Posts |
|
|
Topic |
|