simple answer i presume - Postet den (366 Views)
Junior Member
Davecl
Innlegg: 105
105
what if any includes do i need on a page to use mlev??
i am trying to do this

<% If mlev >1 then %>
blah blah blah
<% End If %><
Dave
   
 Sidestørrelse 
Postet den
Development Team Leader
Classicmotorcycling
Innlegg: 2085
2085
What level do you want to see things?

Visitor = 0
Normal User = 1
Moderator = 2
Administrator = 3

So for the the sake of simplicity, you could use the following code to only allow Moderators and Administrators:
Code:
<%
if (mlev = "2") or (mlev = "3") then
response.write "blah blah blah" & vbNewLine
end if
%>

I hope that helps...
<
Cheers,

David Greening
Postet den
Snitz Forums Admin
ruirib
Innlegg: 26364
26364
You will need to include inc_header.asp.<
Postet den
Junior Member
Davecl
Innlegg: 105
105
Thanks guys

I was trying to show something only if the user is logged in, so that visitors can't see it and display a message to non members or not logged in members.
so i'm using

<% If mlev >0 then %>
anybody logged in can see this
<% End If %>
<% If mlev <1 then %>
people not logged in see this
<% End If %>
<
Dave
 
Du må legge inn en melding