Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 simple answer i presume

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Davecl Posted - 14 January 2006 : 02:23:47
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 %><
3   L A T E S T    R E P L I E S    (Newest First)
Davecl Posted - 14 January 2006 : 11:12:06
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 %>
<
ruirib Posted - 14 January 2006 : 02:36:14
You will need to include inc_header.asp.<
Classicmotorcycling Posted - 14 January 2006 : 02:34:28
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...

<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000 Version 3.4.07