I have searched about my problem on the site but i couldnt find it. If i repeat the same things on the forum i'm sorry for that.
My problem is that;
I just would like to freeze new registrations on my MU site for a short time. During this time, i would like to fix it like that only admin can create new blogs on my site.
Shortly, i wanna block the others to create the blogs.
How can i do that?
Thank You So much
Ezap Mar
comment out all mention of signup.php. then break that page. i think adding psace before the <?php and after the ?> wil break it.
i'm sure there's a more elegant way to do it!
DemonC
Yeah, it's a way but as you said that there has to be another elegant and pratic way :)
lunabyte
Member
Posted 16 years ago #
in wp-signup.php, at the top, after:
require('./wp-blog-header.php');
add in:
if ( !is_site_admin() ) {
header("Location: http://mydomain.com/");
exit();
}
Where you add in the link to your front page, or wherever. Maybe a WP page that simply says registrations are not currently being accepted, please check back soon.
thank your for anwers but;
this code doesnt work unfortunatly. :S
What does it do and where specificly did you place it in the file?
it looks like ok, now. :)
when i tried for the first time, it didn't work sorry.
thanks for your support!
I have a new question about it now.
When i added this code, it also blocks the registration of the users. I would like to block creation of new blogs but at the same time i would like to let the people as users or autors of the blogs.
How can i do that?