| Author |  Topic  | 
              
                | potatoheadStarting Member
 
 
 
                34 Posts | 
                    
                      |  Posted - 26 November 2002 :  19:51:20   
 |  
                      | 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.
 |  | 
              
                | TestMagicSenior Member
 
     
 
                USA1568 Posts
 | 
                    
                      |  Posted - 26 November 2002 :  20:15:46     
 |  
                      | 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
 |  
                      |  |  | 
              
                | ruiribSnitz Forums Admin
 
      
 
                Portugal26364 Posts
 | 
                    
                      |  Posted - 26 November 2002 :  20:39:11   
 |  
                      | 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
 |  
                      |  |  | 
              
                | potatoheadStarting Member
 
 
 
                34 Posts | 
                    
                      |  Posted - 26 November 2002 :  21:38:50   
 |  
                      | 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 !!
 
 |  
                      |  |  | 
              
                | ruiribSnitz Forums Admin
 
      
 
                Portugal26364 Posts
 | 
                    
                      |  Posted - 26 November 2002 :  21:58:59   
 |  
                      | 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
 |  
                      |  |  | 
              
                | potatoheadStarting Member
 
 
 
                34 Posts | 
                    
                      |  Posted - 26 November 2002 :  22:50:00   
 |  
                      | 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
 |  
                      |  |  | 
              
                | ruiribSnitz Forums Admin
 
      
 
                Portugal26364 Posts
 | 
                    
                      |  Posted - 26 November 2002 :  22:55:53   
 |  
                      | 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
 |  
                      |  |  | 
              
                | potatoheadStarting Member
 
 
 
                34 Posts | 
                    
                      |  Posted - 26 November 2002 :  23:27:58   
 |  
                      | Excellent.... It all works fine. Thanks 
 Smithers, fetch my horseless carriage where going out to paint the town red
  |  
                      |  |  | 
              
                | ruiribSnitz Forums Admin
 
      
 
                Portugal26364 Posts
 |  | 
              
                | RolandAdvanced Member
 
      
 
                Netherlands9335 Posts
 | 
                    
                      |  Posted - 27 November 2002 :  11:40:42   
 |  
                      | 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? |  
                      |  |  | 
              
                | ruiribSnitz Forums Admin
 
      
 
                Portugal26364 Posts
 |  | 
              
                | GauravBhabuAdvanced Member
 
      
 
                4288 Posts | 
                    
                      |  Posted - 27 November 2002 :  12:28:04   
 |  
                      | 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() 
 
 |  
                      |  |  | 
              
                | ruiribSnitz Forums Admin
 
      
 
                Portugal26364 Posts
 | 
                    
                      |  Posted - 27 November 2002 :  12:31:15   
 |  
                      | 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
 |  
                      |  |  | 
              
                | GauravBhabuAdvanced Member
 
      
 
                4288 Posts | 
                    
                      |  Posted - 27 November 2002 :  12:43:56   
 |  
                      |   . |  
                      |  |  | 
              
                | RolandAdvanced Member
 
      
 
                Netherlands9335 Posts
 | 
                    
                      |  Posted - 27 November 2002 :  13:35:32   
 |  
                      | 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
  |  
                      |  |  | 
              
                | Tony MancStarting Member
 
 
 
                4 Posts | 
                    
                      |  Posted - 13 December 2002 :  09:22:44     
 |  
                      | 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.
 |  
                      |  |  | 
              
                
                |  Topic  |  |