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: General / Classic ASP versions(v3.4.XX)
 if member_id = ( the syntax ?)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Laurentis
Starting Member

5 Posts

Posted - 09 February 2006 :  09:11:59  Show Profile
Hello,

I search to add accesses by ID member, and I do not find the syntax?
~approximation:
If member_ID then (what is the complet syntax for this here?)
this
else
Nothing

Merçi/thanks if you have it ; )
Laurentis

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 09 February 2006 :  10:16:51  Show Profile  Visit Roger Fredriksson's Homepage
if member_id=1111... then
this
end if

Please explain your issue if this wasn´t the answer. (I do not understand what you mean by "add cccesses by ID member")

rf/www.avgifter.com
Go to Top of Page

Laurentis
Starting Member

5 Posts

Posted - 09 February 2006 :  10:50:48  Show Profile
Thank, but i search the full syntax line for PM Exemple:


??? If member_id = xx then ???? << This full line ???

if (strPMStatus = "1") then
%>
<!--#include file="privatemess.asp"-->
<%
end if


else
'nothing
end if

And not by level member, just by Id member.

Thanks!
Go to Top of Page

Laurentis
Starting Member

5 Posts

Posted - 09 February 2006 :  10:55:32  Show Profile
Or on other exemple:

??? If member_id = xx then ???? << This full line ???
'Access to this page or access edit news or etc...
else
'nothing
end if

thanks
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 09 February 2006 :  11:07:14  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message
you want a user with a certain member_id to be able to access a page?
if memberID = xx then
yourcodehere
else
othercodehere
end if

should solve it.

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

Laurentis
Starting Member

5 Posts

Posted - 09 February 2006 :  11:13:26  Show Profile
Exactly

And more, ex:

if memberID = xx or xx or xx or xx then

Thanks!
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 09 February 2006 :  11:20:59  Show Profile
Not quite, Laurentis, that should be either:

if MemberID=x or MemberID=y or MemberID=z then

Or:

if instr(",x,y,z,",","&MemberID&",") then


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

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 09 February 2006 :  11:22:30  Show Profile  Visit Roger Fredriksson's Homepage
if memberID=xx or memberID= yy or memberId=zz ......then
will work with tribaliztic example.

rf/www.avgifter.com
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 09 February 2006 :  11:25:20  Show Profile  Visit Roger Fredriksson's Homepage
asch, to slow but glad that you tought me if instr(... :)
but it would be better to use the UserGroups mod, nes pas?

rf/www.avgifter.com

Edited by - Roger Fredriksson on 09 February 2006 11:32:21
Go to Top of Page

Laurentis
Starting Member

5 Posts

Posted - 09 February 2006 :  12:55:51  Show Profile
Many Thanks "Messieurs",
that work the fingers in the nose
N'est ce pas !

Thanks !

Edited by - Laurentis on 09 February 2006 12:57:10
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 09 February 2006 :  13:05:26  Show Profile
You're welcome


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