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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Using ASP / DB with different directories ???
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

zdr81
Starting Member

12 Posts

Posted - 14 May 2002 :  16:33:48  Show Profile
My main question is, if i want to use the forum logins with files in directories other than the forum directory itself, how do i go about doing that? I tried the inc_login.asp (from snitz exchange) in the main directory but it gives a 404 error for the setup.asp file. Do i need to include a <!-- #INCLUDE FILE="forum/setup.asp" --> ?

and yes the inc_login has the references as follows:
<!-- #INCLUDE FILE="forum/config.asp" -->
<!--#include file="forum/inc_functions.asp" -->



Roland
Advanced Member

Netherlands
9335 Posts

Posted - 14 May 2002 :  16:37:14  Show Profile
why do you need to include setup.asp? That file is only needed to get your forums working, after that you can (and are adviced to) delete it from your server. No need to include it anywhere...



http://www.frutzle.com

Snitz Exchange | Do's and Dont's
Go to Top of Page

zdr81
Starting Member

12 Posts

Posted - 14 May 2002 :  16:42:16  Show Profile
quote:

why do you need to include setup.asp? That file is only needed to get your forums working, after that you can (and are adviced to) delete it from your server. No need to include it anywhere...



http://www.frutzle.com

Snitz Exchange | Do's and Dont's



thanks for the fast reply
here's an example.. i put tetris on in forum/tetris .. when running the setup (it has the references to ../config.asp and ../inc_functions.asp so that's fixed) it gives an error 404 for setup.asp (since setup.asp is not in the tetris directory but rather in the forum directory..

Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 14 May 2002 :  16:46:17  Show Profile
As I said, once your forums work you won't need setup.asp anymore. Installing the tetris MOD doesn't require the use of setup.asp. It might require you to go to the Admin Options > Mod Setup to install a database update, but not setup.asp.



http://www.frutzle.com

Snitz Exchange | Do's and Dont's
Go to Top of Page

zdr81
Starting Member

12 Posts

Posted - 14 May 2002 :  16:58:12  Show Profile
ok i think i confused you a little bit.. no i am not running setup.asp nor have i included it anywhere. when i said i ran setup in my previous post, i meant the mod_dbsetup.asp that came with the tetris files itself.
the whole thing is that any file outside of the forum directory itself, when trying to use the user/pass from the db, keeps giving me an error 404 for setup.asp
here's what comes in the address bar with the 404 page (because there is no setup.asp in the tetris directory):
../forum/tetris/setup.asp?RC=1&CC=1&strDBType=access&EC=-2147467259

Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 14 May 2002 :  17:08:41  Show Profile
Okay, well without a link to your forums I can't see what happens, but when you are including a file in a directory above where the file resides you should use either <!--#include file="../forum/config.asp"--> or <!--#include virtual="/forum/config.asp"--> where /forum/ is a directory located directly above the site's wwwroot.




http://www.frutzle.com

Snitz Exchange | Do's and Dont's
Go to Top of Page

zdr81
Starting Member

12 Posts

Posted - 14 May 2002 :  17:24:54  Show Profile
can i email you my website instead of putting it here publicly?

Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 14 May 2002 :  22:03:07  Show Profile  Visit Nathan's Homepage
What kind of connection string are you using?

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

zdr81
Starting Member

12 Posts

Posted - 14 May 2002 :  23:51:24  Show Profile
quote:

What kind of connection string are you using?

Nathan Bales
Snitz Exchange | Do's and Dont's



i'm using the basic odbc connection (first option) to the access db. The forum and logins work properly.. its just anything outside of the forum directory itself. y



Edited by - zdr81 on 15 May 2002 09:52:52
Go to Top of Page

zdr81
Starting Member

12 Posts

Posted - 15 May 2002 :  01:09:00  Show Profile
anyone? please i need to get this to work!

btw, i have an identical copy of these pages on brinkster but for some reason it works there ..

Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 15 May 2002 :  01:20:49  Show Profile  Visit Nathan's Homepage
no, I mean exactly what connection do you have?

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 15 May 2002 :  01:23:42  Show Profile  Visit Nathan's Homepage
You must use this connection for the login to work.

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\users\username\database\snitz_forums_2000.mdb"

replace the red part with the full path to your database. If you dont know how to get that you can use whereami.asp downloadable from www.snitz.info

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

zdr81
Starting Member

12 Posts

Posted - 15 May 2002 :  01:35:52  Show Profile
thank you so much nathan! God bless ya!

by the way, the whereami.asp has an error - when giving the location of the db, it assumes the db is in the forum directory itself. However, most people have it in /db and it needs to add that.

Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 15 May 2002 :  01:37:42  Show Profile  Visit Nathan's Homepage
Well, its not an error. The whereami.asp script assumes the database is in the folder in which the script was executed. So if you executed the script from the db folder, then it would have been accurate.

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

zdr81
Starting Member

12 Posts

Posted - 15 May 2002 :  01:40:38  Show Profile
gotcha.. had just put it in the forum directory itself and ran it. out of curiosity, why wouldn't the virtual connection string work? it worked for my brinkster account though..

Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 15 May 2002 :  02:20:19  Show Profile  Visit Nathan's Homepage
Because when config.asp is included up a directory from the forum (file="forum/config.asp" instead of file="config.asp") then the code esentually becomes part of the inc_login.asp file, or whichever file you include inc_login.asp into. So therefore, the nice relitive path that you have fed into server.mappath for that other connection string is no longer relitive. It will end up one directory above the database.

By specifying a full path, it doesn't matter where the database is in relation to the file that is being executed, it will still be found.

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.5 seconds. Powered By: Snitz Forums 2000 Version 3.4.07