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: General / Current Version (Old)
 integrating forum with existing site login
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 23 April 2001 :  18:56:26  Show Profile  Visit Gremlin's Homepage
Thers actually an admin screen to change cookies from Forum only to website. Its in the "Main Forum Configuration" Screen.

I had posted a large reply to this yesterday, but it got lost when my ISP's DNS servers decided to take a break on me just as I hit Post

My suggestion is to simply update the Snitz cookie dictionary from your main login page using (haven't tested this solution, but it, or a variation of, should work I think)

Response.Cookies(strUniqueID & "User")("Pword"))
Response.Cookies(strUniqueID & "User")("Name"))

You may also find you need to include config.asp in your login page to ensure all your forum variables are available on your login page. This should cause Snitz to "assume" the user is logged on when they get to the forum page, you'll need to update the Cookie to match the users relevant record in Snitz Member Database ie

Pword = FORUM_MEMBERS("M_PASSWORD")
Name = FORUM_MEMBERS("M_NAME").

Snitz login code can be found in inc_top.asp and it uses a function called DoCookies (?) from inc_functions.asp

Edited by - Gremlin on 23 April 2001 18:59:02
Go to Top of Page

SportsLeak
Starting Member

6 Posts

Posted - 23 April 2001 :  20:26:39  Show Profile
Thanks evereyone for the responses. Ferdie,

quote:

I went to config.inc and change the strCookieURL value to:
strCookieURL = "/"
And that does it..
Hope it helps.

Ferdie.


it did help, thanks.

Gremlin, You seem to have a good bit of knowledge about cookies and offered a diffent solution. Do you know of any issues that may arise by using strCookieURL = "/"?

Doug G,
quote:

Park your mouse over the powered by graphic (or link) at the bottom of the page. The tooltip will tell your version.


Thanks, now i know i am running 3.1 final


Thanks again everyone.

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 23 April 2001 :  21:29:29  Show Profile  Visit Gremlin's Homepage
I cant think of any real problems that setting the cookieURL to "/" will cause providing you remember that you've changed it manually and not through the admin screens. Of course when upgrading to future Snitz versions you are going to have to ensure that you dont overwrite the change to config.asp accidently.

I'd suggest if you haven't got many users on your forums yet, to reverse your change to config.asp and then go use the admin screens to set the cookie to Website. Less hassle for you in the long run i think

Go to Top of Page

SportsLeak
Starting Member

6 Posts

Posted - 25 April 2001 :  22:57:40  Show Profile
Gremlin, I made the change thanks for the quick response.

I dont want to press my luck but now i have a new question, how do i add a field to the register page? I know i have to make put <inpute type=text name="referredby">
now where would i have to add rs(referredby)=request("referredby")?
I have add this to the register.asp, inc_profile.asp, and even config.asp but i cannot get the input into the database.

I added the field to the forum_config table

What does "name" mean here? The below is on the reqister.asp page
strSql = strSql & ", " & "'" & ChkString(Request.Form("YAHOO"),"name") & "'"

thank agian for any help you could provide

on edit i changed do to does

Edited by - sportsleak on 25 April 2001 22:59:34
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous 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.26 seconds. Powered By: Snitz Forums 2000 Version 3.4.07