Author |
Topic |
work mule
Senior Member
USA
1358 Posts |
Posted - 11 October 2002 : 12:14:49
|
I'm not sure if this is doing it because of all the junk I have installed and the multiple versions of Snitz I have installed, so maybe someone who's using this can check it out to see if it's something to be concerned about.
It has to do with this:
strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/"))
This returns the path of the page you're on.
so...
At http://www.mysite.com/page.asp | strCookieURL = "/" At http://www.mysite.com/articles/page.asp | strCookieURL = "/articles/" At http://www.mysite.com/forum/page.asp | strCookieURL = "/forum/" At http://www.mysite.com/community/forum/page.asp | strCookieURL = "/community/forum/"
right? or am I thinking wrong?
so...
One of the next lines in config.asp is this:
If Application(strCookieURL & "ConfigLoaded")
If you're outside of your forum directory, this would load in a new set of application variables. In fact, I'm betting that for every directory in which you use this code, it would load a whole new set of variables.
If you're running this, try pasting this into one of your pages outside your forum and see if you have duplicate sets loaded. I do, but I also have a lot of other junk on that server, so maybe it's just me.
response.write "<table border=""1"">"
Response.Write("<tr><th>APPLICATION VARIABLE</th><th>CONTENTS</th></tr>")
For Each Item in Application.Contents()
Response.Write("<tr><td><font size=""1"">" & Item & "</font></td>" &_
"<td><font size=""1"">" & Application.Contents(Item) & "</font></td></tr>")
Next
response.write "</table>"
I posted a question in the dev discussion area regarding the strCookieURL here.
Sidenote...
<!--#INCLUDE VIRTUAL="/forum/inc_func_common.asp"-->
I believe is already included in inc_header.asp.
|
Edited by - work mule on 11 October 2002 13:02:24 |
|
|
Tmpj
Junior Member
Denmark
467 Posts |
Posted - 11 October 2002 : 14:20:57
|
Nice Work! |
|
|
EvilAndy
Starting Member
Australia
46 Posts |
Posted - 12 October 2002 : 09:21:11
|
I managed to get this code working now, what I now need is some way of directing the appropriate users (based on mlev) to the required pages etc. The code needs to be universal to go along with my login because I need it to be placed on several pages.
So if a user with mlev 0 tries to access the admin page for instance they will be redirected to the login screen that will display an error message of some sort. Likewise if an admin logs in they will automatically be directed to the admin pages etc.
Anyone know how I should go about setting this up? Previously I was able to use a UltraDevs restrict access to page function, although now with the encryted passwords it doesn't appear to work correctly.
Thanks in advance for the help guys, I'm sure other people out there would like to implement similar code! |
|
|
Mike108
Starting Member
United Kingdom
29 Posts |
Posted - 12 October 2002 : 11:27:31
|
does this mod work with 3.4.01?
thanks Mike
|
|
|
alex042
Average Member
USA
631 Posts |
Posted - 12 October 2002 : 14:38:01
|
There appears to be an incompatibility between this and the the header cell image MOD which uses strHeadCellColor & strCategoryCellColor. The table tag is causing the image to tile down the login because of strHeadCellColor being used.
|
|
|
brujo
Average Member
USA
602 Posts |
Posted - 12 October 2002 : 20:20:23
|
has anone else received the following error message when using this mod....
Microsoft VBScript compilation error '800a0411'
Name redefined
/forum/inc_sha256.asp, line 42
Private m_lOnBits(30) --------^
I have searched for it .....but nothing came up.....
I have the inc_login.asp file in the Forum directory and included the inc_login.asp in the inc_header.asp file......
but this is the error I get.....
any suggestions.....
brujo |
|
|
alex042
Average Member
USA
631 Posts |
Posted - 13 October 2002 : 00:00:21
|
quote: Name redefined /forum/inc_sha256.asp, line 42
Looks like you've included inc_sha twice. Take one of the includes out.
|
|
|
deesplay
Starting Member
6 Posts |
Posted - 13 October 2002 : 12:57:33
|
Thanks very much for the mod, I now have it working in the main.
However, I am getting the inc_header displaying accross the top of my webpages, is there a seperate file that will help me get rid of this?
Any help would be appreciated |
|
|
johndgraham
Starting Member
USA
6 Posts |
Posted - 15 October 2002 : 23:25:00
|
Hmm... I can get it to login and logout, but when I'm logged in it still shows the form to login. it's not showing the "your logged in as" I should mention the inc_header.asp that is also on the page does display logged in.
Anyone else come across this? also, @tomic or anyone else, have you created a alternate inc_header.asp file that does not display all of the links?
thanks.
jg |
Edited by - johndgraham on 15 October 2002 23:33:15 |
|
|
johndgraham
Starting Member
USA
6 Posts |
Posted - 15 October 2002 : 23:36:47
|
ahh.. got it. I needed the header inc above the login inc. Now onto making a alternate inc_header.asp file.
|
|
|
padawan
Junior Member
200 Posts |
Posted - 15 October 2002 : 23:50:41
|
quote: Originally posted by johndgraham
ahh.. got it. I needed the header inc above the login inc. Now onto making a alternate inc_header.asp file.
you'll you be so kind as to share the txt files (once you've got yours working) of your inc_login.asp, inc_header.asp, and your mainpage asp? I'm trying to do the same thing and I'm stuck at the same point as you are.
regards,
- padawan |
"...be mindful of the SnitzForce..." |
|
|
johndgraham
Starting Member
USA
6 Posts |
Posted - 16 October 2002 : 00:48:27
|
sure. I've made a inc_header.asp file that essentially has all of the code except the table information. You can d/l it at http://www.madmacusergroup.com/forums/inc_headerJohn.zip
the site I'm working with has been created with Dreamweaver, and I see that snitz creates a couple session variables. Any one know where in the code of the login I can set a couple other sessionVars from the members table? I've added an extra column.
Jg |
|
|
padawan
Junior Member
200 Posts |
Posted - 16 October 2002 : 06:58:43
|
quote: Originally posted by johndgraham
sure. I've made a inc_header.asp file that essentially has all of the code except the table information. You can d/l it at http://www.madmacusergroup.com/forums/inc_headerJohn.zip
the site I'm working with has been created with Dreamweaver, and I see that snitz creates a couple session variables. Any one know where in the code of the login I can set a couple other sessionVars from the members table? I've added an extra column.
Jg
thanks, john.
- padawan
|
"...be mindful of the SnitzForce..." |
|
|
sy
Average Member
United Kingdom
638 Posts |
Posted - 16 October 2002 : 09:09:00
|
quote: Originally posted by johndgraham
sure. I've made a inc_header.asp file that essentially has all of the code except the table information. You can d/l it at http://www.madmacusergroup.com/forums/inc_headerJohn.zip
the site I'm working with has been created with Dreamweaver, and I see that snitz creates a couple session variables. Any one know where in the code of the login I can set a couple other sessionVars from the members table? I've added an extra column.
Jg
Maybe something like that could be added to the universal login mod's ZIP file?
Sy |
The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails
|
|
|
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 16 October 2002 : 13:40:07
|
added this just now, very nice |
De Priofundus Calmo Ad Te Damine |
|
|
Topic |
|