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/Code)
 Hiding items until logged on
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Classicmotorcycling
Development Team Leader

Australia
2084 Posts

Posted - 29 April 2001 :  05:44:03  Show Profile
Hello,

I just found a way to hide items until users login to the forums;

<%
if (mlev = 4 or mlev = 3 or mlev = 2 or mlev = 1) or (lcase(strNoCookies) = "1") then %>
<!--#include file="privatemess.asp"-->
<%
end if %>

As you see I have done it with the private messages as I figured others do not need this as they need to login to use it, so I thought that I would pass the code about.

If you know a better way of doing this, then please let me know. I am only new to this ASP coding, but learning fast.

Regards,

Webmaster @ Classic Motor Cycling
Classic Motor Cycling

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 29 April 2001 :  05:50:01  Show Profile  Visit HuwR's Homepage
you could simply do
if strDBNTUserName <> "" this would mean they haven't looged in or you could have done yours like

if (mLev > 0) or....

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 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