Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 External page but must be logged in!!

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Fomse 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 /><
10   L A T E S T    R E P L I E S    (Newest First)
ghanlon 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


<
Fomse 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<
laser 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 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:-)<
Roger Fredriksson 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.<
Fomse Posted - 31 October 2005 : 15:10:51
Soar>> That are the proper includes??

Fomse:-)<
Soar 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.<
OneWayMule Posted - 30 October 2005 : 18:07:45
Do a search on the forums here, there are numerous discussions about this topic.<
Fomse 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...

<
laser 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.<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07