Need help resticting a certain page to certain mem - Posted (1061 Views)
Junior Member
texanman
Posts: 410
410
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 ?<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Senior Member
weeweeslap
Posts: 1077
1077
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
<
Posted
Senior Member
weeweeslap
Posts: 1077
1077
where # is the member id that is displayed at the end of url when visiting a member's profile.<
Posted
Junior Member
texanman
Posts: 410
410
That is what I tried, but it didn't work. May be my mistake is using memberID="#"
Is memberID numeric?<
Posted
Senior Member
MaD2ko0l
Posts: 1053
1053
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<
© 1999-2010 MaD2ko0l
Posted
Junior Member
texanman
Posts: 410
410
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?<
Posted
Senior Member
MaD2ko0l
Posts: 1053
1053
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?<
© 1999-2010 MaD2ko0l
Posted
Junior Member
texanman
Posts: 410
410
Well it didn't work the way you are suggesting. It did work without the " and "<
Posted
Average Member
Andy Humm
Posts: 908
908
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! <
Posted
Junior Member
texanman
Posts: 410
410
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<
Posted
Senior Member
weeweeslap
Posts: 1077
1077
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


<
 
You Must enter a message