WordPress.org

Ready to get started?Download WordPress

Forums

Members Only
Members Only options not saving for multisite 3.0 blog (6 posts)

  1. Andrew Tetlaw
    Member
    Posted 3 years ago #

    I tracked it down to the way the options page form is created. The form action is:

    <form method="post" action="<?php echo _SERVER['PHP_SELF'].'?page=' . basename(__FILE__); ?>&updated=true">

    I changed it to:

    <form method="post" action="<?php echo 'options-general.php?page=' . basename(__FILE__); ?>&updated=true">

    and it works now.

    By using _SERVER['PHP_SELF'] the form action URL was reverting back to the main blog's URL, instead of the current blog's URL.

  2. vashinue
    Member
    Posted 3 years ago #

    Where do you change this? Which file?

    This is so helpfuL!

  3. rluna1123
    Member
    Posted 3 years ago #

    THANK YOU SO MUCH!!! I spent several hours today and yesterday trying to figure this out. Man, I feel so good. :)

  4. Dubbelstein
    Member
    Posted 3 years ago #

    @Atetlaw
    Thank you!! You save my day /week/month!! Now i can work with/set that plugin in my WordPress MU 3.1.1 installation for a little school project, where my students now can login for a protected private worklog.

    @Vashinue
    open wp-content/plugins/members-only/members-only.php
    and change at line #578

    Should mail to the developer of the plugin, too.

  5. phbrowne
    Member
    Posted 3 years ago #

    Thank you! Thank you! I have been Googling this all afternoon trying to make this work. One line of code and BAM I am in business.

    Now all I have to do is remember to create a copy of the plugin so I don't update over it!

  6. maxsoe
    Member
    Posted 2 years ago #

    I'm finding that the plugin still doesn't work as expected.
    Here's my scenario:

    On my networked site I have user1 as a user of site1, and user2 as a user of site2.

    Even with Members Only activated, user1 can still access site2. user2 and the super-admin are the only ones who should be able to access site2.

    Is anyone else having a similar problem?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic