Arkiv över kategorin 'Meta'
Description
Category Exclusion lets you exclude categories depending on user role and view.
Each category is assigned a set of properties that lets you control in what places and from whom it should be excluded. Here is a list of describing the properties:
- Treshold controls which users have access to a post. A post is invisible to the user if it belongs to a category with a higher treshold than the user’s role.
- Home controls which posts are shown on the main page. Posts belonging to a category with the home property disabled never show up on the main page.
- Archive controls which posts are shown in the archives – the category archives are not affected by this property. Posts belonging to a category with the archive property disabled never show up in the archives.
- List controls which categories have a link in the category list (presumably in the sidebar).
- Search controls which posts are available for search. Posts belonging to a category with the search property disabled never show up in search results.
- Feed controls which posts are show up on in syndication feeds. Posts belonging to a category with the feed property disabled never show up in syndication feeds.
NOTE: The permissions mechanism in WordPress 2.0 is not a pure role system but a role/level hybrid. For instance all default roles are subsets of eachother. I utilize this fact in order to simplify the plugin.
History
Category Exclusion is a fork of Ryan Poe’s no longer maintained Elegant Category (In)Visibility.
Changelog:
2006-01-15, Version 0.2 - Compatible with PHP 4.1.1 (not tested with earlier versions)
2006-01-11, Version 0.1
- added a treshold restriction I borrowed from Keith McDuffee’s Category Visibility
- hiding of links from the category list (in the sidebar), either explicitly with the “list” property, or implicitly by the “treshold” restriction
- “author” and “date” properties are combined into the new “archive” property
Known problems
- Previous and next links in the single post view are note filtered. This is not yet allowed by WordPress.
- This plugin may cause dead links to chronological archives if all posts have too high tresholds for the user. Fixing this requires new hooks in WordPress.
Download
Category Exclusion 0.2 (for WordPress 2.0)
Category Exclusion 0.1 (for WordPress 2.0)
I made a number of improvements to Keith McDuffee’s Category Visibility WordPress plugin version 0.31.
My changes include a security fix, performance boost and several bug fixes.
Download
Category Visibility 0.31-mp2.0 (requires WordPress 1.5.2)
Category Visibility 0.31-mp1.1 (requires WordPress 1.5.2)
ChangeLog
From 0.31-mp1.1 to 0.31-mp2.0:
- Makes at most 1 extra database query per page display – compared to the original 0.31 which can realistically make over a hundred
- More efficient filtering of the category list
From 0.31-mp1 to 0.31-mp1.1:
- Fixed an SQL syntax error
From 0.31 to 0.31-mp1:
- Big reduction in number of database queries
- Filter feeds for user levels
- Make frontpage display the last 10 visible posts
- Filter single view properly
- Make archive flag not affect category view
- Make new categories visible to all by default
- Distinguish between level 0 users and anonymous users
- Don’t hide Pages by mistake
- Doesn’t break categories not visible on front page
Darcs repository: http://tova.fena.se/darcs/category-visibility/ (not browsable, sorry)
Other patches
I also made some patches that depend on changes to WordPress itself. These are not merged in the darcs repository.
Make next/previous links refer to visible posts
When you click a link to an post not visible to you, you end up at the 404 page. This renders the
get_next_post()andget_previous_post()almost useless. To fix this I plantedposts_joinandposts_wherehooks in those function, letting them take advantage of the “visible10” patch above.template_functions_links_1.5.1.2_mp001_hookup.patch (Ticket #1442)
Don’t link to archives without visible posts
Here is a pair of patches for filtering the chronological archives links through the Category Visibility plugin. This change removes the effectively dead links to chronological archives for which you don’t have access to any of the posts.
A prerequisit for this to work is that
get_archives()has to have filter hooks forarchive_joinandarchive_where. It also builds heavily on my previous patches, none of which has been incorporated into official CV as of now.category_visibility_0.31_mp006_archive_links.patch
template_functions_general_1.5.1.2_mp001_hookup2.patch (Ticket 1368)403 Access Forbidden page
It’s only sensible that when Category Visibility denies you access from a page, you should be shown an HTTP 403 Access Forbidden error message. So I implemented that. Unfortunately WordPress does not support 403 pages, so I had to make patches for that too.
category_visibility_0.31_mp008_403_support.patch
wp_blog_header_mp001_403_support.patch
functions_mp001_403_support.patch
Knas och Polish
- Inte presentera bilder som “justerad text”
- Snygga till gästboken så att den ser ut som nånting
- Komplettera översättningen (arkiv)
- Bilder:
- Stora och små bilder på fram- resp. enkelsida
- Lägg in “Om Tova” i bakgrundsbilden på nåt vis
- Image Headline genererar bilder med olika höjd
- Skalning av bilder:
- Få IImageBrowser att skapa tumnaglar på fena
- Skala ner uppladdade bilder till någon maximal upplösning
- B-one tycker kanske inte om att behandla stora bilder?
- Ändra ordning på länkkategorier
- “Nivåskydd” för bilder
- Frida hade problem att hitta ut från profilsidan
Importera
- Gamla bilder
- Gamla dagboken
- Gamla gästboken
Utbyggnad
- Bildarkiv?
- Släktträd
- Statistik
Färdigt
- Rosa färgschema
- Dölj dagboken för oinloggade
- Bilder i inläggen
- Skilj på oinloggade och nivå-0-användare
- Gästbok
- Översätt till svenska
- Uppgradera till WordPress 1.5.1
- Städa bland meta-länkarna
- Automatiska bild-rubriker
- Uppgradera till WordPress 1.5.1.1
- Stöd för många bilder i Image2post
- Flytta till tova.fena.se, så nu är alltid nätplatsen uppe!
- Bilder i arkiven
- Uppdaterat Textile från version 1 till 2.4
- Kommentarer ska inte behöva modereras
- Bildersättning i sidokolumnen
- Fixat <=10-inlägg-per-sida-problemet i CV
- Bildrubriker i arkiv
- Gjort om gästboken till ett “inlägg” under ”övrigt” istället för en “sida”
- Skapat en länkkategori som heter “Sidor”
- Filtrera nästa- och föregåendelänkarna genom CV
- Uppgradera till 1.5.1.2
- Skapat Category-visibility-sida, med patchar, på engelska, under Meta
- Metakategorin är synlig för anonyma, men dyker inte upp på framsidan eller i arkivet
- Oinloggade kan se inlägg under Meta
- Filtrera arkivlänkar genom CV
- Filtrera feeds genom CV
- Uppgradera till 1.5.1.3
- Ordentlig 404-sida
- Ordentlig 403-sida
- Uppgradera till 1.5.2
