Recent Topics

1 Nov 19, 2006 04:52    

$login_required = true;

When I put the above statement in my conf/_config.php file, it forces users to log in, but if they need to register, the register link on the login page does not work. You click on it and nothing happens. It acts like you are already registered and just wants you to log in. The register link on the login page will work if the above statement is set to false, however. So, could someone please tell me what I need to put where to require a login and make the registration link work all at the same time?

2 Nov 19, 2006 17:17

Add $login_required = false to /htsrv/register.php.

The following patch is for CVS HEAD, but shows where to insert it:


--- blogs/htsrv/register.php    10 Sep 2006 18:14:24 -0000      1.74
+++ blogs/htsrv/register.php    19 Nov 2006 16:15:26 -0000
@@ -36,6 +36,10 @@
  * Includes:
  */
 require_once dirname(__FILE__).'/../conf/_config.php';
+
+// Login is not required on the register page:
+$login_required = false;
+
 require_once $inc_path.'_main.inc.php';

3 Nov 20, 2006 02:41

Thanks for this fix; it works great! :)


Form is loading...