Recent Topics

1 Apr 01, 2008 19:52    

My b2evolution Version: Not Entered

I'm trying to set up my first blog and I would like people to have to login first to see the content... does anyone know how to do it? I find all the user groups and users perms a bit confusing.
And if I want users to be able to comment only and not post content, what right management should I choose?
thanks for your help!

2 Apr 02, 2008 12:42

Hi anna

If you are using the latest build 2.4.1, find the file [inc/_mian_inc.php]

Find line 360 and look for

 if( !isset($login_required) )
	$login_required = false;

change the word false to true.

This will ensure everyone has to have an account with password to see any content.

If you want only one blog to be password protected do this to the code: this will protect blog2, which is blog B on the initial setup

if( $blog == "2" )
	$login_required = true;
else{$login_required = false;}

Just play with permissions;

Create a dummy user and start adjusting their options, you will soon have what you want.

Have fun :)


By the way, you could have found this post before you asked : ;)

Form is loading...

Community software – This forum is powered by b2evolution CMS, a complete engine for your website.