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: General / Classic ASP versions(v3.4.XX)
 How do I hide members info / listing ?
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

potatohead
Starting Member

34 Posts

Posted - 26 November 2002 :  19:51:20  Show Profile
Our company offers commercial support for software and we use Snitz forums.
Some of our competitors have been accessing our forums, taking the email addresses from the members list and then contacting those people. It's a free world but it's not always fair ....

So, how can I hide the member names and information ?

So far, I have removed the Members link on the homepage and removed the Members drop down button on the Search page. The Member field is still on the Search Page but at least it's blank :-(

I have now found that Active Topics has a Members drop down list also but I can't seem to delete that one.

TestMagic
Senior Member

USA
1568 Posts

Posted - 26 November 2002 :  20:15:46  Show Profile  Visit TestMagic's Homepage
First of all, your competitors cannot get email addresses from v 3.4.xx; email addresses are no longer visible in 3.4.xx as they were in earlier versions. So, if you have an earlier version, you should upgrade.

Second, simply deleting links won't do the trick--anybody can access the members.asp page even without a link, and people using your forums to spam will likely know this.

Snitz rocks! · Search 2

Edited by - TestMagic on 26 November 2002 20:18:30
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 26 November 2002 :  20:39:11  Show Profile  Send ruirib a Yahoo! Message
You can also add something like this at the top of members.asp:


<%if mlev < 4 then
   Response.Redirect "default.asp"
end if
%>


Tipically this should go after the file includes. With this only forum admins will get to see the members.asp page. If you want moderators to see as well change the 4 by a 3.


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 26 November 2002 20:41:20
Go to Top of Page

potatohead
Starting Member

34 Posts

Posted - 26 November 2002 :  21:38:50  Show Profile
Excellent response time and thanks for the redirect code and the extra information.

We have the latest forum version and the fix did exactly what I requested. i.e. a non privileged user is redirected back to the default.asp

I am feeling bold today so ... can I have a nice error message as well as the redirect saying , only Admin and Moderators can view the Members list or is that best avoided ?

Meaning, a normal user attempts to access members.asp and gets a Sorry, Admin & Moderators only and then is redirected back to default.asp

Thanks again !!
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 26 November 2002 :  21:58:59  Show Profile  Send ruirib a Yahoo! Message
You probably should try something like this instead, then:


if mlev < 3 then
     Response.Write	"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """ color=""" & strHiLiteFontColor & """>Sorry this page is only accessible to Admins and Moderators</font></p>" 

     Response.write	"<meta http-equiv=""Refresh"" content=""2; URL=default.asp"">" 
end if


Try this. It will show the message for 2 secs and then redirect to default.asp. I haven't tested it but it should work.


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 26 November 2002 22:00:09
Go to Top of Page

potatohead
Starting Member

34 Posts

Posted - 26 November 2002 :  22:50:00  Show Profile
OK, that sorta worked
When a non privileged user tries to access members.asp the message is displayed 'Sorry this page is only accessible to Admins and Moderators' and the user is then redirected to default.asp

Unfortunately, below the 'Sorry ..' message the members list is still visible for 2 seconds until the redirection occurs.

How do I make the members list not appear below the 'Sorry ..' message ?

Thanks again for the replies

Edited by - potatohead on 26 November 2002 22:53:31
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 26 November 2002 :  22:55:53  Show Profile  Send ruirib a Yahoo! Message
Ah... I guess I forgot that...

Add a Response.End after the second Response.write, but before the end if.

I didn't understand the question about the delay time. Are you using this in other pages? Anyway the time is set by that number 2 in the second Response.Write. Just change it for the value you want (5 or 6).


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

potatohead
Starting Member

34 Posts

Posted - 26 November 2002 :  23:27:58  Show Profile
Excellent.... It all works fine. Thanks

Smithers, fetch my horseless carriage where going out to paint the town red
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 November 2002 :  03:54:12  Show Profile  Send ruirib a Yahoo! Message
Glad it's working now .


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

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 27 November 2002 :  11:40:42  Show Profile
Rui, shouldn't that be Write.Footer() and then Response.End so the bottom of the page still has all the proper closing tags for <body> and <html>, and that it contains the copyright information and link back to Snitz?
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 November 2002 :  12:23:11  Show Profile  Send ruirib a Yahoo! Message
Yeah Roland, I guess it should be like that. That would be the best way to do it indeed. Thx for the tip.


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

GauravBhabu
Advanced Member

4288 Posts

Posted - 27 November 2002 :  12:28:04  Show Profile
quote:
Originally posted by FrutZle

Rui, shouldn't that be Write.Footer() and then Response.End so the bottom of the page still has all the proper closing tags for <body> and <html>, and that it contains the copyright information and link back to Snitz?



To use snitz functionality, I will go with the one of the following

WriteFooter()
or
Call WriteFooter()


Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 27 November 2002 :  12:31:15  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by GauravBhabu


To use snitz functionality, I will go with the one of the following

WriteFooter()
or
Call WriteFooter()



I guess that's what Roland meant, though that '.' should not indeed be there. Man that's the third in a row, I guess I need to get some sleep...

Gaurav, thx for pointing that out.


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 27 November 2002 12:42:34
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 27 November 2002 :  12:43:56  Show Profile
.
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 27 November 2002 :  13:35:32  Show Profile
quote:
Originally posted by ruirib

quote:
Originally posted by GauravBhabu


To use snitz functionality, I will go with the one of the following

WriteFooter()
or
Call WriteFooter()



I guess that's what Roland meant, though that '.' should not indeed be there. Man that's the third in a row, I guess I need to get some sleep...

Gaurav, thx for pointing that out.



Thanks Gaurav, I did that part from memory and failed to check if the point was needed or not even though I did wonder about it.
Teaches me to post without making sure
Go to Top of Page

Tony Manc
Starting Member

4 Posts

Posted - 13 December 2002 :  09:22:44  Show Profile  Visit Tony Manc's Homepage
Ruirib, I wonder if you can help?
I added the code as seen on here, which works fine for sending ordinary members back to the forum default page, but when I'm logged in as Admin, and click on the members link, I get a whole page of, the following: %> if strDBNTUserName = "" then Err_Msg = "
You must be logged in to view the Members List" Response.Write " " & vbNewLine & _ " " & vbNewLine & _ " " & vbNewLine & _ " " & getCurrentIcon(strIconFolderOpen,"","") & " All Forums
" & vbNewLine & _ " " & getCurrentIcon(strIconBar,"","") & getCurrentIcon(strIconFolderOpenTopic,"","") & " Member Information " & vbNewLine & _ "
" & vbNewLine & _ " " & vbNewLine & _ "
There Was A Problem! Etc, right down the page, what have I done wrong? PLease bare in mind that I'm a novice in this area, as in explain like I'm a 5 year old!

quote:
Originally posted by ruirib

You can also add something like this at the top of members.asp:


<%if mlev < 4 then
   Response.Redirect "default.asp"
end if
%>


Tipically this should go after the file includes. With this only forum admins will get to see the members.asp page. If you want moderators to see as well change the 4 by a 3.



Explain it like I'm a 5 year old.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07