Posted on: 01/25/08 12:21pm
By: Anonymous (BMcDonald)
I have the system set to not allow unregistered users to post comments, but the system is accepting them anyway. It's just won't display them. I got a person submit a comment this morning. I got an email notice, and when I log on, it shows another comment was submitted, but no comment is actually there. The number of comments on the story increased, but no actual comment displays. So there's no way to delete it so the number of comments are inaccurate. It should show "0" comments, but it shows "2" It sure would be nice if the system gave them an error page if an unregistered person submits a comment.
Any ideas?
Thanks
Re: Unregistered User Comments Accepted but not displayed
Posted on: 01/25/08 02:18pm
By: Dirk
Which Geeklog version are we talking about? We had a few bugs that still allowed comments to be posted under certain circumstances, even when it wasn't supposed to be possible. These bugs should all be fixed in 1.4.0 or later, though.
bye, Dirk
Re: Unregistered User Comments Accepted but not displayed
Posted on: 01/25/08 02:33pm
By: Anonymous (BMcDonald)
It's 1.4.1
I tested it by trying to post a comment without logging in. It accepted the post but didn't display it, just the count. Then I logged in to post it and it accepted it and displayed it so I could delete it. It's pretty straightforward. No strange circumstance.
My site is
http://www.KickThemAllOut.com[*1]
Re: Unregistered User Comments Accepted but not displayed
Posted on: 01/25/08 02:51pm
By: Dirk
Something's wrong there - if comments are closed to anonymous users, they shouldn't even be able to get to the comment submission form (see here on geeklog.net, for example).
Are you sure you're using the original lib-comment.php and comment.php on your site?
bye, Dirk
Re: Unregistered User Comments Accepted but not displayed
Posted on: 02/02/08 01:10am
By: Anonymous (BMcDonald)
I replaced lib-comment.php and comment.php from a fresh download and it's still doing the same thing. I just don't get it. Very strange. It sure would be nice to fix this.
Re: Unregistered User Comments Accepted but not displayed
Posted on: 02/02/08 01:17pm
By: Anonymous (BMcDonald)
DUH!
I just looked at the config file for the millionth time and finally saw what the problem was. I didn't set the comment config to require login before comments. Everything was set to zero. I just put a 1 on 'commentsloginrequired' and it's doing what it's supposed to do.
// +---------------------------------------------------------------------------+
// | MISCELLANEOUS SETTINGS |
// | |
// | These are other various Geeklog settings. The defaults should work OK |
// | for most situations. |
// +---------------------------------------------------------------------------+
// this lets you select which functions are available for registered users only
$_CONF['loginrequired'] = 0; // all of them, if set to 1 will override all else
$_CONF['submitloginrequired'] = 1;
$_CONF['commentsloginrequired'] = 1;
$_CONF['statsloginrequired'] = 0;
$_CONF['searchloginrequired'] = 0;
$_CONF['profileloginrequired'] = 0;
$_CONF['emailuserloginrequired'] = 1;
$_CONF['emailstoryloginrequired'] = 0;
$_CONF['directoryloginrequired'] = 0;
Re: Unregistered User Comments Accepted but not displayed
Posted on: 02/02/08 04:45pm
By: Dirk
/* No Comment */
Re: Limiting comments to registered users
Posted on: 12/12/08 10:26pm
By: Anonymous (TIM)
How do I limit "story comments to only registered users?"
I found this quote below searching through some of your old posts, however this is for version 1.4.0 or something. I am using 1.5.1 and would think it would be simpler than this.
can I limit it from admin control, configuration or something, if so where, because I have not found the option yet.
thanks, tim
Quote by: BMcDonaldDUH!
I just looked at the config file for the millionth time and finally saw what the problem was. I didn't set the comment config to require login before comments. Everything was set to zero. I just put a 1 on 'commentsloginrequired' and it's doing what it's supposed to do.
// +---------------------------------------------------------------------------+
// | MISCELLANEOUS SETTINGS |
// | |
// | These are other various Geeklog settings. The defaults should work OK |
// | for most situations. |
// +---------------------------------------------------------------------------+
// this lets you select which functions are available for registered users only
$_CONF['loginrequired'] = 0; // all of them, if set to 1 will override all else
$_CONF['submitloginrequired'] = 1;
$_CONF['commentsloginrequired'] = 1;
$_CONF['statsloginrequired'] = 0;
$_CONF['searchloginrequired'] = 0;
$_CONF['profileloginrequired'] = 0;
$_CONF['emailuserloginrequired'] = 1;
$_CONF['emailstoryloginrequired'] = 0;
$_CONF['directoryloginrequired'] = 0;
Re: Unregistered User Comments Accepted but not displayed
Posted on: 12/13/08 02:53am
By: Dirk
The config.php options are now available from the Admin's Configuration panel:
Configuration > Geeklog > Users and Submissions > Users
bye, Dirk