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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Need to reverse this code!
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kjartis
New Member

Norway
94 Posts

Posted - 11 June 2001 :  19:36:46  Show Profile  Visit kjartis's Homepage
Ok! This code hides the text from users that's not logged on.

<% if (lcase(strEmail) = "1") then
if (mlev <> 0) or (mlev = 0 and strLogonForMail <> "1") then %>
hidden text
<%end if
end if%>


I need a code that hides a texst from users that are logged on!

Can someone help me? Pleace!

_______________
www.kjartis.com

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 11 June 2001 :  20:04:04  Show Profile
If you want to know if a user is logged on:

<% if mLev > 0 then %>
You are logged on
<% end if %>

If the user is not logged on:

<% if mLev = 0 then %>
You are not logged on
<% end if %>

mLev = 0 ' User not logged in
mLev = 1 ' Author
mLev = 2 ' Normal User
mLev = 3 ' Moderator
mLev = 4 ' Admin

That should help you in what you are trying to do.

Go to Top of Page

kjartis
New Member

Norway
94 Posts

Posted - 12 June 2001 :  07:00:20  Show Profile  Visit kjartis's Homepage
Thanks, but I dont know much code.
I tryed to use your suggestion, but it did'nt do what I hoped.

I need a code that hides a text from members and shows a text to nonemembers. I want to show a welcome text to the users that have'nt signed up yet. And hide it from users that have signed up.

I would be in great gratitude if someone could help me!

___________________
My Forum - Webmaster Kjartis!
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 12 June 2001 :  07:16:32  Show Profile
Try this:

<% if strDBNTUserName <> "" then %>
Show Text for Users that are logged on
<% else %>
Show Text for Users that are not logged on
<% end if %>
Go to Top of Page

kjartis
New Member

Norway
94 Posts

Posted - 12 June 2001 :  15:34:49  Show Profile  Visit kjartis's Homepage
quote:

Try this:

<% if strDBNTUserName <> "" then %>
Show Text for Users that are logged on
<% else %>
Show Text for Users that are not logged on
<% end if %>




It worked! Thank's for the big help.

___________________
My Forum - Webmaster Kjartis!
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 12 June 2001 :  16:25:33  Show Profile
you're welcome
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.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07