Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Universal Login for Snitz 3.4.03
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 13

betheball
Starting Member

USA
41 Posts

Posted - 20 December 2002 :  15:08:14  Show Profile
But your homepage (www.skepticfriends.org) is NOT in the /Forum directory, right? Maybe my problem is I have misunderstood how to implement this mod. For example, no where in the code for your homepage do I see the INCLUDE VIRTUAL files shown in the readme file. Is that not where the INCLUDE VIRTUAL references go? Would you be too bothered if I asked you to send me copies of your homepage and you inc_header.asp pages so I can compare them to what I have done.

- Duane

"So I got that going for me, which is nice." - Carl Spackler
Go to Top of Page

snisz
Starting Member

USA
15 Posts

Posted - 21 December 2002 :  18:55:44  Show Profile
is the file at the first post the one i can download ?
is that the revised version ?

Hi :)
Go to Top of Page

betheball
Starting Member

USA
41 Posts

Posted - 26 December 2002 :  10:28:02  Show Profile
I am getting so close to getting this to work. The login is now displaying correctly and switching from logged on and logged off as it should. The only problem I have left is that it is not synchronizing with the forum pages themselves, meaning, when I log off the page that contains the Universal Login, I still stayed logged on to the forum pages and vice versa. I read your post about running admin_run_config, but I get this error:

Object doesn't support this property or method: 'Application.Contents.RemoveAll'

I think maybe IIS 4.0 doesn't support that command? The problem seems to relate to the cookies. I noticed that when I logon via the default page of the forum it creates a cookie and when I logon via the page containing the Universal Login, it creates another cookie. Shouldn't both pages use the same cookie? Anyway, I hate to give up when I am this close. Any more ideas?

- Duane

"So I got that going for me, which is nice." - Carl Spackler

Edited by - betheball on 26 December 2002 10:37:48
Go to Top of Page

jayceeaz
Starting Member

11 Posts

Posted - 17 January 2003 :  19:15:37  Show Profile
It's official. I have just lost my mind. Whoops, there it goes. Look out.

I have read about 500 messages pertaining to this wonderful mod, and I have yet to see someone have the same problem as me. Hehe. Here goes my situation:

I have a web site on my local server: d:\inetpub\wwwroot\site

Under it is my forum directory: d:\inetpub\wwwroot\site\forum

In the Site dir is a login.asp which has the mods installed, and on the live site it pops up quite spiffy and looks fine (though I haven't gotten the gfx yet).

The kicker:
On my TEST SITE? set up exACTLY the same? Running Login.asp with the includes installed constantly throws me to setup.asp (even though it is DELETED completely from ALL directories ) and gives me a 500 error. No other information, naturally - ty MS.

The problem lies in the fact that I cannot possibly make live modifications to the forums, and need to use a Development/Test environment.

I will second that the readme.html is written like the author really knows what he's doing, and the rest of us are given a "nice try". I am no novice programmer, but this is kicking my tail in. I accidentally got the login.asp and includes to work on the live system, but copying the exact data (db and all) to dev, it doesn't work. Same server, same hard drive, just a different directory. Permissions are Everyone Full Control. Scripts are enabled on both IIS 5.0 web site configs.

Honestly, I cannot think of any other reason this is not working.

Tell me, once and for all... what is the EXACT structure of a working site/forums integration? Do I have it right as above? with normal web site asp at the root and a sub directory called "forum" with all the forum asp and data?



I swear, if I didn't pretend to be so macho, I'd be in tears after 7 days straight of trying this out. I just want site visitors to use the Snitz forum DB. That's all I want in this whole wide world.

Thank you for listening. :)


Edited by - jayceeaz on 17 January 2003 21:46:35
Go to Top of Page

jayceeaz
Starting Member

11 Posts

Posted - 18 January 2003 :  02:29:05  Show Profile
Got it.

Oh my god... I cannot believe it. My entire problem has been the "fully qualified path name to the db" in config.asp. I am unsure how this is affecting ANYTHING, as DSN should work fine in all cases...

But, I woke just now from a nightmare of being chased by a giant "Internal Server Error: 500", with this revelation. :)

I was using: "db/snitz_forums_2000.mdb" as a path, thinking it was smart enough to remember it was already in the /forum/ dir, but I guess not. DSN doesn't work for some odd reason, so I have dropped it altogether. Now, I use "c:/InetPub/wwwroot/site/forum/db/snitz_forums_2000.mdb", and it works brilliantly (I assume that is as designed)

