simple answer i presume - Posted (362 Views)
Junior Member
Davecl
Posts: 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
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Development Team Leader
Classicmotorcycling
Posts: 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
Posted
Snitz Forums Admin
ruirib
Posts: 26364
26364
You will need to include inc_header.asp.<
Posted
Junior Member
Davecl
Posts: 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
 
You Must enter a message