if (T.data("collapse-save-state") && T.attr("id")) {
var SwitchID = T.attr("id");
if (S)
SEN.setCookie("jcollapsed" , SEN.Utilities.makeStringArrayUnique(SEN.getCookie("jcollapsed").split(",").concat([SwitchID])).join(",") , 1);
else
SEN.setCookie(
"jcollapsed",
$.grep(
SEN.getCookie("jcollapsed").split(",").concat([SwitchID]),
function(value) {
return value != SwitchID;
}
).join(","),
1
);
}
None.
David, I changed both to the stuff you've suggested, did not work :S
There was another bug that I've now found a fix for. Browsers like to slap weird shit at the end of cookies, tripping up my scripts.
Open
/support/global.js and find the method
SEN.GUI.Collapse._collapse, it starts at Line 50.
In that body of that function only, find all instances of
SEN.getCookie("jcollapsed").split(",") and replace them with
SEN.getCookie("jcollapsed").replace(/;[^\b]*$/,"").split(","). (Should be two replacements.)
This alters the script to ignore the weird shit that browsers tack onto the end of the cookie; as a result, the function that powers my Collapse code will accurately parse and append to the "jcollapsed" cookie.
None.
if (T.data("collapse-save-state") && T.attr("id")) {
var SwitchID = T.attr("id");
if (S)
SEN.setCookie("jcollapsed" , SEN.Utilities.makeStringArrayUnique(SEN.getCookie("jcollapsed").split(",").concat([SwitchID])).join(",") , 1);
else
SEN.setCookie(
"jcollapsed",
$.grep(
SEN.getCookie("jcollapsed").split(",").concat([SwitchID]),
function(value) {
return value != SwitchID;
}
).join(","),
1
);
}
Can you do me a favor? Clear your cache and see if you still get the error. If so, type this into your address bar, run it, and tell me what it says in the alert box:
javascript:alert(SEN.getCookie("jcollapsed"));If it says
false, then the first fix I posted for the Turtle Forum Index Collapse isn't working for some reason.
None.
David, I changed both to the stuff you've suggested, did not work :S
There was another bug that I've now found a fix for. Browsers like to slap weird shit at the end of cookies, tripping up my scripts.
Open
/support/global.js and find the method
SEN.GUI.Collapse._collapse, it starts at Line 50.
In that body of that function only, find all instances of
SEN.getCookie("jcollapsed").split(",") and replace them with
SEN.getCookie("jcollapsed").replace(/;[^\b]*$/,"").split(","). (Should be two replacements.)
This alters the script to ignore the weird shit that browsers tack onto the end of the cookie; as a result, the function that powers my Collapse code will accurately parse and append to the "jcollapsed" cookie.
I changed line 65 from
SEN.setCookie("jcollapsed" , SEN.Utilities.makeStringArrayUnique(SEN.getCookie("jcollapsed").split(",").concat([SwitchID])).join(",") , 1);
to
SEN.setCookie("jcollapsed" , SEN.Utilities.makeStringArrayUnique(SEN.getCookie("jcollapsed").replace(/;[^\b]*$/,"").split(",").concat([SwitchID])).join(",") , 1);
I changed line 70 from
SEN.getCookie("jcollapsed").split(",").concat([SwitchID]),
to
SEN.getCookie("jcollapsed").replace(/;[^\b]*$/,"").split(",").concat([SwitchID]),
Collapsed boxes still don't remain collapsed.
EDIT:
Unless I put the replace(/;[^\b]*$/,"") in the wrong area...?
Post has been edited 1 time(s), last time on Nov 10 2010, 10:48 pm by DevliN.
Currently Working On: My Overwatch addiction.
Private Messages
The default PM Reply should be "To All."
When reading a PM in the folder "Sent", there is a "reply to Sender" textfield although the last message in this thread was composed by you.
Done and changed the button text to "Attach to thread", "send to group" or "reply to sender", depending on the PM.
Please report errors in the Staredit.Network forum.
Post has been edited 24 time(s), last time on Nov 11 2010, 2:49 pm by Devourer.
Please report errors in the Staredit.Network forum.
Fixed the Lines-Bug.
Fixed the "First URL does not get parsed inside of encase" bug.
Fixed "Contact/Offline"-offset in epic.
Updated OP.
Post has been edited 2 time(s), last time on Nov 11 2010, 2:38 pm by Devourer.
Please report errors in the Staredit.Network forum.
Err, sorry... fixd.
However, everything above 600 is set to 100% to avoid skin-scretching.
Please report errors in the Staredit.Network forum.
[line=50][line=60][line=70][line=80][line=90][line=100][line=700]
Post has been edited 10 time(s), last time on Nov 11 2010, 3:07 pm by Devourer.
http://www.staredit.net/?p=raffle Raffle now shows the participants.
Fixd lines... again?
Post has been edited 1 time(s), last time on Nov 11 2010, 3:08 pm by Devourer.
Please report errors in the Staredit.Network forum.
The Offline/Online and Contact images still aren't centered.
Also I think this was mentioned before, but the raffle doesn't send a notification to the winner anymore.
Currently Working On: My Overwatch addiction.
Anyone edited the cron tasks?
Please report errors in the Staredit.Network forum.
Would it just be easier to go back to lines being a percent?
Currently Working On: My Overwatch addiction.
Wow Devourer, you've just updated stuff I've been asking for for so long!
None.
David, I changed both to the stuff you've suggested, did not work :S
There was another bug that I've now found a fix for. Browsers like to slap weird shit at the end of cookies, tripping up my scripts.
Open
/support/global.js and find the method
SEN.GUI.Collapse._collapse, it starts at Line 50.
In that body of that function only, find all instances of
SEN.getCookie("jcollapsed").split(",") and replace them with
SEN.getCookie("jcollapsed").replace(/;[^\b]*$/,"").split(","). (Should be two replacements.)
This alters the script to ignore the weird shit that browsers tack onto the end of the cookie; as a result, the function that powers my Collapse code will accurately parse and append to the "jcollapsed" cookie.
I changed line 65 from
SEN.setCookie("jcollapsed" , SEN.Utilities.makeStringArrayUnique(SEN.getCookie("jcollapsed").split(",").concat([SwitchID])).join(",") , 1);
to
SEN.setCookie("jcollapsed" , SEN.Utilities.makeStringArrayUnique(SEN.getCookie("jcollapsed").replace(/;[^\b]*$/,"").split(",").concat([SwitchID])).join(",") , 1);
I changed line 70 from
SEN.getCookie("jcollapsed").split(",").concat([SwitchID]),
to
SEN.getCookie("jcollapsed").replace(/;[^\b]*$/,"").split(",").concat([SwitchID]),
Collapsed boxes still don't remain collapsed.
EDIT:
Unless I put the replace(/;[^\b]*$/,"") in the wrong area...?
The Turtle Forum Index now remembers collapse state, so the specific bug I was attempting to address is now fixed.
If collapsedness is breaking on
other parts of the site (or on the Forum Indexes of other skins), then it would
seem to be because it's saved, but not re-applied when you load the page. Add this to
/support/global.js:
$(function() {
var e = SEN.getCookie('collapsed').replace(/;[^\b]*$/,"").split(",");
var i=0, el = e.length;
for(;i<el;i++) {
if (e[i]) {
hide($("#show_"+e[i]));
show($("#hide_"+e[i]));
}
}
});
It runs through the cookie used by the old collapse code, and collapses all referenced elements when the page loads. I tested; with this new code, Forum Index collapse state is remembered on Epic. It should work for anything that uses the old collapse code.
If the problem is that collapse boxes in posts aren't having their states saved... I don't think the site ever did that, but I could script such functionality if desired.
None.
Fantastic! Works perfectly on Epic.
Now there's just this issue of SEN remembering logins...
Currently Working On: My Overwatch addiction.