The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
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 ?<
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 ?<
نوشته شده در
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
نوشته شده در
where # is the member id that is displayed at the end of url when visiting a member's profile.<
نوشته شده در
That is what I tried, but it didn't work. May be my mistake is using memberID="#"
Is memberID numeric?<
Is memberID numeric?<
نوشته شده در
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<
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
نوشته شده در
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?<
What I was saying was
if memberID="38297" doesn't work beciause memberID is numeric
It should be if memberID="=38297
right?<
نوشته شده در
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?<
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
نوشته شده در
Well it didn't work the way you are suggesting. It did work without the " and "<
نوشته شده در
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! <
'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! <
آخرین ویرایش توسط
نوشته شده در
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<
نوشته شده در
yes it must be without the quotes hence I posted the code above without quotes just the #
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
<
If MemberID=38297 or MemberID=1234 or MemberID=5678 Then
write the content
else
send non allowed users somewhere else
end if
<
Email Member
Message Member
Post Moderation
بارگزاری فایل
If you're having problems uploading, try choosing a smaller image.
پیشنمایش مطلب
Send Topic
Loading...