Recent Topics

1 May 14, 2011 21:26    

My b2evolution Version: 4.0.5

I only want registered users/ or users I add to my database to access my blogs. How do I do that, and is there a plugin for this. I have seen the password protect each post plugin, but that is not what I want. Also the same solution should password protect the directories and media too. so no unauthorized person or bot has access to them.

Any help will be appreciated.

S-TWO

Link to the website

http://www.swingtradingwithoptions.com

2 May 15, 2011 17:21

Ok found a reply way back on how to password protect

Edit the blog1.php file (or whatever file your blog is) and add this:

$login_required = true;

I put it between:

require_once dirname(__FILE__).'/conf/_config.php';

$login_required = true;

require $inc_path.'_blog_main.inc.php';
?> "

So I did it for each each blog. But is there a way to do it such that one does not have to put that line in each blog.php


Form is loading...