2 yabba Nov 27, 2007 17:11

Ok. Will try that. Thanks.
Is there any guide for this here in the forums?
@ ¥åßßå:
¥åßßå wrote:
crack open conf/_basic.config.php and add the following line just below the first <?php
PHP:
$login_required = true;¥
The login screen has a Register link. I cannot register. I need to login before I can register. Can you think of a way to bypass this? I tried
$login_required = false;
in register.php but B2evo is too smart for that.
--ƒ
Hi sanasanz,
This seems to work in my test environment: www.dev.hemminga.net/1103 . What I did is:
- remove the $login_required = true; from, ../blogs/conf/_basic.conf.php
- add $login_required = true; to ../blogs/index.php
Now the login screen has no link to the registration form, but you can
- manually add a link to YOURSITE/htsrv/register.php as in www.dev.hemminga.net/1103/htsrv/register.php .
You should test it thoroughly since I am not sure there are no backdoors to get to the site. It also depends how secure you want the site to be. Is it "as secure as the Bank of England" or "I'd rather see they login first, but if they don't, who cares."
Bear in mind the blog software was never intended to hide things. Blogs are there to get things out in the open. But I understand your request and that's why I take it seriously.
If you have subsequent questions, please let us know.
Good luck
Thanks so much! :) I'll try this :)
Is it working as expected?
Good luck
Yes it works! :) thanks thanks! :)
Afwas,
I just want to say "Thank You" for your information. I had exactly the same need. I added the one line you suggested and it worked perfectly. As you are aware, problems don't usually work out this easily.
Thanks, again.
Hello.
Thanks for this thread.
I just finished a routine that takes how you said to apply '$login_required' to 'index.php' and expanded it to any blog by putting a routine and condition statements in 'inc/_blog_main.inc.php'. I have a new param in Blog Settings Features that toggles this value.
Thanks again.
You *really* don't need to hack the core, use a plugin and save yourself a world of pain when you upgrade ;)
¥
crack open conf/_basic.config.php and add the following line just below the first <?php
¥