Great mod, great idea. Hope I can use it on my site.
Go to Top of Page

JimAmigo
Starting Member

37 Posts

Posted - 30 January 2003 :  13:52:08  Show Profile  Visit JimAmigo's Homepage
Ok I added the mod and got this error on the page I am trying to place the INC_Login.asp file:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'ChkString'

/../forum/inc_login.asp, line 41


I didn't see anything in the read me file referencing this. In my case I am trying to post the inc_login file in my left side include file that is part of my navigation. On my site everything is built around include files so Any changes I make to navigation either on top, sides or footer is reflected.

Any ideas of what I should check?

JimAmigo
Go to Top of Page

Lydecker
Junior Member

United Kingdom
297 Posts

Posted - 04 February 2003 :  05:39:59  Show Profile  Visit Lydecker's Homepage
I like this mod - bu i wannt to use it outside of the forum directory WITHOUT all the header blab at the top of the page. How can this be done (short of creating a new header page)

Thanks
Go to Top of Page

Lydecker
Junior Member

United Kingdom
297 Posts

Posted - 04 February 2003 :  15:53:11  Show Profile  Visit Lydecker's Homepage
Okay - downloaded the 'stripped' inc_header from John in an earlier post, however is seems to just redirect me to the page with only the footer displayed after an atempted logon.
Go to Top of Page

mberger
Starting Member

USA
39 Posts

Posted - 05 February 2003 :  15:41:45  Show Profile  Visit mberger's Homepage
I've applied the mod. I protected a page outside the forum. I do not redirect to that page - instead back to that page as if it is in the /forum directory.

When I go back to any other page - and then that page again, I get to it (I am, in fact, logged in). Any idea what is going on.

Mike
Go to Top of Page

stupidity
Starting Member

United Kingdom
49 Posts

Posted - 05 February 2003 :  18:28:33  Show Profile  Visit stupidity's Homepage
I don't know if this will help anyone trying to get this to work on their site, but here goes

I'm developing a site where I wanted members to be able to login to the community section, but I didn't want to include all the functions or stuff out of inc_header etc, mainly because of conflicts with other scripts formating etc, so I took the code down to the bare minimum and used the existing login.asp page and cookies to log users in

The code below is the total content of my inc_login.asp page, those wishing to use it will have to replace the CSS classes and replace them with font sizes etc you will also have to hard code the address of login.asp, policy.asp and password.asp (in the code they are shown as /directory/forum/page.asp)

<%
strDBNTUserName = Request.Cookies("Snitz00User")("Name")
Response.Write " <table width=""175"" border=""1"" bordercolor=""#7331BD"" cellspacing=""0"" cellpadding=""4"" align=""center"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td valign=""top"" align=""center"" class=""headcell""><b>Member Login</b></td>" & vbNewLine & _
" </tr>" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td class=""smalltext"" valign=""top"" align=""center"">" & vbNewLine
if strDBNTUserName = "" then
Response.Write " <form action=""/directory/forum/login.asp"" method=""post"" id=""form1"" name=""form1"">" & vbNewLine & _
" <input type=""hidden"" name=""Method_Type"" value=""login"">" & vbNewLine
Response.Write " <b>Username:</b><br />" & vbNewLine & _
" <input type=""text"" name=""Name"" size=""10"" maxLength=""25"" value=""""><br />" & vbNewLine & _
" <b>Password:</b><br />" & vbNewLine & _
" <input type=""password"" name=""Password"" size=""10"" maxLength=""25"" value=""""><br />" & vbNewLine
Response.Write " <input class=""btn"" type=""submit"" value=""Login"" id=""submit1"" name=""submit1""><br />" & vbNewLine
Response.Write " <input type=""checkbox"" name=""SavePassWord"" value=""true"" tabindex=""-1"" CHECKED><b> Save Password</b><br />" & vbNewLine
Response.Write " Please <a href=""/directory/forum/policy.asp"" tabindex=""-1""><acronym title=""Register to post to our forum..."">Register</acronym></a> to Post in our Forums<br>" & vbNewline
Response.Write " <a href=""/directory/forum/password.asp"" tabindex=""-1""><acronym title=""Choose a new password if you have forgotten your current one..."">Forgot your Password?</acronym></a>"
else
Response.Write " <form action=""/directory/forum/login.asp"" method=""post"" id=""form2"" name=""form2"">" & vbNewLine & _
" <input type=""hidden"" name=""Method_Type"" value=""logout"">" & vbNewLine & _
" You are logged on as<br />" & vbNewLine
Response.Write "<b>" & ChkString(strDBNTUserName, "display") & "</b><br />" & vbNewLine
Response.Write "<input class=""btn"" type=""submit"" value=""Logout"" id=""submit1"" name=""submit1"" tabindex=""-1""><br />"
if (mlev = 4) or (lcase(strNoCookies) = "1") then
Response.Write " " & vbNewLine & _
" <a href=""/directory/forum/admin_home.asp""" & dWStatus("Access the Forum Admin Functions...") & " tabindex=""-1"">Admin Options</a>"
end if
Response.Write " </form>" & vbNewLine
end if
Response.Write "</td></tr></table>" & vbNewLine
%>

