DISQUS

Undecided: Post Levels 2 (Working Title)

  • x11tech · 1 year ago
    Later tonight I'll be testing my v0.9.1 code with Wordpress 2.7. If it passes my testing protocol (which does not yet include all of the features), then I'll up-issue it to v0.10.0, release it on my website (and upgrade my blog to 2.7 in the process)
  • x11tech · 1 year ago
    v0.10.0 Beta, the first public release is now available on my website:
    http://www.datarave.net/zfh/2008/12/23/post-lev...

    This version has been tested with Wordpress 2.6.1 and 2.7.
  • Gaston · 1 year ago
    I really tried to download it, but I'm unable to do it.

    Please guide me.

    Tks
  • x11tech · 1 year ago
    The download link for v0.10.0 is:

    http://www.datarave.net/zfh/download/14/
  • x11tech · 12 months ago
    Katy asked:

    Shouldn't a non-registered user still be able to see the private post (for example, the title & excerpt if that was set in the settings) even if they aren't logged in?

    I tried logging out and can't see the post at all... whereas in my older WP installation, I'm still able to see the title and excerpt.

    -----

    That's not a feature I've tested yet. I'll work on testing that this week and see what I come up with. I'll get back to you via this thread, not Filipe's thread. I don't want to hijack his topic.
  • Katy · 11 months ago
    Thanks so much!

    Looking forward to upgrading once that feature works. =)
  • x11tech · 11 months ago
    The comment below was supposed to be a reply to you.
  • x11tech · 11 months ago
    I have a potential fix, but I wanted to see if this is what you wanted before I continue down this path. I must admit a certain level of ignorance on how this plugin worked prior to about 6 weeks ago (which means that I don't know how it worked prior to 2.6.1).. But it appears based on behavior that the Wordpress Dev team has significantly changed the SQL query used to look up posts.

    I've got it set up so that the following is true and anything else will require a complete re-write of the query and content functions.

    On "Title + Excerpt" configuration:
    (1) If a user is logged in, and the user's level exceeds (or is equal to) the post level, then the post is displayed fully
    (2) If a user is logged in, and the user's level is less than the post level, then the post is hidden
    (3) If a user is logged out, the user sees title + excerpt for all posts, regardless of the post level on the post. The excerpt is taken from the post-excerpt field, not from the post-content field.
    NOTE: If the user level is not assigned, then the default user level is used in place of a configured value (except for admins, which are always treated as level 10)

    On "None"
    (1) if a user is logged in, and the user's level is equal to or exceeds the post level, then the post is displayed fully
    (2) if a user is logged in, and the user's level is less than the post level, then the post is hidden completely
    (3) If the user is logged out, then the "default user level" is ignored and all posts are hidden
    NOTE: If the user level is not assigned, then the default user level is used in place of a configured value (except for admins, which are always treated as level 10)


    Unfortunately, the documentation on these features (and how they were supposed to work) is significantly lacking. So, I'm going to document them all before I continue, and since you're the first person to ask for help, I'll let you decide how this feature (title + excerpt) is going to work.

    Let me know if the above works for you or if you want any changes.

    Thanks!
    x11
  • x11tech · 11 months ago
    This was supposed to be a reply to Katy
  • ko0ty · 8 months ago
    Thanks!
  • x11tech · 11 months ago
    Bug fix released that addresses this problem
    http://www.datarave.net/zfh/2009/01/20/postleve...