Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Matt van Andel

    (@veraxus)

    I’ll recap to be sure I have the right idea…

    Instead of “removing” protected posts, you’d simply like them to appear as “locked” – limiting access to the full post unless authorized. Is that right?

    If so, you could conceivably modify the plugin to do this on your own. The function you’ll want to look at is ctx_ps_security_filter_blog(). As-is, it’s fairly simple. It checks permissions, and if the current user isn’t allowed to see that content, it flat-out removes it from the posts array with unset(). What you’d want to do is comment out the unset() line and then replace whatever property you’d like with a new value. Maybe something like…

    $content[$post->key]->post_title = “<img src=\”mylockicon.gif\” />{$post->value->post_title}”;

    Thread Starter siliconsara

    (@siliconsara)

    You’re close. I’m looking for a function that says if private -> do this, regardless if a person can see it or not. I’d like something graphical I can stick to each private post so I know from looking if it’s private or not.

    I’ll check out the function you listed to see if I can make anything from it.

    Plugin Author Matt van Andel

    (@veraxus)

    Ah, gotcha. As it happens, you’re in luck (or will be in a week or two).

    In the next version, we’re adding a lot of new “customizability” features to PSC – including some theme functions for grabbing current security status (which I think is what you need) and the ability to dynamically add users to groups (with or without membership expiration).

    Plugin Author Matt van Andel

    (@veraxus)

    This is now available as of 1.3.

    Anywhere within the loop, use psc_has_protection() to check whether the current post/page has protection. The function will return true if that page is protected, false if not.

    All the new theme functions are explained here:
    http://wordpress.org/extend/plugins/contexture-page-security/other_notes/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Page Security by Contexture] The "much-needed" padlock icon’ is closed to new replies.