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)
 hide member profiles to non members?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

cydoniax
New Member

57 Posts

Posted - 21 May 2001 :  22:01:50  Show Profile  Send cydoniax a Yahoo! Message
Is there an easy way to do this? I've already hidden the actual member list, but can I actually prevent the profile info from popping up for someone who is not logged on?

Thanks!



Edited by - cydoniax on 21 May 2001 22:02:21

Nam_Trung
Starting Member

22 Posts

Posted - 22 May 2001 :  06:56:17  Show Profile
Hi

After this code in pop_profile.asp:
=======================

<!--#INCLUDE FILE="config.asp" -->
<!--#INCLUDE FILE="inc_functions.asp" -->
<%
if not(strUseExtendedProfile) then
%>
<!--#INCLUDE FILE="inc_top_short.asp" -->
<%
else
%>
<!--#INCLUDE FILE="inc_top.asp" -->
<% end if

=======================
Add this:
=======================

if mLev < 1 then
Response.Write "<p align=center>You have to logon to view member's profile<br><br><a href=""javascript:history.go(-1)"">Go back</a></p>"
if not(strUseExtendedProfile) then
%>
<!--#INCLUDE FILE="inc_footer_short.asp" -->
<%
else
%>
<!--#INCLUDE FILE="inc_footer.asp" -->
<% end if
response.end
end if %>

====================
Good luck

Go to Top of Page

cydoniax
New Member

57 Posts

Posted - 22 May 2001 :  12:12:31  Show Profile  Send cydoniax a Yahoo! Message
Thank you! I'll try it out tonight

Go to Top of Page

cydoniax
New Member

57 Posts

Posted - 22 May 2001 :  20:48:08  Show Profile  Send cydoniax a Yahoo! Message
Okay, I added the code and this is what I get now when I click on a members profile (when I'm logged in)

Microsoft VBScript compilation error '800a03f9'

Expected 'Then'

/test/pop_profile.asp, line 52

if mLev < 1 thenResponse.Write "<p align=center>You have to logon to view member's profile<br><br><a href=""javascript:history.go(-1)"">Go back</a></p>"if not(strUseExtendedProfile) then
------------^

Any thoughts? I'm lost I'm afraid.

Thanks

Go to Top of Page

cydoniax
New Member

57 Posts

Posted - 24 May 2001 :  15:12:31  Show Profile  Send cydoniax a Yahoo! Message
anyone?

Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 24 May 2001 :  18:31:33  Show Profile  Visit gor's Homepage
It looks like there is a linebreak missing here:

back</a></p>"if not

Insert one between the " and the if

Pierre
Join the Snitz WebRing
Go to Top of Page

cydoniax
New Member

57 Posts

Posted - 24 May 2001 :  20:51:32  Show Profile  Send cydoniax a Yahoo! Message
Thanks gor - I inserted the page break but I am still getting the same error

This is the part that is getting flagged -

Expected 'Then'
if mLev < 1 thenResponse.Write

you can see at my testing site at

http://www.reevesdrive.com/test/default.asp just click on a members name.

Thank you!

Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 24 May 2001 :  21:39:36  Show Profile  Visit rick7165's Homepage
I added this to the files I only wanted members to see. This is in my pop_profile.asp file right after
<!--#INCLUDE FILE="inc_top.asp" -->

Add This:


<%
if strDBNTUserName = "" then
doNotLoggedInForm
end if
%>


I added this to every page I only wanted Members to see. Works Great.


Test Site
www.eastpasco.com
HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.

Edited by - rick7165 on 24 May 2001 21:41:11
Go to Top of Page

cydoniax
New Member

57 Posts

Posted - 24 May 2001 :  23:12:04  Show Profile  Send cydoniax a Yahoo! Message
Thanks rick!! It does work beautifully - I'll keep it in mind for anything else I don't want non members to see.

Thanks again

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.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07