Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/60708?pagenum=1
05 November 2025, 05:22
Topic
Davecl
simple answer i presume
14 January 2006, 02:23
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 %><
Replies ...
Classicmotorcycling
14 January 2006, 02:34
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...
<
ruirib
14 January 2006, 02:36
You will need to include inc_header.asp.<
Davecl
14 January 2006, 11:12
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 %> <