Author |
Topic |
LKnomad
New Member
55 Posts |
Posted - 18 April 2003 : 03:13:56
|
Oh my gosh I just installed this mod and it is perfect!! Wow!! Thanks
Laura K!!! |
Edited by - LKnomad on 19 April 2003 02:32:47 |
|
|
tcharles
Starting Member
USA
24 Posts |
Posted - 11 June 2003 : 14:39:07
|
I've tried to implement the variation described by Stupidity. But have not had any success. Can someone elaborate on how this is done? |
|
|
StephenD
Senior Member
Australia
1044 Posts |
Posted - 16 June 2003 : 03:54:38
|
I've got this working fine but I need help removing the html from my inc_header that I am using on my portal page. I actually want all html removed. Nav menu, forum title, forum logo and login. I've got a new navigation table that is an include. I have spent hours trying to this myself but have given up. All help sincerely appreciated.
Here is a link to my inc_header2.txt http://www.global-e.com.au/inc_header2.txt |
|
|
StephenD
Senior Member
Australia
1044 Posts |
Posted - 16 June 2003 : 20:28:26
|
Finally got it, commented out everything below line 300. |
|
|
StephenD
Senior Member
Australia
1044 Posts |
Posted - 04 August 2003 : 22:51:06
|
OK, I notice that if you login using inc_login on my portal page it will not show that you are logged in until you 'refresh' the whole page. Any way of getting inc_login to do that automatically? |
|
|
amdgamer
Starting Member
4 Posts |
Posted - 20 August 2003 : 03:02:18
|
using stupidity's code above it almost woprks for me but when it goes back and should show you are signed in as i get a.
You are logged on as
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'ChkString'
/amdgamer/login2.asp, line 23 any ideas |
|
|
Pedo
Starting Member
49 Posts |
Posted - 03 October 2003 : 16:58:50
|
I implemented the Universal Login on everypage from main root directory. Why I always redirect to the "forum/login.asp?target=default.asp". |
|
|
jayceeaz
Starting Member
11 Posts |
Posted - 12 December 2003 : 21:53:34
|
Ok, I'm baaaack! Been a while cuz I got my host yanked. Getting back into the Snitz thang since I am alive again. Annnnyway, here's an issue I had before that I never bothered to ask about. By the unanswered questions here over the last 10 mos or so, I will assume I will never get an answer, but at least we can compare notes. :)
(posted elsewhere, so repeat)
Yeah, I got only one problem with Universal Login; I seem to end up with two complete collections of vars running at the same time... so when I make changes, I have to literally restart IIS before the changes can be read by the second (who knows why?) collection...
I was too lazy to go see why, when I run varChk.asp:
<% response.write "<table border=""1"">" Response.Write("<tr><th>APPLICATION VARIABLE</th><th>CONTENTS</th></tr>") For Each Item in Application.Contents() Response.Write("<tr><td><font color=""black"" size=""2"">" & Item & "</font></td>" &_ "<td><font color=""black"" size=""2"">" & Application.Contents(Item) & "</font></td></tr>") Next response.write "</table>" %>
I see two sets of forum settings. :) Guess I am including it twice or something. Shrug.
Anyone else see this problem? The exact symptom is:
(providing you actually use forum color schemes on your website as well, like I do) Open your Universal site. Log in. Go to Forum Admin. Change a color (for example: Category Font Color, set it to something noticably different). Go back to Forums and verify the color you wanted is changed (you should see your category font titles in the new color. Now go back to your website, and you will still see the old color from before you made the change.
In looking into why, it's because there are two collections running... one that is "/" (when you first go to the site and run the above varChk.asp, you will see only one collection) and one that is "/forum/" (now, rerun varChk.asp after clicking on the link to your forums, and see the new collection).
Any advice?
|
|
|
acoustika
Junior Member
Denmark
311 Posts |
Posted - 13 December 2003 : 13:16:09
|
quote: Originally posted by johndgraham
sure. I've made a inc_header.asp file that essentially has all of the code except the table information. You can d/l it at http://www.madmacusergroup.com/forums/inc_headerJohn.zip
the site I'm working with has been created with Dreamweaver, and I see that snitz creates a couple session variables. Any one know where in the code of the login I can set a couple other sessionVars from the members table? I've added an extra column.
Jg
I have tried using John's Header file, and it seems to work fine. I had to put the "Active user" thing from inc_header.asp to get it to work with the active user mod. But I notiched something. Wen I log in and log out it doesn't redirect me anywhere, it just writes the footer. Is this right, or am I missing some changes??????? John's logout statement in his geader file looks like this
case "logout" Call ClearCookies() end select
if I put some of @tomic's code from the read me file in, it redirect me, but is this what I am s'pposed to do, I have tried this, and it seems to work
case "logout" response.write "<meta http-equiv=""Refresh"" content=""2; URL=" & Request.ServerVariables("HTTP_REFERER") & """>" & vbNewLine & _ "<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""" & Request.ServerVariables("HTTP_REFERER") & """>Back To Forum</font></a></p>" & vbNewLine & _ "<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""95%"">" & vbNewLine & _ " <tr>" & vbNewLine & _ " <td>" & vbNewLine Call ClearCookies() end select
But is this what I am s'pposed to do or am I missing something here?????
Also in this code from Inc_Login.asp I can't figure out if I'm supposed to change anything here
if RequestMethod = "POST" and strLoginStatus = 0 then Response.Write(" <font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHiLiteFontColor & """>Your username and/or password was incorrect.</font><br />" & vbNewLine) Response.Write " <form action=""" & Request.ServerVariables("URL") & """ method=""post"" id=""Form1"" name=""Form1"">" & vbNewLine & _
anyone????? |
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
|
|
acoustika
Junior Member
Denmark
311 Posts |
Posted - 13 December 2003 : 17:32:01
|
anyone who can help with this, I'm just now sitting a playing with it, and I think I made it work as in the above post, but I wouldn't want to implement it if this is a security risk. you can see the script with my changes in action here www.UniqueDk.dk/logintest.asp
i Have made a test account if you would like to try it out User : Snitzguest pass : guest |
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
|
|
Sabrehack
Starting Member
Canada
7 Posts |
Posted - 07 January 2004 : 12:02:06
|
I am also just giving this mod a try but I simply posted the 5 includes in to a blank test page and get the following error: Response object error 'ASP 0156 : 80004005'
Header Error
/forum/config.asp, line 43
The HTTP headers are already written to the client browser.
|
|
|
Sabrehack
Starting Member
Canada
7 Posts |
Posted - 08 January 2004 : 08:06:51
|
Ignore my inquiry, I, after far too long without thinking this out clearly, realized that Buffering was not enabled in IIS. |
|
|
Sabrehack
Starting Member
Canada
7 Posts |
Posted - 12 January 2004 : 10:00:35
|
I have this mod now working for the most part, however after logging in I still need to refresh explorer for the logged-in-as information to be displayed. In testing I have noted that the strLoginStatus is successfully set to 1 however mlev still shows as 0 until I refresh the screen and it switches to 4. In my review I believe that both these values are set in inc_header.asp, with strLoginStatus being set directly and mlev being set by using the chkUser function.
if trim(strDBNTUserName) <> "" and trim(Request.Cookies(strUniqueID & "User")("Pword")) <> "" then chkCookie = 1 mLev = cLng(chkUser(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword"),-1)) chkCookie = 0 else MemberID = -1 mLev = 0 end if
I'm not 100% sure what this code is doing but it appears to assign a value to mlev. So I cannot understand why one value is ok while another requires a refresh.
Am I completely off base here? Any help at all would be appreciated.
Thanks
|
|
|
lsakizada
New Member
USA
90 Posts |
Posted - 17 January 2004 : 22:54:02
|
Does anybody know if this mod can be modified to support SSL ? Any suggestion how to make it work with SSL?Any body already integrated it with existing library? I will appreciate that. Thanxs. |
|
|
goldfish
New Member
82 Posts |
Posted - 28 January 2004 : 11:40:54
|
I wonder if anyone can help... I'm looking to include this functionality, but without having with a separate log-in page (i.e. just include an inc_login.asp on all pages that check to see if you're registered, and offer login/out/admin options respectively).
It's generally working well at the moment, with an inc_login.asp stripped down to the following:-
<%
strDBNTUserName = Request.Cookies("Snitz00User")("Name")
if strDBNTUserName = "" then
Response.Write " You can only post messages if you are logged in.<br /><a href=""/rdonline/forum/login2.asp""" & dWStatus("Log in to the discussion board") & " title=""Log in to the discussion board""><strong>Login</strong></a> or <a href=""/rdonline/forum/register.asp""" & dWStatus("Register to use the discussion board") & " title=""Register to use the discussion board""><strong>Register</strong></a>." & vbNewLine
else
Response.Write " <form action=""/rdonline/forum/login2.asp"" method=""post"" id=""form2"" name=""form2"">" & vbNewLine & _
" <input type=""hidden"" name=""Method_Type"" value=""logout""> You are logged on as " & vbNewLine
Response.Write "<b>" & ChkString(strDBNTUserName, "display") & "</b>" & vbNewLine
Response.Write " | <a href=""javascript:document.form2.submit()"" " & dWStatus("Log out of the discussion board") & " tabindex=""-1"" title=""Log out of the discussion board"">Log Out</a>"
if (mlev = 4) or (lcase(strNoCookies) = "1") then
Response.Write " | <a href=""/rdonline/forum/admin_home.asp""" & dWStatus("Access the Forum Admin Functions...") & " tabindex=""-1"" title=""Access the Forum Admin Functions..."">Admin Options</a>"
end if
Response.Write "</form>" & vbNewLine
end if
%>
What I can't figure out at the moment is how to get logout, and the subsequent login page to refer back to the page outside the site... at the moment it always points back to the forum homepage...
Anyone got any ideas?
Simon |
|
|
Topic |
|