WordPress.org

Ready to get started?Download WordPress

Forums

Friends Only
[resolved] Friends only ignores sentry.php exclude URLs (5 posts)

  1. reklow
    Member
    Posted 1 year ago #

    Dear Gabriel,

    I do have the problem, that Friends only ignores your whitelisted URLs inside the sentry.php . In example the plugin ask for authentication on /wp-admin/ and the /xmlrpc.php.

    My Installation is an WordPress 3.4.1 and the Friends Only Plugin 0.6.0. The PHP installation is an 5.3.10. My wordpress installation is not inside the root directory of my website but under a subdirectory called glog.

    Could you please give me advice on how to get Friends only running?

    Thanks,
    Reklow

    http://wordpress.org/extend/plugins/friends-only/

  2. reklow
    Member
    Posted 1 year ago #

    Dear Gabriel,

    it seems that I've got it working. I changed two rewriting lines in your sentry.php Code to fit my WordPress URL which looks like this

    https://www.domain.com/myblog/

    These changes I've implemented:

    < $base_WP_URI = strtolower(get_bloginfo('wpurl'));
    < $clean_URI = strtolower('https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']);
    ---
    > $base_WP_URI = str_replace('www.','',strtolower(get_bloginfo('wpurl')));
    > $clean_URI = str_replace('www.','',strtolower('http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']));

    I'm not a programmer so I could not really overview the result of my changes. Is this a good solution or did I broke something else?

    Thanks,
    Reklow

  3. Gabe
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for this pointer. Will look into this for next update.

  4. Gabe
    Member
    Plugin Author

    Posted 1 year ago #

    I've made a beta version that should fix this problem.

    Please take a look and let me if it fixes the problem (I've implemented what you suggested).

    https://dl.dropbox.com/u/15414097/friends-only-beta.zip

    Thanks!

  5. reklow
    Member
    Posted 1 year ago #

    Dear Gabe,
    I've just tested your friends-only-beta release. It seems to work for me.
    Thanks for your support.
    Reklow

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.