Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Site Cookie MOD

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Etymon Posted - 10 March 2006 : 05:15:09

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. <
5   L A T E S T    R E P L I E S    (Newest First)
Etymon Posted - 14 March 2006 : 22:30:50
quote:
Originally posted by squad23

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



You're Welcome! <
squad23 Posted - 13 March 2006 : 15:43:27
This was exactly what iw was looking for :) thank you very much!<
Etymon Posted - 10 March 2006 : 12:31:38
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.
<
Jezmeister Posted - 10 March 2006 : 11:34:37
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?<
tribaliztic Posted - 10 March 2006 : 05:30:26
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 =))
<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000 Version 3.4.07