WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Protect Content On All Posts EXCEPT One (4 posts)

  1. demonboy
    Member
    Posted 2 years ago #

    I've used a couple of plug-ins to protect my content, in particular WP-Protect. This disables right-hand mouse clicking and image dragging. However there is no facility to UN-protect certain posts/pages. Anyone have any idea on how to manage protection exceptions?

  2. yehudah
    Member
    Posted 2 years ago #

    hey

    try changing line 131-133 to this concept:

    if($wp_wpp_rightclick == true && !is_single(array(17,25,22))) { wpprotect_rightclick(); }

    if you didn't notice i added
    && !is_single(array(17,25,22))

    where the numbers represent post id, if you don't know how to get them
    see here:

  3. yehudah
    Member
    Posted 2 years ago #

  4. demonboy
    Member
    Posted 2 years ago #

    Genius! Works! You've made my day, yehudah. Nice one ;)

Topic Closed

This topic has been closed to new replies.

About this Topic