Need help resticting a certain page to certain mem

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/67396?pagenum=1
05 November 2025, 02:40

Topic


texanman
Need help resticting a certain page to certain mem
03 July 2008, 12:52


Hello,

I have a forum page that I want three members to view. How would I do that? I played around using memberID and it doesn't seem to be working. Can you help ?<

 

Replies ...


weeweeslap
03 July 2008, 13:10


member id works fine for me. I use it the following way:
Code:

If MemberID=# or MemberID=# or MemberID=# Then
write the content
else
write message telling them they are not allowed to view the page or a response.redirect command to redirect users not allowed to view, to some other page
end if
<
weeweeslap
03 July 2008, 13:12


where # is the member id that is displayed at the end of url when visiting a member's profile.<
texanman
03 July 2008, 13:18


That is what I tried, but it didn't work. May be my mistake is using memberID="#"
Is memberID numeric?<
MaD2ko0l
03 July 2008, 13:35


yes here look at this link (its to your profile)

http://forum.snitz.com/forum/pop_profile.asp?mode=display&id=38297
the number in red is the memberID number

so memberID="38297" you be you on this forum.
hope that helps<
texanman
03 July 2008, 13:43


Yes I understand
What I was saying was
if memberID="38297" doesn't work beciause memberID is numeric
It should be if memberID="=38297
right?<
MaD2ko0l
03 July 2008, 14:25


im sorry but im not sure what you mean memberID is numeric

that if statement should work the way i said

if memberID="38297" then
wright content
else
error message
end if

but i suppose you coudl do it via member name instead of number?<
texanman
03 July 2008, 14:28


Well it didn't work the way you are suggesting. It did work without the " and "<
Andy Humm
03 July 2008, 14:48


I don't know whether it is worth trying a Hidden area for this forum page/group. As admininstrator Select 'Edit Forum Properties' in the right hand column of a group (default.asp) and then there are options at the bottom:
'Auth Type' select to Allowed Member List (Hidden)
'Allowed Member List' select the members you want to view the page only from the available list then move across to the selected list

Worth a try! <
texanman
03 July 2008, 15:19


Andy: I am aware of that and have forums like that as well. Actually what I have is like this: I put shout box on its own page and wanted to make few people to access it as a conference room. That is how the need for this arised. Thanks<
weeweeslap
03 July 2008, 15:50


yes it must be without the quotes hence I posted the code above without quotes just the # smile Glad you got it working.

If MemberID=38297 or MemberID=1234 or MemberID=5678 Then
write the content
else
send non allowed users somewhere else
end if


<
© 2000-2021 Snitz™ Communications