simple answer i presume - نوشته شده در (365 Views)
Junior Member
Davecl
مطلب: 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
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Development Team Leader
Classicmotorcycling
مطلب: 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
نوشته شده در
Snitz Forums Admin
ruirib
مطلب: 26364
26364
You will need to include inc_header.asp.<
نوشته شده در
Junior Member
Davecl
مطلب: 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
 
شما باید یک متن وارد کنید