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: MOD Implementation
 Help with INCLUDE Statement
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

OldHatt45
Starting Member

USA
5 Posts

Posted - 09 November 2005 :  19:05:51  Show Profile
I am a 100% Newbie to ASP and to the Snitz Forum.
Having said that, Here is where I am right Now.
I Successfully Installed Snitz (Latest Version 3.04.05).
It works like a charm! (Hats off to all that have worked on it
I then wanted to add the ability to Use a "Universal Login" approach to the Web-Site I am building, so I searched the Forum and found the "Universal Login" mod. While doing this I ran across reference to the "Referer" mod, which I also installed (prior to Uni-Login).

Did all the things that the readme's said to do and even checked the forum for other little "tips" that might be necessary.

Then went and installed the Universal Login Mod. Went to my "Home" page and added the INCLUDE statements.

<!--#INCLUDE virtual="forum/config.asp"-->
<!--#INCLUDE virtual="forum/inc_sha256.asp"-->
<!--#INCLUDE virtual="forum/inc_func_common.asp"-->
<!--#INCLUDE virtual="forum/inc_header.asp"-->
<!--#INCLUDE virtual="forum/inc_login.asp"-->

and Yes, my forum directory is a sub-folder beneath the site folder.

With the Include statements in Place I get the error
ASP 0126 (0x80004005)
The include file 'forum/config.asp' was not found.
/xxxdev/xxxHome.asp, line 3

If I remove the "includes" no problem everything on the xxxHome.asp works fine. (Also tried changing the order of the includes and it bombs on the first one it hits).

Then I figured I needed to learn more about ASP so went and bought a book. (No I just didn't chew on the cover,) I've gotten a pretty good way into it and still have come up with a good or other explanation why the includes are doing what they're doing.

if I then change "VIRTUAL" to "FILE" I get the 404 errror,
http://localhost/xxxdev/login.asp?target=xxxhome.asp

I'm pretty sure it has to do with a Path problem but not sure where to look. WOuld appreciate any Help.

To complicate things, I am working on a single machine without a fixed IP so can't really provide access. Hope that doesn't stop anyone from helping.

THanks In Advance

OldHatt45

< Moved to Help: MOD Implementation by Shaggy />

Edited by - Shaggy on 10 November 2005 08:07:35

kwhipp
Junior Member

United States
407 Posts

Posted - 09 November 2005 :  20:03:38  Show Profile
Try adding a "/" in front of "forum". It would look like this - "/forum/config.asp"

- Kevin
Go to Top of Page

OldHatt45
Starting Member

USA
5 Posts

Posted - 10 November 2005 :  07:48:13  Show Profile
Tried the "/" in front of the file name. Still doesn't work.

Thanks
Starting to pull what hair I have left out.
This should be easy but escaping me.......


OldHatt45
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 10 November 2005 :  08:05:38  Show Profile  Send pdrg a Yahoo! Message
you could try some permutations of .. and / eg

virtual="../forum/config.asp"
virtual="../../forum/config.asp"
virtual="./../forum/config.asp"
virtual="folder2/forum/config.asp"
virtual="../folder2/forum/config.asp"
virtual="/folder2/forum/config.asp"

or even the full path
virtual="http://mysite/folder1/folder2/forum/config.asp"

I'm so rusty, no guarantees, but some permutation is likely to get you there :) Fingers crossed!
Go to Top of Page

OldHatt45
Starting Member

USA
5 Posts

Posted - 10 November 2005 :  09:19:40  Show Profile
pdrg,

Thanks for the reply.!!!
I tried the permutations as you suggested.
The virtual="/xxxdev/forum/config.asp"
kinda works (this is good!!).
The xxxdev/xxxHome.asp page comes up (Looks real ugly), but it comes up.
Now, have you any clue as to why???
Also, if you click in the browser (IE6.1) to "Refresh" the page, it comes up with a 404 "Page Not Found" error. I'm really messed up.
Other noticeable freaky behavior is that the Images at the Top for the Forum Labels (in both Upper left of header and upper right of header are missing (have the missing image red X image).

Anyhow, the Main question is why the /xxxdev/forum/config.asp syntax worked.
If you can point me in a direction I'd really appreciate it.

Thanks

OldHatt45
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 10 November 2005 :  09:39:54  Show Profile  Send pdrg a Yahoo! Message
The redexes suggest you've got some other missing/confused paths - perhaps there are some hard-coded paths inside the include files?

it is possible that you need to try "./folder2/forum/myincludefile.asp" to make it root-relative, but I'm stabbing around here, as I don't know the contents of those files and haven't had IIS running locally in an age...the 404 could be because the refresh is then adding the /x/y/z.asp onto the end of an existing path, creating /x/y/z.asp/x/y.z.asp which would 404, so the ./x/y/z.asp may cure it.

I wish I could experiment a bit for you, but hey, if you find it for yourself you'll feel all the more pleased with the results and come away a little bit battle-scarred but wiser ;-)

Go to Top of Page

OldHatt45
Starting Member

USA
5 Posts

Posted - 10 November 2005 :  09:40:46  Show Profile
More Info on the above problem.
WHen I do a "View Source" with the xxxHome.asp page open, it looks like I'm actually getting 2 pages? The first I think is the Login Page, the second is my actual home page.

I can post the code if it would help sorting this out.

Thanks in Advance

OldHatt45
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 10 November 2005 :  11:23:25  Show Profile  Send pdrg a Yahoo! Message
blimey!

If you just put a link to the page and a link to the source (saved as xxxhome.asp.txt) maybe someone can have a look through - not sure how useful I'll still be though!
Go to Top of Page

OldHatt45
Starting Member

USA
5 Posts

Posted - 10 November 2005 :  11:38:57  Show Profile
PDRG,

THANK YOU FOR YOUR HELP!!!
I really do Appreciate It!

Have decided to start over again, and go a little slower this time.
As in first get the basic stuff going, then come back and get a bit more sophisticated. Since I'm a bit behind the and need to get my site going, I can live with the Non-Universal Login for now. And besides, after reading the Posts, I will also need to figure out how to have a Universal Registration as well. Anyhow, Thanks for your Help and Support. Wish there was a way to "Give Points" for the support but know that you are appreciated.

OldHatt45


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.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07