NP_CommentControl v0.70

Post your new plugins here!
User avatar
admun
Nucleus Guru
Nucleus Guru
Posts: 4088
Joined: Mon Oct 20, 2003 2:57 am
Location: San Francisco, CA, USA
Contact:

NP_CommentControl v0.70

Postby admun » Sat Oct 13, 2007 6:06 am

A new version has released.
- fix incorrect warning after comment pended in FURL2 mode
- language file
- add notification email

All options for text has moved into language file under commentcontol/english.php. Please modified the file if change is desired

An new option to set where notification is sent when comment pending approval.

code @ http://edmondhui.homeip.net/nudn/item/n ... ntrol-v070
User avatar
cbrandizi
Posts: 6
Joined: Sun May 20, 2007 11:44 am

Postby cbrandizi » Sun Oct 14, 2007 12:29 am

Hi,

Great plugin that lets me control all the comments in my blog. Anyway I found a little error in the plugin in 2 lines of code (or maybe it's my fault)...

If you have nucleus installed in a directory instead of the root directory then when you click the deny or allow links the plugin functions correctly but it redirects you to a 404 error because the redirection links are hard coded in the plugin.

There are 2 lines of code like this one...

$url = $CONF['IndexURL'].'nucleus/plugins/commentcontrol/';

And I had to change them to...

$url = $CONF['IndexURL'].'revista/nucleus/plugins/commentcontrol/';

As my nucleus installation is in the directory revista. This way it redirects me correctly when I click deny or allow to the comment control panel.

A im not an expert php coder so I prefer not to modify the plugin code and opted to this "quick fix" that works for me.

Another thing that will be interesting will be the option to show the email of the commenter in the comment control panel. Can you give me a guideline how to do it?

Thanks.
User avatar
Francesca
Posts: 129
Joined: Wed Feb 11, 2004 4:03 pm
Location: Italy

Postby Francesca » Sun Oct 21, 2007 3:18 pm

Hello, I just installed the plugin on a fresh new Nucleus 3.24 with default skin and template.
When I allow a comment from the site front-end, the comment gets approved but this error appears:

Error!
Required action does not exist

Go back


Otherwise, approving comments from the back-end works fine.
User avatar
admun
Nucleus Guru
Nucleus Guru
Posts: 4088
Joined: Mon Oct 20, 2003 2:57 am
Location: San Francisco, CA, USA
Contact:

Postby admun » Tue Oct 23, 2007 7:48 pm

cbrandizi wrote:Hi,

Great plugin that lets me control all the comments in my blog. Anyway I found a little error in the plugin in 2 lines of code (or maybe it's my fault)...

If you have nucleus installed in a directory instead of the root directory then when you click the deny or allow links the plugin functions correctly but it redirects you to a 404 error because the redirection links are hard coded in the plugin.

There are 2 lines of code like this one...

$url = $CONF['IndexURL'].'nucleus/plugins/commentcontrol/';

And I had to change them to...

$url = $CONF['IndexURL'].'revista/nucleus/plugins/commentcontrol/';

As my nucleus installation is in the directory revista. This way it redirects me correctly when I click deny or allow to the comment control panel.

A im not an expert php coder so I prefer not to modify the plugin code and opted to this "quick fix" that works for me.

Another thing that will be interesting will be the option to show the email of the commenter in the comment control panel. Can you give me a guideline how to do it?

Thanks.

Well, my understanding is $CONF['IndexURL'] is set from the blog setting in admin menu. I think you have it set incorrectly.....
User avatar
admun
Nucleus Guru
Nucleus Guru
Posts: 4088
Joined: Mon Oct 20, 2003 2:57 am
Location: San Francisco, CA, USA
Contact:

Postby admun » Tue Oct 23, 2007 7:53 pm

Francesca wrote:Hello, I just installed the plugin on a fresh new Nucleus 3.24 with default skin and template.
When I allow a comment from the site front-end, the comment gets approved but this error appears:

Error!
Required action does not exist

Go back


Otherwise, approving comments from the back-end works fine.

hum.. I did not see this problem from the approval front-end....

Can you try again and show me the URL of the approve/deny link, as well as you blog's URL? I will take a look.
verbaljam
Posts: 666
Joined: Wed Jul 31, 2002 4:58 pm
Location: Amsterdam, The Netherlands
Contact:

Postby verbaljam » Sat Nov 10, 2007 12:09 pm

Just a tiny remark: since I installed the latest version 0.7 of this plugin, I noticed a few times that a comment on a very old item slipped through: it just got published on the site without intervention of CommentControl.
The moderation option is set to 30 days, I run Nucleus 3.22.
User avatar
admun
Nucleus Guru
Nucleus Guru
Posts: 4088
Joined: Mon Oct 20, 2003 2:57 am
Location: San Francisco, CA, USA
Contact:

Postby admun » Tue Nov 13, 2007 5:03 pm

verbaljam wrote:Just a tiny remark: since I installed the latest version 0.7 of this plugin, I noticed a few times that a comment on a very old item slipped through: it just got published on the site without intervention of CommentControl.
The moderation option is set to 30 days, I run Nucleus 3.22.

Thanks for the report, I will take a look later.
brightblue
Posts: 67
Joined: Wed May 30, 2007 1:24 pm
Location: Indiana
Contact:

Postby brightblue » Sun Nov 18, 2007 1:31 am

Just out of curiosity, will this plugin work with the captcha plugin?
User avatar
admun
Nucleus Guru
Nucleus Guru
Posts: 4088
Joined: Mon Oct 20, 2003 2:57 am
Location: San Francisco, CA, USA
Contact:

Postby admun » Sun Nov 18, 2007 6:10 pm

brightblue wrote:Just out of curiosity, will this plugin work with the captcha plugin?

Yes. I have both plugins in use.
PakTrik
Posts: 89
Joined: Wed May 07, 2008 11:05 am

Postby PakTrik » Mon Jul 21, 2008 8:36 pm

I installed this plugin but I must have overlooked something:

I uploaded the directory and the NP_ *.php file.

In admin screen I get this:
_OPT_SHOW_IN_QMENU
_OPT_NAME_NO_COMMENT
_OPT_DAYS_MOD_COMMENT
_OPT_MOD_MEMBER
_OPT_CHAR_ENCODING
_OPT_RSS_PIC_DISPLAY
_OPT_NOTIFY_EMAIL

instead of some plain english to fill in the options.

What do I do wrong ?

greetz,
ftruscot
Nucleus Guru
Nucleus Guru
Posts: 7430
Joined: Wed Feb 22, 2006 6:19 pm
Location: Massachusetts
Contact:

Postby ftruscot » Mon Jul 21, 2008 8:42 pm

there should be 4 files in a nucleus/plugins/commentcontrol/ folder on your server. One is called english.php which will contain the values (plain english) for those constants. there should also be files called banlist.txt, index.php, and notify.template in that same folder.

If the files are there (and case matters in the folder and file names), but they aren't being read by the server, you probably have a permissions issue with those file or the folder. The files should have 644 permissions and the folder should have 755.
PakTrik
Posts: 89
Joined: Wed May 07, 2008 11:05 am

Postby PakTrik » Mon Jul 21, 2008 9:07 pm

Thank you for this quick answer.

All files and folders are there and have the appropriate permissions.

Any other ideas ?

thanks in advance

ps: I very much liked the explanation: constants = plain english
:D
ftruscot
Nucleus Guru
Nucleus Guru
Posts: 7430
Joined: Wed Feb 22, 2006 6:19 pm
Location: Massachusetts
Contact:

Postby ftruscot » Mon Jul 21, 2008 9:11 pm

patrik, can I have the link to your site? If you don't want to post it here, please email it to my gmail.com address. username is ftruscot. Thanks.
ftruscot
Nucleus Guru
Nucleus Guru
Posts: 7430
Joined: Wed Feb 22, 2006 6:19 pm
Location: Massachusetts
Contact:

Postby ftruscot » Mon Jul 21, 2008 9:53 pm

I got your link and have confirmed the files are there and readable by the web server.

I suspect what might have happened is that you 'installed' the plugin from the nucleus admin area before you put the commentcontrol directory in the nucleus/plugins/ folder. Is this possible?

I suspect you will fix it now by uninstalling the plugin, then re-installing it.

If you are looking to limit spam, check out the NP_BadBehavior plugin which identifies a lot of bad bots before they even load your page. Just follow the installation instructions carefully. It won't be the only defense you will need, but it's a good first defense.
PakTrik
Posts: 89
Joined: Wed May 07, 2008 11:05 am

Postby PakTrik » Mon Jul 21, 2008 10:04 pm

Uninstalling the plugin and reinstalling it, did the trick.

I know I had a problem with uploading the directory the first time. My SmartFTP program is behaving very strangely after upgrade to 3.0.

Thank you very much for your help.

Greetz,
Quanita
Posts: 5
Joined: Tue Nov 11, 2003 4:25 am
Contact:

Comment Issue???

Postby Quanita » Fri Aug 29, 2008 11:14 pm

Hi,
I love this plugin saved me from oodles of spam, I am having a problem with it at the moment though?

everytime I go to the comment control page (from admin sidebar) it says I am not logged in.

Has anyone come across this before? everything else seems to be working fine.

Thanks
Q
ftruscot
Nucleus Guru
Nucleus Guru
Posts: 7430
Joined: Wed Feb 22, 2006 6:19 pm
Location: Massachusetts
Contact:

Postby ftruscot » Sat Aug 30, 2008 5:36 am

It's most likely not a plugin issue, but one where you are inconsistent in the host name you are using and what is in the Admin URL field of the site configuration, i.e. sometimes use domain.com and sometimes www.domain.com.

Check out these FAQs:

Why does Nucleus keep asking me to login?
How can I make cookies work for both www.mydomain.com and mydomain.com?
Quanita
Posts: 5
Joined: Tue Nov 11, 2003 4:25 am
Contact:

Postby Quanita » Sat Aug 30, 2008 6:13 am

Thanks
because it hasn't happened before and I only recently started getting comments again I thought it was related to that.
Will look into this and report back.
Quanita
Posts: 5
Joined: Tue Nov 11, 2003 4:25 am
Contact:

Postby Quanita » Sat Aug 30, 2008 6:19 am

Ok :oops:
Sorry Uber Comment Plugin Doods!
my problem is related to url discrepancies not the comment plugin at all...
fjavier
Posts: 92
Joined: Fri May 02, 2008 5:45 am

Does not work for non-member's comments

Postby fjavier » Fri Jul 31, 2009 7:48 pm

Installed the plugin but for some reason it works to moderate comments from my blog existing members only but not by anonymous users, this is not really of any benefit as I would prefer to be the opposite, any suggestions would be appreciated.

Return to “Plugin Development”