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)
 Site Cookie MOD
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Etymon
Advanced Member

United States
2385 Posts

Posted - 10 March 2006 :  05:15:09  Show Profile  Visit Etymon's Homepage  Reply with Quote

Site Cookie MOD
Author: Etymon
Date: March 10, 2006

I'm not really sure if the title is appropriate for the code, but in working with the Universal Login MOD, I was trying to get forum variables to display appropriately and in real time on my external (non-forum) pages within my website.

I created a work-around to the strCookieURL variable found in config.asp.

For a clean install of Snitz 3.4.05 look at line 125 for the following:

strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/"))

To have your forum variables work outside of your forum pages replace the code above with the code below:

if Instr(Request.ServerVariables("Path_Info"), "forum/") = 0 then
      strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/")) & "forum/"
else
      strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/"))
end if


What this is basically saying is, make the cookie URL for the web pages within the forum the same cookie URL for the web pages outside of the forum.

This MOD was created as a result of working with the Universal Login MOD installed. Whether Universal Login MOD is necessary for the Site Cookie MOD to work, I have no idea. Suggestions? Comments? Concerns? Please post below. <

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 10 March 2006 :  05:30:26  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
Hmm... Did I understand this correct?

If you have a page outside the /forum/-folder this help you use the forum cookie?
If all pages are inside the /forum/-folder this would make no change?
(trying to find all ways to deal with my little pop-up-thingy-error found in another thread =))
<

/Tribaliztic
- www.gotlandrace.se -
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 10 March 2006 :  11:34:37  Show Profile  Visit Jezmeister's Homepage  Reply with Quote
I'm probably not understanding at all... but when I've worked with forum variables I've just set cookies to website in the admin pages and had no problems doing it that way... so what is this doing that setting cookies to website in the admin pages doesn't allow you to do?<

Edited by - Jezmeister on 10 March 2006 11:35:24
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 10 March 2006 :  12:31:38  Show Profile  Visit Etymon's Homepage  Reply with Quote
I have the cookie set to website also.

I created some variables that triggered whether or not an image was to be displayed on an external page to the appropriate person according to their Member ID. The problem wasn't that the forum variables and my variables didn't work at all. The problem was that I could not change them in real time.

If I rebooted my computer (at home) the variables did update, but in a live environment I can't tell my host to reboot his IIS everytime I want my variables updated. But, perhaps, in a live environment the variables do update. I really don't know. I am using Personal Web Server on Windows98SE, which is a bit outdated, so I'm working with older technology here.

I was simply testing the pages before I went live when I found that this wasn't working. It would be useful for someone who wants to control content that is both external from the forums and within the forums from within the forum admin section ... in real time.

I don't know how cookies work in a live environment. This is just something that worked for what I was needing it to do.
<

Edited by - Etymon on 10 March 2006 12:33:37
Go to Top of Page

squad23
Starting Member

Netherlands
40 Posts

Posted - 13 March 2006 :  15:43:27  Show Profile  Reply with Quote
This was exactly what iw was looking for :) thank you very much!<
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 14 March 2006 :  22:30:50  Show Profile  Visit Etymon's Homepage  Reply with Quote
quote:
Originally posted by squad23

This was exactly what iw was looking for :) thank you very much!



You're Welcome! <
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07