WordPress.org

Support

Support » Plugins and Hacks » Plugin: Elegant Category (in)Visibility

Plugin: Elegant Category (in)Visibility

  • Elegant Category (in)Visibility

    This plugin is a more elegant solution to category exclusion. This release is a beta version, so test it out if you’d like, but I can offer no garuntees that it won’t screw things up or even work properly 🙂 It worked fine in my test bed, but so did miniblog.

    It uses filters to change SELECT queries and only adds only one extra query per page, rather than a few hundred. If this method has been done, post a link to it and disregard this plugin. If not, cool, I’m first.

Viewing 15 replies - 1 through 15 (of 26 total)
  • I havent looked totally into yours, but I’ve done something like this:

    http://rummanddan.dk/archives/2005/03/movie-and-category-plugins-updated/

    But there’s room for everybody… Dont dismiss your plugin just because others have been mate…

    What i see of your plugin it is very good, a lot more “in direction” than mine… As I’ve said earlier I use my category plugin as my switch army knife 😀

    Thanks for the heads up. I totally missed that on your site.

    When I activate this plugin I get 404 Not Found errors on all of my pages.

    http://mahune.org/

    I get this error when I I clic on any category name on my sidebar:

    WordPress database error: [Not unique table/alias: ‘wp_post2cat’]
    SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) WHERE 1=1 AND 0=1 AND (category_id = 4) AND post_date_gmt <= ‘2005-04-24 17:31:59’ AND (post_status = “publish” OR post_author = 1 AND post_status != ‘draft’ AND post_status != ‘static’) AND category_id <> 1 AND category_id <> 3 AND category_id <> 4 GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0, 15

    WordPress database error: [Not unique table/alias: ‘wp_post2cat’]
    SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) WHERE 1=1 AND (category_id = 4) AND post_date_gmt <= ‘2005-04-24 17:31:59’ AND (post_status = “publish” OR post_author = 1 AND post_status != ‘draft’ AND post_status != ‘static’) AND category_id <> 1 AND category_id <> 3 AND category_id <> 4 GROUP BY wp_posts.ID ORDER BY not (ID in (45)), post_date DESC LIMIT 0, 15

    and no posts at all.

    Did you guys try downloading the new version? The original version was buggy.

    The version you want is ECiV 0.1.5

    This cleared all problems up on my sandbox, so hopefully it will clear them up on your sites.

    @sasson: I found the root of your problem. A fix is in the works and will be released shortly.

    edit: Ok! ECiV 0.1.6 is ready for download.

    I’m using the latest, still 404’s on my pages when the plugin is enabled. The frontpage works fine tough (and the excluding of categories). I’ve tried disabling all of my plugins but still get the errors.

    I’m mean I don’t get a real 404, but no results are returned. It could be a problem with the SQL query, I’m using MySQL 4.1.8. But looking at the source code it shouldn’t even try filtering single pages.

    I got it working. In function ecg_is_applicable_page() I changed:

    if($key == 'name' || $key == 'p') return FALSE;

    to

    if($key == 'name' || $key == 'p' || $key == 'pagename') return FALSE;

    nice. thanks for the fix najt!

    i wish there was a better way to do what i did in that piece of code, but there’s not.

    kudos to you

    the code is now updated

    There is one more issue. If you publish a post in multiple categories, and even if one of those categories is “marked” to be hidden, the post will be displayed. I think the default behaviour should be that the post is not displayed if any of the categories it is posted in match. Or maybe an option?

    hmm. thanks for the report. i’ll see what i can figure out

    I downloaded the last version and everything is working fine now, thank you. This plugin is exactly what I needed!

    Ups! My pages don’t show anymore, just a “page not found” error!

    Individual pages or what? Did the problem just arise after working fine?

    I use the plugin with the bug repair and my pages get 404 error. I only can see the post but not the pages.

    I tried to modified the plugin but I can’t repair it. Can any one helps me?

    I am making test on http://www.catarroja.gondubon.com

    Thanks!

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Plugin: Elegant Category (in)Visibility’ is closed to new replies.
Skip to toolbar