NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Jan 8, 2012 14:18:46 GMT -8
Okay we're getting closer. It hides the non permission boards now but it won't let me into the correct board. (It doesn't hide it but it won't let me in either.)
|
|
|
Post by Wormopolis on Jan 8, 2012 17:22:23 GMT -8
the cookie isnt being set correctly for some reason...
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Jan 8, 2012 17:54:31 GMT -8
So I need to dump the cookies and start over or is it not setting it correctly for everyone?
|
|
|
Post by Wormopolis on Jan 8, 2012 18:45:04 GMT -8
aaaaaaand.. recopy. it was actually the div by usergroup code that was overwriting the cookie. postchoke code is going to have to be updated as well.
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Jan 9, 2012 10:00:48 GMT -8
Yay at last it works. (Now my remaining issue is specific to my board so I wouldn't expect a complete do-over. The boards get hidden like they should be and it kicks the correct people out but if a category gets collapsed and then expanded again the hidden board is revealed but it doesn't matter since they can't get in.)
|
|
|
Post by Wormopolis on Jan 9, 2012 19:27:12 GMT -8
ooh yeah. because the row gets set to display none, and the cat code sets it back to visible. I guess we could try doing a remove of that row, but Im not sure what impact that would have.
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Jan 10, 2012 6:17:47 GMT -8
Nah like I said its fine, I didn't really expect a re-work. I'll figure something out. (Like hide them and then provide a link and password in one of your squirley divs)
|
|
|
Post by Wormopolis on Jan 10, 2012 18:41:18 GMT -8
it might be easier then that. we could add a class tag into the hidden rows and have the cat collapse code ignore any hidden rows with that class
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Jan 12, 2012 7:08:25 GMT -8
hmmm okay why not! Let's push the boundaries of coding once more!
|
|
|
Post by Wormopolis on Jan 12, 2012 21:23:49 GMT -8
change this line
iTrw[j].style.display='none';
to
iTrw[j].style.display='none'; iTrw[j].className+=' HIDE';
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Jan 13, 2012 11:51:48 GMT -8
nope. Still coming back on the collapse/expand.
|
|
|
Post by Wormopolis on Jan 13, 2012 16:29:04 GMT -8
yeah that was just part one. next you have to edit your collapse code:
hiddenCat.style.display = collapse;
becomes
if (!hiddenCat.className.match(/HIDE/)) hiddenCat.style.display = collapse;
|
|
|
Post by Wormopolis on Jan 13, 2012 16:39:13 GMT -8
and that rgx line needs to be fixed again. I apparently didnt put it into the first post the last time to recopied.
|
|
NetMaster
Code Helper
"Get caught in my web!"
Posts: 305
NetMaster said 0 great things
|
Post by NetMaster on Jan 14, 2012 6:52:31 GMT -8
Perfect Wormo! It works!
|
|