|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
I like the option to collapse forums (I have no business in the Threads 6.x Discussion, having never used it for instance), and it appears a cookie is set so those forums are still collapsed the next time we visit. It just doesn't seem to always stay that way, tho...
(Can't delete this post any more to "move" it)
Last edited by jgeoff; 01/19/2007 6:46 PM.
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
we used to have favourite forums - which I think is what you are after
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Okay, I'm confirming that collapsed forums don't stay collapsed. This is due to the cookie expiring the same day it's being set, unlike the others which expire in September. Any way we can expand that?
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Hmm, that's odd. My javascript may be a bit off, but it's supposed to not expire for a year. This is the bit of javascript that controls that:
expires = 365 * 60 * 60 * 24;
var expires_date = new Date( today.getTime() + (expires) );
document.cookie = id + "=" +escape( value ) + ";expires=" + expires_date.toGMTString() + ";path=/";
I'll need to tinker with that and see if maybe I'm doing something wrong.
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Here, I'm sharing my cookie with you. All my other non-session ubbcentral cookies expired in September 2007 Name: ubbt_collapsedContent: null%7Ccat5%7C Host: www.ubbcentral.comPath: / Send For: Any type of connection Expires: Monday, January 22, 2007 9:38:22 PM
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Rick - I've been trying to look up details on this, and it seems some take a different root. For example:
//creating expiration date
var now = new Date();
now.setTime(now.getTime() + 1000 * 60 * 60 * 24 * 365)
document.cookie = "name=" + escape(phrase) + ";expires=" + now;
Notice the 1000 (milliseconds) in there. (I've seen some examples with and without the 1000 ms, so I don't know...) Full explanation here
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Thanks. Will need to turn on cookie debugging and test on my devel box and see if that works.
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Ever solve this issue? Collapsed Forums cookies just expire daily, as opposed to everything else...
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Still a (minor, but present) issue in b5...
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
I hate bumping so much, but is this still on a to-do list somewhere? OR - where is the code where I can play around with it myself to see what the solution is?
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Yep, it's still on the todo list. The javascript that sets the cookie is in the ubb_jslib.js file. Still need to tinker around with this. Haven't forgotten, it just kinda keeps getting pushed down a bit
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Yep, it's still on the todo list. The javascript that sets the cookie is in the ubb_jslib.js file. Just played with it, expiring my cookies many times, and it seems that it works properly if you change Line 256 From: expires = 365 * 60 * 60 * 24; To: expires = 1000 * 365 * 60 * 60 * 24; (added the 1000 ms as described above)
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Damn, a mere 7 characters (including spaces) to fix it... maybe for 7.2... :/ But, at least the fix is above for those who want to implement it!
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Dangit, I meant to squeeze that in for 7.1. I may still be able to
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
And here I got off my butt and upgraded my main site already
|
|
|
|
Joined: Jun 2006
Posts: 3,837
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,837 |
Is this the only change required?
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
This will be fixed in 7.1.1, see discussion here
|
|
|
|
Joined: Aug 2006
Posts: 111
member
|
member
Joined: Aug 2006
Posts: 111 |
I just opened my 7.1 file and it is in there with the 1000...
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
Odd, because my 7.1 file isn't and i downloaded it fresh over last weekend...
|
|
|
|
Joined: Aug 2006
Posts: 111
member
|
member
Joined: Aug 2006
Posts: 111 |
Hmm, strange because I didn't add it. I downloaded it on Saturday morning/afternoon, around 10am EST I believe. Yeah, looking at the dates it looks like Rick said this (getting the change into 7.1) on 3/16 and I downloaded it on 3/17. Rick, FYI, you forgot the space after 1000. Not that it makes a difference functionally, but it isn't as pretty. Fred
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
1 members (1 invisible),
859
guests, and
196
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|