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)
 Stripped down inc_header.asp

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
lovduv Posted - 07 May 2007 : 20:35:41
I was hoping that someone has or could strip down the inc_header.asp to just the code and includes needed for the log-in and out functions.

I want to have an include for the rest of my site for login boxes...


oops this probably needs to be moved to the MOD forum....I'll pack my bag....lol

<Moved - AnonJr><
5   L A T E S T    R E P L I E S    (Newest First)
lovduv Posted - 07 June 2007 : 15:34:26
No problem, I don't mind searching for fixes when I know there is one to find!

If you could track down the fix for the bypass that would be much appreciated!!<
AnonJr Posted - 06 June 2007 : 11:43:53
I would add the UserGroup MOD - its the easier way to do what you want (I tried both ways, and abandoned adding an mLev as it was more work than it was worth). I've not gotten around to getting the updates included, but the only real "bug" that isn't in the thread with the MOD is that a member can post by not logging in and using the post form to pass their credentials - and a fix for that has been posted... if I could only remember where...

I think you'll find the UserGroup MOD to be a much better long-term solution as its much more flexible. Just my 2c.

I'll see what I can get up later tonight, but no promises - I've got a lot of neglected projecst on my plate. <
lovduv Posted - 06 June 2007 : 10:46:41
AnonJr....

I have been able to get this working....I am now able to have a simple log-in for pages I am restricting access too. I have a new question....

The association I work for wants the forum and most of the site to be open to the public, but on the site we have a member section for the members of our association. I need to restrict access to these pages, my first thought was to simply add a user level, let's say #7

So mlev = 7 would be what I would use to check a logged in level for these pages.....

So I searched and read over the posts and although I saw it alluded to, I never saw any specific code for adding a member level, which is all I need.

So then I looked to the next idea, the UsersGroups Mod, and I saw several posts about errors and bugs. Then I found yours where you referred to an updated version you were working on, with a bug fix for the log-in workaround??.....So my question is, can I simply add a level or do I need to add a MOD (UserGroups Mod) that I really don't need with lot's of potential bugs?<
AnonJr Posted - 08 May 2007 : 06:37:39
This topic may be of some help too. There are a couple different ways to get what I think you want done outlined there, and a link to another topic along the same lines.<
Jezmeister Posted - 08 May 2007 : 02:44:30
why don't you use the site login mod and just remove all visible code so you simply have all the variables set etc? - might be easier

otherwise the bit of visible code you need to keep is something like this (but not exactly the same I don't think):
 if (mLev = 0) then		
Response.Write " <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><b>Username:</b>" & vbNewLine & _
" <input type=""text"" name=""Name"" size=""10"" maxLength=""25"" value=""""" & vbNewLine & _
" <em><b>Password:</b></em></font>" & vbNewLine & _
" <input type=""password"" name=""Password"" size=""10"" maxLength=""25"" value="""">" & vbNewLine
Response.Write " <input type=""submit"" value=""Login"" id=""submit1"" name=""submit1"">" & vbNewLine
Response.Write " <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>" & vbNewLine & _
" <input type=""checkbox"" name=""SavePassWord"" value=""true"" tabindex=""-1"" CHECKED><b> Save Password</b></font>" & vbNewLine
else
Response.Write " <form action=""" & Request.ServerVariables("URL") & """ method=""post"" id=""form2"" name=""form2"">" & vbNewLine & _
" <input type=""hidden"" name=""Method_Type"" value=""logout"">" & vbNewLine & _
"<font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>You are logged on as "
if strAuthType="nt" then
Response.Write "<b>" & Session(strCookieURL & "username") & " (" & Session(strCookieURL & "userid") & ")</b>" & vbNewLine & _
" <td> "
else
if strAuthType = "db" then

Response.Write "<b><a href=""pop_profile.asp?mode=display&id=" & MemberID & """>" & strDBNTUserName & "</a></b>." & vbNewLine & _
" <a href=""../logout.asp"">Logout</a>" & _
" <p style=""margin-top:0;margin-bottom:0;"">Click <a href=""pop_profile.asp?mode=Edit"">here</a> to edit your profile</p>"
end if
end if
Response.Write " </form>" & vbNewLine
end if
<

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