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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Universal Login for Snitz 3.4.03
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 13

work mule
Senior Member

USA
1358 Posts

Posted - 11 October 2002 :  12:14:49  Show Profile
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
Go to Top of Page

Tmpj
Junior Member

Denmark
467 Posts

Posted - 11 October 2002 :  14:20:57  Show Profile
Nice Work!
Go to Top of Page

EvilAndy
Starting Member

Australia
46 Posts

Posted - 12 October 2002 :  09:21:11  Show Profile
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!
Go to Top of Page

Mike108
Starting Member

United Kingdom
29 Posts

Posted - 12 October 2002 :  11:27:31  Show Profile  Visit Mike108's Homepage
does this mod work with 3.4.01?

thanks
Mike

Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 12 October 2002 :  14:38:01  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
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.



Go to Top of Page

brujo
Average Member

USA
602 Posts

Posted - 12 October 2002 :  20:20:23  Show Profile  Visit brujo's Homepage
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
Go to Top of Page

alex042
Average Member

USA
631 Posts

Posted - 13 October 2002 :  00:00:21  Show Profile  Send alex042 an AOL message  Send alex042 a Yahoo! Message
quote:
Name redefined
/forum/inc_sha256.asp, line 42


Looks like you've included inc_sha twice. Take one of the includes out.
Go to Top of Page

deesplay
Starting Member

6 Posts

Posted - 13 October 2002 :  12:57:33  Show Profile
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
Go to Top of Page

johndgraham
Starting Member

USA
6 Posts

Posted - 15 October 2002 :  23:25:00  Show Profile  Send johndgraham an AOL message  Send johndgraham an ICQ Message
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
Go to Top of Page

johndgraham
Starting Member

USA
6 Posts

Posted - 15 October 2002 :  23:36:47  Show Profile  Send johndgraham an AOL message  Send johndgraham an ICQ Message
ahh.. got it. I needed the header inc above the login inc. Now onto making a alternate inc_header.asp file.

Go to Top of Page

padawan
Junior Member

200 Posts

Posted - 15 October 2002 :  23:50:41  Show Profile
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..."
Go to Top of Page

johndgraham
Starting Member

USA
6 Posts

Posted - 16 October 2002 :  00:48:27  Show Profile  Send johndgraham an AOL message  Send johndgraham an ICQ Message
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
Go to Top of Page

padawan
Junior Member

200 Posts

Posted - 16 October 2002 :  06:58:43  Show Profile
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..."
Go to Top of Page

sy
Average Member

United Kingdom
638 Posts

Posted - 16 October 2002 :  09:09:00  Show Profile  Visit sy's Homepage  Send sy a Yahoo! Message
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

Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 16 October 2002 :  13:40:07  Show Profile  Visit PeeWee.Inc's Homepage
added this just now, very nice

De Priofundus Calmo Ad Te Damine
Go to Top of Page
Page: of 13 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07