WordPress.org

Support

Support » Plugins and Hacks » Members Only » Members Only options not saving for multisite 3.0 blog

Members Only options not saving for multisite 3.0 blog

  • 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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Where do you change this? Which file?

    This is so helpfuL!

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

    @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.

    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!

    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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Members Only options not saving for multisite 3.0 blog’ is closed to new replies.
Skip to toolbar