Problem with Bar Sinister THEME and ToDo/Project-List

Skinning and designing Serendipity (CSS, HTML, Smarty)
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

Post by chrisT33 »

i've done that :(


@judebert - thanks :roll:
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I just sent the working version to CVS. I tried it out on my site. First I duplicated your problem. Then I fixed it and verified the solution.

This was a little trickier than expected. The thing is, the OPENING div was only output if the category existed in the database table. But we started with category 0. That's not usually a valid category, but it *is* a valid parent. So we wouldn't output the opening div, but we would output the closing div.

I just made a variable to keep track of whether the opening div was printed, then checked before printing the closing div.

Let me know if this fixes it for you, chrisT33.
Judebert
---
Website | Wishlist | PayPal
chrisT33
Regular
Posts: 43
Joined: Wed Sep 20, 2006 9:36 am

Post by chrisT33 »

judebert i owe you a beer Image


with Categorically view it works PERFECT


with JS the projects don't hide, but that doesn't matter anymore... i'l use the simple Categorically view :)


thanks once again judebert :oops:
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I'll take the onion rings, thanks. :lol:

I'll bet the JavaScript problem is because I modified the category ID. I'll look at that again sometime, but JS is my weakest language.

Sorry it took so long. Glad we got it!
Judebert
---
Website | Wishlist | PayPal
Post Reply