In preparation for the upcoming release of WordPress 2.1, I’ve prepared a new version of the Post Levels plugin. I’ll release the final 1.1 once the WordPress 2.1 is released. If you’re running 2.1 already, please let me know if you find any issues.

Download

Post Levels version 1.1b

Installation

  1. Save the post-levels.php file in your wp-content/plugins directory.
  2. Activate the plugin in the WordPress UI

You must be running version 2.1 of WordPress. In theory, it won’t break older versions, but won’t really do much.

New Features

  • Private Pages: You can now have private pages, just like posts
  • Private Posts show up in Archive counts & Next/Prev links: Corrects a long standing bug where private posts weren’t counted. Unfortunately, this bug still affects categories
  • Removed HTTP Auth for private RSS feeds: This didn’t work particularly well for people, it’ll be replaced before the final relase (see below).
  • Other minor fixes …

Upcoming Features

  • RSS for private posts: This time it’ll really work :)
  • Private posts in Category counts: This looks like it’ll require either editing your theme, or using the Sandbox theme.
  • Tell users there are private posts: Allow non-logged in users to know there are hidden posts
  • Category-based level: Set default levels for certain categories
  • Level quick tag: Allow some kind of shortcut for setting the post level

Update: Version 1.1b2 should fix the post doubling and PHP4 issues

Update: Final version available

  • Km
    Great!
  • Joefish
    I'm glad to see you're working on a new version. :) That's fantastic. I love this plugin. I just tried out your version 1.1b on my shiny new WP2.1b2 blog and encountered an error with stripos(). That's a PHP5 function, isn't it? My host is PHP4 only. Will new versions of the plugin be only for PHP5?
  • @Joefish: Oops. I didn't realize that stripos was PHP5 only (I do very little PHP coding these days).

    I'll fix this in the next version, but until then, replace stripos with strpos and it should work.
  • Thank you for the plug in, I downloaded the newer version and tried it on my upgraded WP.2.0.6 (which I thought was the latest) and it doesn't seem to work propertly. I get the following error:

    Fatal error: Call to undefined function: stripos() in /mnt/w0600/d28/s04/a000pzyk/www/ethan/nfblog/wp-content/plugins/post-levels.php on line 177

    Any idea what I am doing wrong? Also I had the previous version of the post levels which did not give me that error but was hiding my archived dates which is why I upgraded the post Level plugin, any suggestions? thank you for your time and hard work
  • Nessa: Sounds like your host isn't running PHP5 either, you can try to find and replace 'stripos' for 'strpos' -- but I would bother, since you have WP 2.0.6, and the Post Levels beta won't fix your issue.

    Wordpress 2.1 will be out by the end of this month, as will the new Post levels, when you upgrade both, your archives will be correct.
  • Ah, cool. I'm glad I'm not getting left behind. I swapped stripos() for strpos() and the plugin works the way I would expect. Unfortunately, I can't use it right now. I'm having a few other issues I don't think are at all related to Post Levels.
  • Alphager
    I upgraded Wordpress to v. 2.0.6 and postlevels seems to have stopped working: although i am at level 10 and all posts have a userlevel lower than that, i see no posts...
  • Your timing couldn't be better. Keep stroking on telling non-reg's there's good stuff inside!

    Where's the donation link?
  • Rod
    When I visit my site logged in as the admin, I see multiple copies of the same post with the plugin activated. When I log out or if I deactivate the plugin, the posts disappear. Any ideas?
  • Rod
    I turned off my other plugins to see if anything was interfering with post-level and had the same problem with multiple copies of the same post showing even when I logged in with a different user account. Latest version of WP, PHP5.

    Any ideas?
  • Same problem, multiple copies.
    I had to disable the plugin, I hope it will be solved in the near future, as I like the stuff :)))
  • I upgraded to 2.1 and had, as others report, multiple copies of all my posts dating back to 2004. Resolved easily by switching this plugin off. Will keep checking for an update that fixes the problem, many thanks.
  • Hi there... sorry if this isn't the place to ask questions - if it is - is there a way of setting the default post level so it is 0, or 1 or whatever, rather than public?

    Sorry if I'm being dense!

    Cheers for the plugin.
    A.
  • I'm really sorry - I completely ignored the configuration page in the admin section.

    I'll get my coat...

    Still - thanks for the plugin!
    A.
  • ch
    This is by far my very favourite plugin. I just upgraded to the lasest version of WP, then installed this plusin and I get this error:


    Fatal error: Call to undefined function: stripos() in /home/.wacky/jkv_spt/purplegoddessinfrogpyjamas.net/wp-content/plugins/post-levels.php on line 177

    Can you tell me how to fix this? I'm not a developer so I didn't really know what to fix. I already tried deactivating all other plugins and verified that this is in fact the plugin causing this error. But it's the one plugin I love so much! I must make it work :) Thank you so much.
  • Charlie
    How would we go about editing our theme to work around the categories not showing up?
  • Charlie
    Oh, and something I noticed is that even if the spot is left empty or something else is put there, Private is still appended to the title of private posts.
  • Oh! Sorry, I hadn't read the other posts before asking my question. I swapped strpos for stripos and it seems to be working now. Although I, too, am seeing 'Private' at the beginning of my posts, too.
  • Michelle
    Same here... running wp 2.1, on required versions of PHP/MySQL, and get duplicate posts/pages when this plugin is activated. I've tried swapping strpos/stripos and it altered the nature of the problem (from repeating content on the pages to repeating the page listing in the sidebar) but didn't fix it. Please let me know when this is fixed, I love the plugin and look forward to getting it up and running again! Thanks :-)
  • Alex
    Hi Fil,

    I'm new to all this, and maybe this is dealt with in some documentation I can't locate, but would your plugin allow me to set up my blog so that everyone could read the posts, but only registered users could comment on them?

    Thanks,
    Alex
  • Hi, I'm having the same problems as everyone else here. After I updated to Wordpress 2.0.6, user levels stopped working for eveyrone except me as admin running post-level 1.0. Now, that I've updated to Wordpress 2.1 and post-level 1.1b I just get the error message (line 177) and nothing else. I'm not really very php savvy, so I didn't attempt to go in and try to figure out how to fix it.
  • Final 1.1 -- it should fix these issues!
blog comments powered by Disqus