PostLevels2 v0.10.1 Bug Fix Release

  Post Levels 2 v0.10.1 Beta (8.2 KiB, 214 hits)
You need to be a registered user to download this file.

Visit the Change Log (NOTE: You must register for a user account on the bugtracker, and you may wish to filter for only Post Levels related changes).

I’d like to thank Katy and Sine for pointing out bugs that were addressed in this release.  If you have any feature quests, please make them on the bug tracker (link above) or on the Disqus conversation thread.

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

  • ko0ty
    I'm using 2.8.4 on my http://twentyfourcarat.net blog and it works fine ... BUT I tested this plugin with one of my newer WP blogs using the same version and it doesn't work properly.
  • John
    I perfomed the if( $postlevels_post_preview == "none" )
    fix and the Post Preview is now workign correcty.

    I guess the two problems I'm getting now is an error at the top of my pages now:
    SELECT * FROM wp_users WHERE ID = 1 LIMIT 1--> class="home page page-id-7 page-template page-template-default"> . It appears thay maybe there is a un-wanted character somewhere in your code.

    Also when trying to access my RSS Feed I get the following error:

    Warning: Cannot modify header information - headers already sent by (output started at /home/sbs/public_html/wp/wp-content/plugins/post-levels.php:481) in /home/sbs/public_html/wp/wp-includes/pluggable.php on line 865

    WOuld you be able to help me resolve these issues?
  • x11tech
    Sorry, I've been under water with responsibilities. (Employer changing what we sell, so I have to learn a whole new range of products, doing a data install for a bank and I've spent a large part of the last two months at the customer site, engaged and planning a wedding, and the holidays have snuck up on me.)

    I've yet to test this with the latest 2.8.4. I think someone said that they tested this with an earlier version of 2.8.1 or 2.8.2 and had no problems. Unfortunately, I cannot firm or deny that.

    I cannot promise anything, but if you want to start by telling me your website address and tell me what plugins you have installed (and does this plugin work when you uninstall all other plugins) we'll have somewhere to start.

    I do not intend to abandon this, but with Nortel going out of business and the future marriage plans, life has been hectic (all in good ways, but it limits my programming time on this project.)
  • John
    Just left a comment in the other thread. THis is a great plugin and would hate to see it die. Is 10.2 close?
  • adambot
    this may be a dumb question, but how do i set a user to be a level 2 rather than level 1?

    thanks!
    Adam
  • There's a tab under Users called "user levels."
  • adambot
    Thanks! I'm still getting used to the new layout... Any word on when .10.2 is going to be available? Also -- is it going to be posted up on the wordpress.org site?
  • x11tech
    I do not intend to every post this on wordpress's website. 0.10.2 hasn't been released because there's only 1 small bug fix (which I posted somewhere... John (below) referes to it.)

    I'm willing to do some minor troubleshooting for people, but until 2.9 is released I'm not promising any new releases. I do intend to continue the plugin (I need it for my personal blog), but until either my life settles or 2.9 is released, code changes will come slowly if at all.

    If you code and want to submit changes to be published, I'm happy to credit code fixes and improvements.
  • x11tech
    I've not done any looking at what the future of WordPress holds... With some of the upcoming major re-writes in the WordPress API, I'm going to suspend all work except bug fixes on this plugin for the time being.

    Once 2.9 is released, I'll begin looking at bringing this plugin current for 2.9.

    I apologize if this interferes with anyones plans to upgrade their WordPress installation.
  • It's ok, I'll wait. Thanks for your efforts!

    Also, did you mean you didn't know how the excerpt feature works technically (as in the code) or just how it generally works (to get it to show up in your blog)?
  • x11tech
    I've never used the teaser feature in a blog, so I don't know how it's supposed to work (or how the plugin was intended to interact with the feature). Not the code, but the appearance and putting an excerpt vs teaser post up on your blog.

    I have an idea of how a excerpt post looks, but teaser vs excerpt is where I'm confused.
  • ko0ty
    I think the teaser is the same as an excerpt except in the plugin, it's viewable by the general public but they must login to view the rest of the entry.

    To use the "teaser" in Post Levels, you have to enter it in the "excerpt" field in the WP interface.
  • CJ
    Is there a way to get the categories to show in the sidebar when the posts are private? http://www.creativetrainingtech.com/ctt

    Thanks!

    CJ
  • x11tech
    Not in the plugin that I've coded. Sorry. The plugin modifies all SQL queries related to posts.
  • Hello again :)

    On my blog (www.barmen.nu) you can see the teaser bit working, partly. All the posts are marked private, you only get a message stating that you need to log in and get access. If you log in (send me message and you could get a user) and get the proper user level access you would see the post.

    The Teaser function, should print both the topic of the post, plus a few words or sentences from the post and then cut it off, like for instance:

    HEADER HEADER HEADER
    This is the post of this blog which is nice ... log in to read the rest.

    I dont know what the teaser vs excerpt was supposed to be, but why dont we settle for using title, teaser and none? Should that not suffice?

    Another error came my way though. If you look at the RSS on http://www.barmen.nu/feed/ it fails with:

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/barmen.nu/htdocs/wp-content/plugins/post-levels.php:482) in /var/www/barmen.nu/htdocs/wp-includes/feed-rss2.php on line 8
    http://www.barmen.nu Privat hjemmeside for familien Silje, Stian, Sondre og Samuel Barmen Sun, 25 Jan 2009 17:40:05 +0000 http://wordpress.org/?v=2.7 en hourly 1 http://www.barmen.nu/privat-blogg/sondre-under-... http://www.barmen.nu/privat-blogg/sondre-under-... Sun, 26 Apr 2009 09: ..........

    Thanks!
  • x11tech
    http://www.datarave.net/zfh/feed/

    I don't get the error. So I don't have any way of figuring out what else you're running that is causing this problem.

    I can tell you that the plugin does send headers... If you want to tell me what version of WP you're using and try running the plugin without any other plugins active and tell me if it works that way... I'd appreciate it. I cannot guarantee that I'll be doing any coding to fix interactions with other plugins though. Sorry.
  • What version of Wordpress are you using? I couldn't get the teaser to work!
  • x11tech
    2.7

    I'm not sure how teaser works at all, so I cannot guarantee that it even works.
  • x11tech
    Well, there's a specific mode that Fortez put in to his plugin called "excerpt mode" and this is different than "teaser mode." Since I don't use either feature, I'm not sure how they're supposed to work and I'm hoping that someone who uses these features will be able to help me so that I can fix any issues that may have been created by me when I "took over" this project.

    You're the second person who indicated that 2.7.1 breaks this plugin. It'll take me a while to begin troubleshooting this. I had not intended to upgrade to 2.7.1 myself and if I'm going to support this plugin on 2.7.1, I'll have to get a working 2.7.1 installation on my website for development purposes.

    At this point, I don't forsee attempting that before May 2nd.

    In the mean time, the fix for the one bug which will definitely be in 0.10.2 is (in case you'd like to play doctor on the plugin):

    The problem is in the postlevels_query function, the condition under which the problem occurs is;

    User not logged in
    $postlevels_post_preview != "none"

    Offending code is

    if( $postlevels_post_preview = "none" )

    should be

    if( $postlevels_post_preview == "none" )


    I'll release 0.10.2 as soon as I get some time to install WP 2.7.1 and do debug/testing.
  • ko0ty
    Hey, sorry I haven't been following your development but I'm back to ask more questions (don't kill me)!! =P

    Anyway, I installed this in WP2.7.1 and it doesn't seem to be working properly. Where I can download v.0.10.2 to test out?

    You have to put the teaser in the "Excerpt" field. Is that what you meant?
  • x11tech
    Found and partially resolved the teaser post bug, but I need additional information on how teaser posts work in order to resolve the condition of when $postlevels_post_preview is set to "teaser" and the user is logged in

    http://datarave.net/bt/view.php?id=61

    0.10.1 currently will hide posts from all users if their user level is less than the post level. I'm pretty sure what you want is when you set it to teaser for the logged in user to get a teaser also (if the post level exceeds the user level).

    I modified 0.10.2 to return content even if the user's level is less than the post level, but I don't know how teaser content works to test whether the teaser feature works properly (since I don't have my posts set up with <!--more--> in them, 0.10.2 will return all content even if the user doesn't have access to it...)
  • x11tech
    What is a teaser supposed to look like? It's not a feature that I've ever used.
  • x11tech
    ok, found and squashed that header bug.
  • x11tech
    Yes, I confirmed that the bug exists, but something changed on my server that causes issues when logging out and back in when accessing my development environment. (see below for the error messages)

    Since I've not touched by development environment in weeks, I am presently assuming that the server admins did something during a maintenance window that has affected the way the server is configured (and thus, the way that the php scripts work)

    When fortes originally wrote this plugin he put in header modification code to make sure that the pages weren't cached (line 100 & 101). I'm thinking I might just have to remove this code until I can wade through the remainder of the the Wordpress code to discover what the problem is.

    Here's the error I'm working on right now:

    Warning: Cannot modify header information - headers already sent by (output started at /home2/datarave/public_html/tds/wp-content/plugins/post-levels/post-levels.php:481) in /home2/datarave/public_html/tds/wp-includes/pluggable.php on line 649

    Warning: Cannot modify header information - headers already sent by (output started at /home2/datarave/public_html/tds/wp-content/plugins/post-levels/post-levels.php:481) in /home2/datarave/public_html/tds/wp-includes/pluggable.php on line 650

    Warning: Cannot modify header information - headers already sent by (output started at /home2/datarave/public_html/tds/wp-content/plugins/post-levels/post-levels.php:481) in /home2/datarave/public_html/tds/wp-includes/pluggable.php on line 651

    Warning: Cannot modify header information - headers already sent by (output started at /home2/datarave/public_html/tds/wp-content/plugins/post-levels/post-levels.php:481) in /home2/datarave/public_html/tds/wp-includes/pluggable.php on line 850
  • Hello mate, any news?
  • Great stuff, loving to hear it!

    Please say if I can assist in any way .. :)
  • x11tech
    Moved in. I am starting to look at the dev environment to attempt to replicate your problem.
  • Still here waiting :D

    Happy moving!

    (just registered an account, still Stian here!)
  • x11tech
    Just checking in. Boxing continues. Movers selected. Blah blah blah. Still on target for moving on the 4th of April and getting back to this after that.
  • Happy moving! :)

    Glad to hear you are working on it!
  • x11tech
    Update: I've found and put the deposit on my new place. I'll be moved in the weekend of April 4. I'll be able to start work shortly after that. I'll continue to update this weekly to let you know that I'm still planning on getting back to this as soon as I have some spare time. For now, it's boxing time! (the kind involving tape and cardboard, not involving padded gloves)

    I also found an interesting bug that occurs when you search for a post. The way that I've modified the search string causes revisions to appear in the search results. I'll be working on fixing that also.

    8)
  • x11tech
    Don't worry about nagging. The worst that could happen is I stop responding. Barring dropping off the face of the internet, I will get around to it. The next two months will be busy for me though as I intend to move in April and I am lease hunting now. Once I get the lease signed, then I'll be packing. So all I may be able to do for the forseeable future is let you know that I'm still here. Hopefully I'll be able to make the time to diagnose the problem and write a fix.
  • Good to hear :) thanks!

    mr. nag in person ;)
  • x11tech
    Stian, apologies for the delay. I've not had a chance to work on it yet. But I have not forgotten.
  • Hello again, had any luck with the preview problem?
  • No problems, have registered it in the bugtracker now. Just as a side note, the 0.10.1 version reports version 0.10.0 in the plugins list .. :)
  • x11tech
    I sort of expected that. I haven't tested all of the features of the original version, the only feature I really used was the one that hides posts if you don't have the necessary rights. I'll investigate it next week and try to get a patch written either next week or the week after.

    Please post the bug on the bug forums. (I'll work on it even if you don't, it would just be a help to me to have it all documented.)

    http://www.datarave.net/bt/
  • Hello again,
    Cannot get the preview/teaser to work. Other than that it looks great.
  • I will test this new plugin on my WP 2.7 blog today and feedback, thanks for forking and developing!
blog comments powered by Disqus