Author |
Topic  |
|
Laurentis
Starting Member
5 Posts |
Posted - 09 February 2006 : 09:11:59
|
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
|
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 |
 |
|
Laurentis
Starting Member
5 Posts |
Posted - 09 February 2006 : 10:50:48
|
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! |
 |
|
Laurentis
Starting Member
5 Posts |
Posted - 09 February 2006 : 10:55:32
|
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 |
 |
|
tribaliztic
Senior Member
   
Sweden
1532 Posts |
Posted - 09 February 2006 : 11:07:14
|
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 -
|
 |
|
Laurentis
Starting Member
5 Posts |
Posted - 09 February 2006 : 11:13:26
|
Exactly 
And more, ex:
if memberID = xx or xx or xx or xx then
Thanks! |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 09 February 2006 : 11:20:59
|
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.” |
 |
|
Roger Fredriksson
Average Member
  
Sweden
556 Posts |
Posted - 09 February 2006 : 11:22:30
|
if memberID=xx or memberID= yy or memberId=zz ......then will work with tribaliztic example. |
rf/www.avgifter.com |
 |
|
Roger Fredriksson
Average Member
  
Sweden
556 Posts |
Posted - 09 February 2006 : 11:25:20
|
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 |
 |
|
Laurentis
Starting Member
5 Posts |
Posted - 09 February 2006 : 12:55:51
|
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 |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 09 February 2006 : 13:05:26
|
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.” |
 |
|
|
Topic  |
|