Custom Archives & private post

Creating and modifying plugins.
Post Reply
Gilou

Custom Archives & private post

Post 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 :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Custom Archives & private post

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Gilou

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Gilou

Post by Gilou »

It worked just great :))

many thx :D
Post Reply