| Author | 
                
                  Topic   | 
                  | 
              
              
                | 
                 Fomse 
                Starting Member 
                 
                 
                
                Bhutan 
                21 Posts  | 
                
                  
                    
                      
                       Posted - 30 October 2005 :  15:24:40
                        
                        
                      
  | 
                     
                    
                       I have a external imagegallery and have made a link to it, next to the "Home" link in the header. But how can i make it so you have to be logged in before ouy can use it (like "Members")???
  Please can anyone help me....
  < Moved to MOD Add-On Forum (W/O Code) by Shaggy />< | 
                     
                    
                       Edited by - Shaggy on 01 November 2005  06:16:03 | 
                     
                   
                 | 
              
              
                | 
                 laser 
                Advanced Member 
                      
                 
                
                Australia 
                3859 Posts  | 
                
                  
                    
                      
                       Posted - 30 October 2005 :  15:45:43
                        
                        
                      
  | 
                     
                    
                      |  You'll need to include a bit of Snitz code to read the cookie, then check that mlev > 0.< | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 Fomse 
                Starting Member 
                 
                 
                
                Bhutan 
                21 Posts  | 
                
                  
                    
                      
                       Posted - 30 October 2005 :  16:01:50
                        
                        
                      
  | 
                     
                    
                       Could you please show me the code? I'm not a great ASP programmer so i would really appreciate it...
  < | 
                     
                    
                        quote: why did you not post this at Snitz?
  
  The main reasons why this was not posted  at Snitz and why I might not post  the bugs I find  directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about  anything I post and seem to resent the fact that I want to improve and correct Snitz  which, I agree, serve as the original base for my own Forum.
  These are some of the actions I find unacceptable: ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.
  A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.
  Two replies in my topic as been deleted about a bug on snitz topic page: http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029
  A Fix to texanman as been deleted (first reply to texanman subject): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162
  One of my Multi-Language Topic on Snitz has disappeared last night  Multi-Language and Multi-Language Skin3D http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765
  etc...
  3 times I changed my password and the day after the same game start.
  Since   I send to HuwR a donation of $200 on December 22, 2006 this guy HuwR has never stop to pick on every thing I post on the Snitz Forum.
 
  I have even received from HuwR and ruirib an e-mail threatening to ban me from Snitz Forum :
 
  Hello
  You received the following message from: ruirib (ruirib@ruirib.net)
  At: http://forum.snitz.com/forum/
  It was a pleasure to have you there, hope you enjoyed the ride ;). And don't try to sneak in...
  Goodbye ;).
  Hey as_shole, I know it’s Davio who is a member at your forums, gonna lock him out too | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 OneWayMule 
                Dev. Team Member & Support Moderator 
                      
                 
                
                Austria 
                4969 Posts  | 
                
                  
                 | 
              
              
                | 
                 Soar 
                Junior Member 
                   
                 
                
                USA 
                197 Posts  | 
                
                  
                    
                      
                       Posted - 30 October 2005 :  22:24:38
                        
                        
                        
                      
  | 
                     
                    
                       I did something similar, and used the following code (after the proper INCLUDES, of course) placed in the page containing the pictures:
  if strDBNTUserName = "" then 	Err_Msg = "<li>You must be logged in to view the pictures</li>"
  	Response.Write	"      <table width=""100%"" border=""0"">" & vbNewLine & _ 			"        <tr>" & vbNewLine & _ 			"          <td><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _ 			"          " & getCurrentIcon(strIconFolderOpen,"","") & " <a href=""default.asp""><b>All Forums</b></a><br />" & vbNewLine & _ 			"          " & getCurrentIcon(strIconBar,"","") & getCurrentIcon(strIconFolderOpenTopic,"","") & "<b> Pictures</b></font></td>" & vbNewLine & _ 			"        </tr>" & vbNewLine & _ 			"      </table>" & vbNewLine & _ 			"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """ color=""" & strHiLiteFontColor & """>There Was A Problem!</font></p>" & vbNewLine & _ 			"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """>You must be logged in to view this page</font></p>" & vbNewLine & _ 			"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""JavaScript:history.go(-1)"">Back to Forum</a></font></p>" & vbNewLine & _ 			"      <br />" & vbNewLine 	WriteFooter 	Response.End else
  Followed by the code for the page when the person was logged in as a member.  Probably not the correct way to do it, but it seems to work for my site.< | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 Fomse 
                Starting Member 
                 
                 
                
                Bhutan 
                21 Posts  | 
                
                  
                    
                      
                       Posted - 31 October 2005 :  15:10:51
                        
                        
                      
  | 
                     
                    
                       Soar>> That are the proper includes??
  Fomse:-)< | 
                     
                    
                        quote: why did you not post this at Snitz?
  
  The main reasons why this was not posted  at Snitz and why I might not post  the bugs I find  directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about  anything I post and seem to resent the fact that I want to improve and correct Snitz  which, I agree, serve as the original base for my own Forum.
  These are some of the actions I find unacceptable: ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.
  A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.
  Two replies in my topic as been deleted about a bug on snitz topic page: http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029
  A Fix to texanman as been deleted (first reply to texanman subject): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162
  One of my Multi-Language Topic on Snitz has disappeared last night  Multi-Language and Multi-Language Skin3D http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765
  etc...
  3 times I changed my password and the day after the same game start.
  Since   I send to HuwR a donation of $200 on December 22, 2006 this guy HuwR has never stop to pick on every thing I post on the Snitz Forum.
 
  I have even received from HuwR and ruirib an e-mail threatening to ban me from Snitz Forum :
 
  Hello
  You received the following message from: ruirib (ruirib@ruirib.net)
  At: http://forum.snitz.com/forum/
  It was a pleasure to have you there, hope you enjoyed the ride ;). And don't try to sneak in...
  Goodbye ;).
  Hey as_shole, I know it’s Davio who is a member at your forums, gonna lock him out too | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 Roger Fredriksson 
                Average Member 
                    
                 
                
                Sweden 
                556 Posts  | 
                
                  
                    
                      
                       Posted - 31 October 2005 :  15:34:37
                        
                        
                        
                      
  | 
                     
                    
                       <!--#INCLUDE FILE="config.asp"--> <!--#INCLUDE FILE="inc_sha256.asp"--> <!--#INCLUDE FILE="inc_header.asp" -->
  This is what I use but I think you could skip inc_sha256-file.< | 
                     
                    
                       rf/www.avgifter.com | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 Fomse 
                Starting Member 
                 
                 
                
                Bhutan 
                21 Posts  | 
                
                  
                    
                      
                       Posted - 31 October 2005 :  15:42:02
                        
                        
                      
  | 
                     
                    
                       Can't get it to work!!! How can i include the files if they are not in the same directory?
  Fomse:-)< | 
                     
                    
                        quote: why did you not post this at Snitz?
  
  The main reasons why this was not posted  at Snitz and why I might not post  the bugs I find  directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about  anything I post and seem to resent the fact that I want to improve and correct Snitz  which, I agree, serve as the original base for my own Forum.
  These are some of the actions I find unacceptable: ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.
  A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.
  Two replies in my topic as been deleted about a bug on snitz topic page: http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029
  A Fix to texanman as been deleted (first reply to texanman subject): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162
  One of my Multi-Language Topic on Snitz has disappeared last night  Multi-Language and Multi-Language Skin3D http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765
  etc...
  3 times I changed my password and the day after the same game start.
  Since   I send to HuwR a donation of $200 on December 22, 2006 this guy HuwR has never stop to pick on every thing I post on the Snitz Forum.
 
  I have even received from HuwR and ruirib an e-mail threatening to ban me from Snitz Forum :
 
  Hello
  You received the following message from: ruirib (ruirib@ruirib.net)
  At: http://forum.snitz.com/forum/
  It was a pleasure to have you there, hope you enjoyed the ride ;). And don't try to sneak in...
  Goodbye ;).
  Hey as_shole, I know it’s Davio who is a member at your forums, gonna lock him out too | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 laser 
                Advanced Member 
                      
                 
                
                Australia 
                3859 Posts  | 
                
                  
                    
                      
                       Posted - 31 October 2005 :  16:14:30
                        
                        
                      
  | 
                     
                    
                       C'mon mate, you should be able to experiment a little, no ?
  You will need to path the include files properly, but you don't say where your page is and where the forum includes are, so I'll guess.
  If your new ASP file is in / and your forum includes are in /forum then do :
  <!--#INCLUDE FILE="forum/config.asp"--> <!--#INCLUDE FILE="forum/inc_sha256.asp"--> <!--#INCLUDE FILE="forum/inc_header.asp" -->
 
  If your new ASP file is in /site and your forum includes are in /snitz then do :
  <!--#INCLUDE FILE="/snitz/config.asp"--> <!--#INCLUDE FILE="/snitz/inc_sha256.asp"--> <!--#INCLUDE FILE="/snitz/inc_header.asp" -->
 
  etc...
  HTH< | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 Fomse 
                Starting Member 
                 
                 
                
                Bhutan 
                21 Posts  | 
                
                  
                    
                      
                       Posted - 31 October 2005 :  16:27:42
                        
                        
                      
  | 
                     
                    
                       Got it to work:-) Had to go en level back like <!--#INCLUDE FILE../config.asp"--> Thanks everyone for your help:-)
  Fomse< | 
                     
                    
                        quote: why did you not post this at Snitz?
  
  The main reasons why this was not posted  at Snitz and why I might not post  the bugs I find  directly at Snitz anymore are the ways "ruirib and HuwR" take pleasure to criticize just about  anything I post and seem to resent the fact that I want to improve and correct Snitz  which, I agree, serve as the original base for my own Forum.
  These are some of the actions I find unacceptable: ruirib and HuwR take fun to Delete some of my topics, of my replies, locked or move my topic.
  A topic posted last week from me to Davio in "Help: MOD Implementation" Forum as been deleted.
  Two replies in my topic as been deleted about a bug on snitz topic page: http://forum.snitz.com/forum/topic.asp?whichpage=5.96&TOPIC_ID=44136#372029
  A Fix to texanman as been deleted (first reply to texanman subject): http://forum.snitz.com/forum/topic.asp?TOPIC_ID=66162
  One of my Multi-Language Topic on Snitz has disappeared last night  Multi-Language and Multi-Language Skin3D http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40765
  etc...
  3 times I changed my password and the day after the same game start.
  Since   I send to HuwR a donation of $200 on December 22, 2006 this guy HuwR has never stop to pick on every thing I post on the Snitz Forum.
 
  I have even received from HuwR and ruirib an e-mail threatening to ban me from Snitz Forum :
 
  Hello
  You received the following message from: ruirib (ruirib@ruirib.net)
  At: http://forum.snitz.com/forum/
  It was a pleasure to have you there, hope you enjoyed the ride ;). And don't try to sneak in...
  Goodbye ;).
  Hey as_shole, I know it’s Davio who is a member at your forums, gonna lock him out too | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 ghanlon 
                Starting Member 
                 
                 
                
                USA 
                14 Posts  | 
                
                  
                    
                      
                       Posted - 07 January 2007 :  14:14:09
                        
                        
                        
                      
  | 
                     
                    
                       I am also trying to have a login on several other pages in my dev site. using the 3 above includes I am able to get it to require login, and it will direct me to proper page but,  I now get the forum header on the new page witch is not desired. ../dev/   ## where my base dev site resides. ../dev/   ## where several asp files that I want to require login. ../dev/community/  ## where all my forum files reside.
  I created a duplicate login.asp page and put it in the ../dev/ directory so I could custom it for the other pages.
  ?  Is there a way to not view the header page once I am redirected to my ../dev/ pages after login?
  thanks,
  George
 
  < | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                |   | 
                
                  Topic   | 
                  |