Author |
Topic |
|
jcm001
Starting Member
45 Posts |
Posted - 14 January 2004 : 14:14:50
|
Hello. I am hoping to get some help with the universal login MOD. I am using Forum version 3.4.04, and all my forum related files are located in the /forum directory. If I understood correctly, the universal login mod should allow me to extend the forum's login and logout functionality to pages outside of the forum. Cool.
I think I followed the instructions for installing the mod precisely. Nonetheless, I am getting a "The Page Cannot be Found" error when trying to load an outside-of-forum test page to which I have applied the MOD.
I followed the instructions for implmenting the MOD. Also, I copied
<!--#INCLUDE VIRTUAL="forum/config.asp"--> <!--#INCLUDE VIRTUAL="forum/inc_sha256.asp"--> <!--#INCLUDE VIRTUAL="forum/inc_func_common.asp"--> <!--#INCLUDE VIRTUAL="forum/inc_header.asp"-->
to the top of the outside-of-forum-directory test page (before the <html> tag), and renamed the page with an asp extension. Then, I placed the
<!--#INCLUDE VIRTUAL="forum/inc_login.asp"-->
line into a table in the page's body where I was hoping to see the dialogue appear. Even after searching the forum I was not able to get the page to work. I'm guessing the lines of code I referenced above aren't in the right location, (or that I also need to place them on other pages?) but I have played around considerably with potentially correct locations for the code, with no luck.
I would appreciate any comments or suggestions on how to correct this issue. Thank you in advance. |
Edited by - jcm001 on 14 January 2004 16:49:34 |
|
acoustika
Junior Member
Denmark
311 Posts |
Posted - 14 January 2004 : 18:21:38
|
You need to have a Slash (/) before the virtual includes.
instead of this <!--#INCLUDE VIRTUAL="forum/config.asp"-->
you nedd to make ALL the virtual includes like this (added the red part) <!--#INCLUDE VIRTUAL="/forum/config.asp"-->
Also another thing with the Universal login is that you problably Don't want to include the Inc_Header as is, because that would make the Forum menu and login and logo and stuff appear on that page too, BUT there are lots of stuff from the Inc_header that is needed so you'll have to make a modified version of Inc_Header.asp You'll have to strip out the HTML |
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
Edited by - acoustika on 14 January 2004 18:34:28 |
|
|
jcm001
Starting Member
45 Posts |
Posted - 14 January 2004 : 20:26:10
|
Thanks. I'll give this a try. Regards - jcm001 |
|
|
jcm001
Starting Member
45 Posts |
Posted - 15 January 2004 : 06:20:38
|
No luck so far. But something has changed! Maybe this will help. Originally, when I attempted to load the following page:
http://www.mywebsite.com/page.asp
I was redirected to:
http://www.mywebsite.com/login.asp?page.asp (or something similar)
This time, on my way to the "Page Cannot Be Found" error. I got the following error message:
"There has been a problem...
Your strDBType is not set, please edit your config.asp to reflect your database type.
Click Here to Retry"
When I select the "Click Here to Retry" link I end up at
http://www.mywebsite.com/default.asp
(Of course, I went into the config.asp file to check that the strDBType = "access" statement was was seleceted, and it was.)
Somehow this MOD isn't working for me. (I even double checked to see that the Forum's Set Cookie to web site option was selected.) What gives?
----------
I was wondering about the modifications you referred to re: the inc_header.asp file. Based on the comments am I correct in assuming that the descirbed process require me to make a copy of the inc_header.asp file, rename it, take out references to links (and other things) I'm not interested in displaying on a given outside-of-forum-directory page, and then changing the <!--#INCLUDE VIRTUAL="forum/inc_header.asp"--> statement to reflect this name change?
Essentially, I'm imagining two header files, one for inside the forum, one for outside the forum. |
|
|
acoustika
Junior Member
Denmark
311 Posts |
Posted - 15 January 2004 : 08:02:04
|
Hmm, that sounds weird.
Did you in fact get a "page cannot be found" error ????????
Could you instead of making links like www.mywebsite.com give me the real links so I could see what is happening???
A thing I had to do after making the implement of the Mod, was to both delete all cokies and restart, for the forum to make the cookie change from Froum to Website, but it's nothing like that, that gives you the error I think ( I'm no expert as well )
And YES you're right about the inc_header.asp You'll have to make a modified version and call it something else and then include that file instead og the original inc_header. Have you done that, if you have could you post a link to a txt version of that file so I could see it.
But I think it sounds a bit weird that it says you're DB type isn't set. Was it working before???????????? Or have you started out with a new forum????? if so have you run Setup.asp????? if not, you need to do so.
Also I'm using version 3.04.03 so I don't know what have been change between these two versions, but I don't think the problem lies in that. Answer my questions and I'll get back to it. I could maybe strip the hardcoded part out of MY inc_header_modified and let you try that. |
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
|
|
jcm001
Starting Member
45 Posts |
Posted - 16 January 2004 : 08:15:10
|
Thanks for the heads-up akoustika. I got a little frustrated with this MOD's implementation and flaked on it (removed any changes I had made and restored my original forum) before I saw your second post. I'm going to make another run at it today or tomorrow. I suspect I'll be revisiting the same issues; so, your assist is greatly appreciated.
In asnwer to your questions. Yes, the forum was working perfectly before I implemented any of the changes. The only other MOD I've applied is the POLL MOD - which works very well. I didn't have the chance to tackle the inc_header.asp modifications you mentioned. I was trying to get the original MOD up and running first. |
|
|
acoustika
Junior Member
Denmark
311 Posts |
Posted - 16 January 2004 : 15:05:13
|
Okay jcm001
just write again when you give it another try ;-) |
May The Code Be With You www.UniqueDk.dk *** The Open Forums of Denmark *** |
|
|
|
Topic |
|