Andrew Tetlaw
Member
Posted 1 year 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.
vashinue
Member
Posted 1 year ago #
Where do you change this? Which file?
This is so helpfuL!
rluna1123
Member
Posted 1 year ago #
THANK YOU SO MUCH!!! I spent several hours today and yesterday trying to figure this out. Man, I feel so good. :)
Dubbelstein
Member
Posted 1 year 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.
phbrowne
Member
Posted 9 months 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!
maxsoe
Member
Posted 7 months 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?