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 / Classic ASP versions(v3.4.XX)
 Why - strCookieURL
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

MoLaker
Starting Member

20 Posts

Posted - 25 September 2004 :  10:39:24  Show Profile
While messing around with methods to integrate Snitz into an existing website, I started looking at the variable strCookieURL. This variable is assigned around line 128 in Config.asp and then used to attach a path to the Application variables.
strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/"))
strVersion = Application(strCookieURL & "STRVERSION")
strForumTitle = Application(strCookieURL & "STRFORUMTITLE")
strCopyright = Application(strCookieURL & "STRCOPYRIGHT")
strTitleImage = Application(strCookieURL & "STRTITLEIMAGE")
etc.....
My question is - why is it done this way? The only purpose I can determine is to give some versatility in the directory the forum is intalled. It is because of the way strCookieURL is assigned that it is difficult to use, for example, inc_header.asp in a page outside the forum's directory.

In experimenting, I tried assigning a fixed value to strCookieURL - in this case, strCookieURL = "/forum/". So far, it seems to work.

Has anyone else messed with this variable in such a way? Can anyone see a downside?

Mo

Edited by - MoLaker on 25 September 2004 10:51:25

MoLaker
Starting Member

20 Posts

Posted - 26 September 2004 :  15:43:03  Show Profile
Should I post this in Help: MOD Implementation?

Mo
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 26 September 2004 :  16:21:27  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by MoLaker

Should I post this in Help: MOD Implementation?


No. The question is not related to any mod.

I'm not completely familiar with the way strCookieURL is used, but I see no problem with what you're doing.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 27 September 2004 :  14:29:46  Show Profile  Visit masterao's Homepage
If Im not mistaken, the cookieurl is designed that way to allow multiple forums intstalled in separate folders on the same site (just a guess, though).

I have myself changed the strCookieURL-variable to strCookieURL = "/", as that helps when using the forum-functions across the entire website.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 27 September 2004 :  14:58:48  Show Profile  Visit HuwR's Homepage
quote:
Originally posted by masterao

If Im not mistaken, the cookieurl is designed that way to allow multiple forums intstalled in separate folders on the same site (just a guess, though).


Yes, that is what it is for, it relate the Applicaion variable with the foum directory. If you don't have more than one forum you could just set strCookiURL to an empty string, it would not matter.
quote:

I have myself changed the strCookieURL-variable to strCookieURL = "/", as that helps when using the forum-functions across the entire website.


It will work whatever you set it too, as long as each forum has a different strcookieURL otherwise they would have to share the same setup.
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 27 September 2004 :  16:35:33  Show Profile  Visit masterao's Homepage
Thanks for confirming my hunch, Huw. I know that this has been discussed before, but I was a little pressed for time to do a search.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

MoLaker
Starting Member

20 Posts

Posted - 27 September 2004 :  20:16:03  Show Profile
Thanks for the input. I had about decided it was for accomodating multiple forums. Since I don't plan to have more than one at this time, it will make it a lot handier to use inc_header.asp throughout my website. I wanted to set up some user screening and the Snitz forum login seemed made to order if I could get the Application variables under better control.

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