Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 simple answer i presume
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Davecl
Junior Member

United Kingdom
105 Posts

Posted - 14 January 2006 :  02:23:47  Show Profile  Visit Davecl's Homepage  Reply with Quote
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

Classicmotorcycling
Development Team Leader

Australia
2085 Posts

Posted - 14 January 2006 :  02:34:28  Show Profile  Reply with Quote
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:
<%
if (mlev = "2") or (mlev = "3") then
response.write "blah blah blah" & vbNewLine
end if
%>


I hope that helps...

<

Cheers,

David Greening
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 14 January 2006 :  02:36:14  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
You will need to include inc_header.asp.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Davecl
Junior Member

United Kingdom
105 Posts

Posted - 14 January 2006 :  11:12:06  Show Profile  Visit Davecl's Homepage  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07