How does it work?

It checks to see if they have a cookie from your site, if they do it takes the username from the cookie and shows them logged in (admin option doesn't show unless your in the forum directory)

If there is no cookie it shows the username and password fields, as normal, the user then fills these fields with their details and submits the form, their details are registered via login.asp a cookie is written and they are redirected back to the refering page, which detects the cookie and causes the script to show the user logged in

Hope it helps

Peter
aka Stupidity
EuroBility.com

Edited by - stupidity on 05 February 2003 20:09:26
Go to Top of Page

System Error
Starting Member

6 Posts

Posted - 22 February 2003 :  03:19:36  Show Profile
Hi there,

I downloaded and installed the add on according to the instructions in the readme file. However everytime I try to access the page with the included inc_login.asp file I get the following error message:

Quote
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: 'javascript1.2' is not a supported language.

Source Error:


Line 1549:
Line 1550:
Line 1551:<script language="javascript1.2" runat="server">
Line 1552:function edit_hrefs(sURL, iType) {
Line 1553: sOutput = new String(sURL);


Source File: c:\xxxxxxxx\forum\inc_func_common.asp Line: 1551

Unquote


As you can see my directory is called forum and all the include files are 'Virtual'. I included all the needed files as per the readme file. I even tried taking a few of them out but the MOD just did not work.

Any ideas?

System Error
Go to Top of Page

System Error
Starting Member

6 Posts

Posted - 26 February 2003 :  06:19:32  Show Profile
Hi @tomic,

I tried many times to install and use your mod but each time I get the following error.


Microsoft JScript compilation (0x800A03F7)
Unterminated string constant
/test/forum/inc_adovbs.asp, line 2, column 69
'--------------------------------------------------------------------
--------------------------------------------------------------------^


I cannot figure out why this error keeps popping up. I am running IIS 5 and the default language is set to VBScript. I assume this is correct because the code used in your asp pages are VB. I have not edited any other page other than the one you have specified in your readme file.

Please try to give some comments as to why this might be happening. I really would like to use your mod, but if it doesn't work then there is nothing I can do.

System Error
Go to Top of Page

System Error
Starting Member

6 Posts

Posted - 11 March 2003 :  02:00:30  Show Profile
quote:
Originally posted by System Error

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: 'javascript1.2' is not a supported language.

Source Error:


Line 1549:
Line 1550:
Line 1551:<script language="javascript1.2" runat="server">
Line 1552:function edit_hrefs(sURL, iType) {
Line 1553: sOutput = new String(sURL);




I finally figured out what the problem was. You cannot use any of these files as includes if you're using ASP.Net!!! **** it!

Anyway, there's nothing to do about it except maybe try to upgrade the whole forum to .Net!


System Error
Go to Top of Page

lotussutol
Starting Member

41 Posts

Posted - 12 March 2003 :  13:48:10  Show Profile
thanks stupididy!!! you put me on the right path with your login code! i then stripped down the inc_header file of all visible code and named it inc_noheader.asp so that only the inc_login code shows up on the page! it is now working and i will make some changes so it will do exactly what i need it to do!
Go to Top of Page

mykel_suthertun
Junior Member

USA
227 Posts

Posted - 15 April 2003 :  09:27:45  Show Profile  Visit mykel_suthertun's Homepage
I've been looking around for the MOD I want for a while, and this is close. But, would it work if I put the login on my index page and my forum loaded in an inline frame? What changes would I have to make? Thanks,

Mike Southerton
Webmaster | Don'tSayDie.com | DriveThe.com
Go to Top of Page
Page: of 13 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07