Page 1 of 1

Custom Archives & private post

Posted: Sun Jan 15, 2006 6:48 pm
by Gilou
Hello,

I installed the custom archives plugin but it shows all posts including the private ones (Myslef,coauthor) even when not logged in :roll: how can i remove such links from the plugin ?


thaaanks :)

Re: Custom Archives & private post

Posted: Sun Jan 15, 2006 7:04 pm
by garvinhicking
Actually the plugin was not yet updated to reflect serendipity 0.9's new features. I've just changed that and committed to CVS as version 1.5.

You can also find the updated plugin file here: http://nopaste.php-q.net/184857

Regards,
Garvin

Posted: Sun Jan 15, 2006 10:57 pm
by Gilou
Thx for you quick answer :)
I tried the link, updated and tested it.

It doesn't show any longer the private entries but there is no more split of categories, and the sort is somehow wrong, the default page for archives doesn't show the search bar :roll:

may be somethin' wrong with my update ? my blog here

Posted: Mon Jan 16, 2006 12:45 pm
by garvinhicking
You were right, there was a bug left. You can replace this:

Code: Select all

                case 'category':
                    $key = $entry['category_name'];
                    break;
with this:

Code: Select all

                case 'category':
                    if (isset($entry['categories'][0])) {
                        $key = $entry['categories'][0]['category_name'];
                    } else {
                        $key = $entry['category_name'];
                    }
                    break;
HTH,
Garvin

Posted: Mon Jan 16, 2006 2:31 pm
by Gilou
It worked just great :))

many thx :D