Author |
Topic |
|
zdr81
Starting Member
12 Posts |
Posted - 14 May 2002 : 16:33:48
|
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
|
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 |
|
|
zdr81
Starting Member
12 Posts |
Posted - 14 May 2002 : 16:42:16
|
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..
|
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 14 May 2002 : 16:46:17
|
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 |
|
|
zdr81
Starting Member
12 Posts |
Posted - 14 May 2002 : 16:58:12
|
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
|
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 14 May 2002 : 17:08:41
|
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 |
|
|
zdr81
Starting Member
12 Posts |
Posted - 14 May 2002 : 17:24:54
|
can i email you my website instead of putting it here publicly?
|
|
|
Nathan
Help Moderator
USA
7664 Posts |
|
zdr81
Starting Member
12 Posts |
Posted - 14 May 2002 : 23:51:24
|
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 |
|
|
zdr81
Starting Member
12 Posts |
Posted - 15 May 2002 : 01:09:00
|
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 ..
|
|
|
Nathan
Help Moderator
USA
7664 Posts |
|
Nathan
Help Moderator
USA
7664 Posts |
Posted - 15 May 2002 : 01:23:42
|
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 |
|
|
zdr81
Starting Member
12 Posts |
Posted - 15 May 2002 : 01:35:52
|
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.
|
|
|
Nathan
Help Moderator
USA
7664 Posts |
Posted - 15 May 2002 : 01:37:42
|
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 |
|
|
zdr81
Starting Member
12 Posts |
Posted - 15 May 2002 : 01:40:38
|
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..
|
|
|
Nathan
Help Moderator
USA
7664 Posts |
Posted - 15 May 2002 : 02:20:19
|
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 |
|
|
|
Topic |
|