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: MOD Implementation
 Sortrder cannot exactly rember the setting.....
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

suona
Junior Member

Taiwan
121 Posts

Posted - 07 June 2005 :  11:32:37  Show Profile  Visit suona's Homepage
I have copied somewhere(I don't rember whre I get it) a little MOD, used in topic.asp, the sort the order of all replies when viewing some topic.

Here's one part of the MOD:


'####################################
sortorder = request("sortchoice")

if sortorder <> "" then
Application.Lock
Application(strCookieURL & "strSortchoice") = sortorder
Application.UnLock
else
sortorder = Application(strCookieURL & "strSortchoice")
end if
'####################################


normally, after setting the sortchoice (in another part), the program above should rember the setting, right ?

when I enter the topic next time, I can observe tha the program listed above, will get a null sortorder, since the sortchoice is empty when I first enter the topic.

and the program lised above will use the "else" condition, to retrive the value of sortorder.

this works, but not all the time, that's my problem.

some times, the forum can remember the sortorder settings for days, but someday , it can't remember, and reset to initial setting.

is the program listed above have something wrong ?

I'm a amateur WWW site builder.

And Sorry for my poor english .....



Edited by - ruirib on 07 June 2005 13:03:09

suona
Junior Member

Taiwan
121 Posts

Posted - 12 June 2005 :  22:16:37  Show Profile  Visit suona's Homepage
I've searched the web seems the " Application " affect the whole forum. One member's action will affect all member.

Can anyone tell me, how to change the code from " application " to " permanent cookie ?" , thus each member can have their independant setting ?

I'm a amateur WWW site builder.

And Sorry for my poor english .....


Go to Top of Page

suona
Junior Member

Taiwan
121 Posts

Posted - 15 June 2005 :  11:50:26  Show Profile  Visit suona's Homepage
Solved by using cookie.....

I'm a amateur WWW site builder.

And Sorry for my poor english .....


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